Guard Record

Provides static methods to check arguments and raise argument exceptions.

Namespace: Spring
type
 Guard = record
 end;

The Guard type exposes the following members.

Show:
 NameDescription
CheckEnum<T>(Integer,string)

Overloaded. Represents method CheckEnum<T>(Integer,string).

CheckEnum<T>(T,string)

Overloaded. Represents method CheckEnum<T>(T,string).

CheckFalse(Boolean,string)

Represents method CheckFalse(Boolean,string).

CheckIndex(Integer,Integer,Integer)

Represents method CheckIndex(Integer,Integer,Integer).

CheckInheritsFrom(TClass,TClass,string)

Overloaded. Represents method CheckInheritsFrom(TClass,TClass,string).

CheckInheritsFrom(TObject,TClass,string)

Overloaded. Represents method CheckInheritsFrom(TObject,TClass,string).

CheckNotNull(Boolean,string)

Overloaded. Represents method CheckNotNull(Boolean,string).

CheckNotNull(IInterface,string)

Overloaded. Represents method CheckNotNull(IInterface,string).

CheckNotNull(Pointer,string)

Overloaded. Represents method CheckNotNull(Pointer,string).

CheckNotNull(TObject,string)

Overloaded. Represents method CheckNotNull(TObject,string).

CheckNotNull<T>(T,string)

Overloaded. Represents method CheckNotNull<T>(T,string).

CheckRange(Boolean,string)

Overloaded. Represents method CheckRange(Boolean,string).

CheckRange(Byte[],Integer)

Overloaded. Represents method CheckRange(Byte[],Integer).

CheckRange(Byte[],Integer,Integer)

Overloaded. Represents method CheckRange(Byte[],Integer,Integer).

CheckRange(Char[],Integer)

Overloaded. Represents method CheckRange(Char[],Integer).

CheckRange(Char[],Integer,Integer)

Overloaded. Represents method CheckRange(Char[],Integer,Integer).

CheckRange(Integer,Integer,Integer,Integer)

Overloaded. Represents method CheckRange(Integer,Integer,Integer,Integer).

CheckRange(RawByteString,Integer)

Overloaded. Represents method CheckRange(RawByteString,Integer).

CheckRange(RawByteString,Integer,Integer)

Overloaded. Represents method CheckRange(RawByteString,Integer,Integer).

CheckRange(string,Integer)

Overloaded. Represents method CheckRange(string,Integer).

CheckRange(string,Integer,Integer)

Overloaded. Represents method CheckRange(string,Integer,Integer).

CheckRange(WideString,Integer)

Overloaded. Represents method CheckRange(WideString,Integer).

CheckRange(WideString,Integer,Integer)

Overloaded. Represents method CheckRange(WideString,Integer,Integer).

CheckRange<T>(T[],Integer)

Overloaded. Represents method CheckRange<T>(T[],Integer).

CheckRange<T>(T[],Integer,Integer)

Overloaded. Represents method CheckRange<T>(T[],Integer,Integer).

CheckRangeExclusive(Integer,Integer,Integer)

Overloaded. Checks an argument to ensure it is in the specified range excluding the bounds.

CheckRangeInclusive(Integer,Integer,Integer)

Overloaded. Checks an argument to ensure it is in the specified range including the bounds.

CheckSet<T>(Cardinal,string)

Overloaded. Represents method CheckSet<T>(Cardinal,string).

CheckSet<T>(T,string)

Overloaded. Represents method CheckSet<T>(T,string).

CheckTrue(Boolean,string)

Represents method CheckTrue(Boolean,string).

CheckTypeKind(PTypeInfo,TTypeKind,string)

Overloaded. Represents method CheckTypeKind(PTypeInfo,TTypeKind,string).

CheckTypeKind(PTypeInfo,TTypeKinds,string)

Overloaded. Represents method CheckTypeKind(PTypeInfo,TTypeKinds,string).

CheckTypeKind(TTypeKind,TTypeKind,string)

Overloaded. Represents method CheckTypeKind(TTypeKind,TTypeKind,string).

CheckTypeKind(TTypeKind,TTypeKinds,string)

Overloaded. Represents method CheckTypeKind(TTypeKind,TTypeKinds,string).

CheckTypeKind<T>(TTypeKind,string)

Overloaded. Represents method CheckTypeKind<T>(TTypeKind,string).

CheckTypeKind<T>(TTypeKinds,string)

Overloaded. Represents method CheckTypeKind<T>(TTypeKinds,string).

IsNullReference(Void,PTypeInfo)

Represents method IsNullReference(Void,PTypeInfo).

RaiseArgumentException(string)

Overloaded. Raises an EArgumentException exception.

RaiseArgumentException(TTypeKind,string)

Overloaded. Represents method RaiseArgumentException(TTypeKind,string).

RaiseArgumentFormatException(string)

Overloaded. Raises an EFormatException exception.

RaiseArgumentNullException(string)

Overloaded. Raises an EArgumentNullException exception.

RaiseArgumentOutOfRangeException(string)

Overloaded. Raises an EArgumentOutOfRangeException exception.

RaiseInvalidEnumArgumentException(string)

Overloaded. Raises an EInvalidEnumArgumentException exception.

RaiseInvalidTypeCast(PTypeInfo,PTypeInfo)

Represents method RaiseInvalidTypeCast(PTypeInfo,PTypeInfo).

RaiseNoDelegateAssigned

Represents method RaiseNoDelegateAssigned.

RaiseNullableHasNoValue

Represents method RaiseNullableHasNoValue.

Top

It's recommended that all arguments of public types and members should be checked.