Skip to main content

AssertUtils

Assembly: ServiceStack.Common.dll
View Source
Declaration
public static class AssertUtils

Methods

AreNotNull<T>(T[])

View Source
Declaration
public static void AreNotNull<T>(params T[] fields)
Parameters
TypeName
<T>[]fields
Type Parameters
  • T

AreNotNull(IDictionary<String, Object>)

Asserts that the supplied arguments are not null.

AssertUtils.AreNotNull(new Dictionary<string,object>{ {"name",null} }); will throw new ArgumentNullException("name");

View Source
Declaration
public static void AreNotNull(IDictionary<string, object> fieldMap)
Parameters
TypeNameDescription
System.Collections.Generic.IDictionary<System.String,System.Object>fieldMapThe field map.

|