Class Guard
The static class is the front door to all guard clauses that are provided via separate interfaces.
Inheritance
System.Object
Guard
Namespace: TeleScope.GuardClauses
Assembly: TeleScope.GuardClauses.dll
Syntax
public static class Guard : object
Properties
| Improve this Doc View SourceAgainst
Gets methods of guard clauses that are related to defensiv or basic statements.
Declaration
public static IDefensiveGuardable Against { get; }
Property Value
| Type | Description |
|---|---|
| IDefensiveGuardable |
Collection
Gets methods of guard clauses that are related to collections.
Declaration
public static ICollectionGuardable Collection { get; }
Property Value
| Type | Description |
|---|---|
| ICollectionGuardable |
Numeric
Gets methods of guard clauses that are related to numerics.
Declaration
public static INumericGuardable Numeric { get; }
Property Value
| Type | Description |
|---|---|
| INumericGuardable |
String
Gets methods of guard clauses that are related to strings.
Declaration
public static IStringGuardable String { get; }
Property Value
| Type | Description |
|---|---|
| IStringGuardable |
Methods
| Improve this Doc View SourceProvide()
Calling this method will access the internal GuardProvider that stores the implemented guard clauses.
Declaration
public static GuardProvider Provide()
Returns
| Type | Description |
|---|---|
| GuardProvider | The internal static instance of type GuardProvider. |