Click or drag to resize
Guard Class
Contains methods for ensuring method calls and arguments passed in to them are valid.
Inheritance Hierarchy
SystemObject
  CodeTigerGuard

Namespace: CodeTiger
Assembly: CodeTiger.Core (in CodeTiger.Core.dll) Version: 1.0.0.0
Syntax
public static class Guard

The Guard type exposes the following members.

Methods
  NameDescription
Public methodStatic memberArgumentIsNotNegative(String, Decimal)
Ensures that the value of a Decimal argument is not negative, throwing an exception if it is negative.
Public methodStatic memberArgumentIsNotNegative(String, Double)
Ensures that the value of a Double argument is not negative, throwing an exception if it is negative.
Public methodStatic memberArgumentIsNotNegative(String, Int16)
Ensures that the value of a Int16 argument is not negative, throwing an exception if it is negative.
Public methodStatic memberArgumentIsNotNegative(String, Int32)
Ensures that the value of a Int32 argument is not negative, throwing an exception if it is negative.
Public methodStatic memberArgumentIsNotNegative(String, Int64)
Ensures that the value of a Int64 argument is not negative, throwing an exception if it is negative.
Public methodStatic memberArgumentIsNotNegative(String, Single)
Ensures that the value of a Single argument is not negative, throwing an exception if it is negative.
Public methodStatic memberArgumentIsNotNullT
Ensures that an argument is not null, throwing an exception if it is null.
Public methodStatic memberArgumentIsPositive(String, Decimal)
Ensures that the value of a Decimal argument is positive, throwing an exception if it is negative or zero.
Public methodStatic memberArgumentIsPositive(String, Double)
Ensures that the value of a Double argument is positive, throwing an exception if it is negative or zero.
Public methodStatic memberArgumentIsPositive(String, Int16)
Ensures that the value of a Int16 argument is positive, throwing an exception if it is negative or zero.
Public methodStatic memberArgumentIsPositive(String, Int32)
Ensures that the value of a Int32 argument is positive, throwing an exception if it is negative or zero.
Public methodStatic memberArgumentIsPositive(String, Int64)
Ensures that the value of a Int64 argument is positive, throwing an exception if it is negative or zero.
Public methodStatic memberArgumentIsPositive(String, Single)
Ensures that the value of a Single argument is positive, throwing an exception if it is negative or zero.
Public methodStatic memberArgumentIsValid
Ensures that an argument is valid, throwing an exception if it is not valid.
Public methodStatic memberArgumentIsWithinRange(String, Byte, Byte, Byte)
Ensures that the value of a Byte argument is within a specified range, throwing an exception if it is outside of that range.
Public methodStatic memberArgumentIsWithinRange(String, Decimal, Decimal, Decimal)
Ensures that the value of a Decimal argument is within a specified range, throwing an exception if it is outside of that range.
Public methodStatic memberArgumentIsWithinRange(String, Double, Double, Double)
Ensures that the value of a Double argument is within a specified range, throwing an exception if it is outside of that range.
Public methodStatic memberArgumentIsWithinRange(String, Int16, Int16, Int16)
Ensures that the value of a Int16 argument is within a specified range, throwing an exception if it is outside of that range.
Public methodStatic memberArgumentIsWithinRange(String, Int32, Int32, Int32)
Ensures that the value of a Int32 argument is within a specified range, throwing an exception if it is outside of that range.
Public methodStatic memberArgumentIsWithinRange(String, Int64, Int64, Int64)
Ensures that the value of a Int64 argument is within a specified range, throwing an exception if it is outside of that range.
Public methodStatic memberArgumentIsWithinRange(String, Single, Single, Single)
Ensures that the value of a Single argument is within a specified range, throwing an exception if it is outside of that range.
Public methodStatic memberOperationIsValid
Ensures that an operation is valid, throwing an exception if it is not valid.
Top
See Also