Class Check
Pre-condition verifier utility class
Inheritance
System.Object
Check
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OSGeo.MapGuide.ObjectModels
Assembly: OSGeo.MapGuide.ObjectModels.dll
Syntax
public static class Check
Methods
| Improve this Doc View SourceArgumentNotEmpty(String, String)
Check that string value is not null or empty
Declaration
public static void ArgumentNotEmpty(string value, string arg)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | |
System.String | arg |
ArgumentNotNull<T>(T, String)
Check that the argument value is not null
Declaration
public static void ArgumentNotNull<T>(T obj, string arg)
where T : class
Parameters
Type | Name | Description |
---|---|---|
T | obj | |
System.String | arg |
Type Parameters
Name | Description |
---|---|
T |
ThatArgumentIsBetweenRange<T>(T, T, T, Boolean, String)
Check that the given integer is between the specified range
Declaration
public static void ThatArgumentIsBetweenRange<T>(T value, T min, T max, bool bInclusive, string msg)
where T : IComparable
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to check |
T | min | The lower bound |
T | max | The upper bound |
System.Boolean | bInclusive | Determines whether the range is inclusive. If false, the range is exclusive |
System.String | msg | The message to include for precondition failure |
Type Parameters
Name | Description |
---|---|
T |
ThatArgumentIsFolder(String, String)
Check that the given argument is a folder resource id
Declaration
public static void ThatArgumentIsFolder(string folderid, string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | folderid | The folder resource id to check |
System.String | name | The argument name |
ThatPreconditionIsMet(Boolean, String)
Check that the specified condition is true
Declaration
public static void ThatPreconditionIsMet(bool condition, string msg)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | condition | |
System.String | msg |