Guard Record
Provides static methods to check arguments and raise argument exceptions.
The Guard type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | CheckEnum<T>(Integer,string) | Overloaded. Represents method |
![]() ![]() | CheckEnum<T>(T,string) | Overloaded. Represents method |
![]() ![]() | CheckFalse(Boolean,string) | Represents method |
![]() ![]() | CheckIndex(Integer,Integer,Integer) | Represents method |
![]() ![]() | CheckInheritsFrom(TClass,TClass,string) | Overloaded. Represents method |
![]() ![]() | CheckInheritsFrom(TObject,TClass,string) | Overloaded. Represents method |
![]() ![]() | CheckNotNull(Boolean,string) | Overloaded. Represents method |
![]() ![]() | CheckNotNull(IInterface,string) | Overloaded. Represents method |
![]() ![]() | CheckNotNull(Pointer,string) | Overloaded. Represents method |
![]() ![]() | CheckNotNull(TObject,string) | Overloaded. Represents method |
![]() ![]() | CheckNotNull<T>(T,string) | Overloaded. Represents method |
![]() ![]() | CheckRange(Boolean,string) | Overloaded. Represents method |
![]() ![]() | CheckRange(Byte[],Integer) | Overloaded. Represents method |
![]() ![]() | CheckRange(Byte[],Integer,Integer) | Overloaded. Represents method |
![]() ![]() | CheckRange(Char[],Integer) | Overloaded. Represents method |
![]() ![]() | CheckRange(Char[],Integer,Integer) | Overloaded. Represents method |
![]() ![]() | CheckRange(Integer,Integer,Integer,Integer) | Overloaded. Represents method |
![]() ![]() | CheckRange(RawByteString,Integer) | Overloaded. Represents method |
![]() ![]() | CheckRange(RawByteString,Integer,Integer) | Overloaded. Represents method |
![]() ![]() | CheckRange(string,Integer) | Overloaded. Represents method |
![]() ![]() | CheckRange(string,Integer,Integer) | Overloaded. Represents method |
![]() ![]() | CheckRange(WideString,Integer) | Overloaded. Represents method |
![]() ![]() | CheckRange(WideString,Integer,Integer) | Overloaded. Represents method |
![]() ![]() | CheckRange<T>(T[],Integer) | Overloaded. Represents method |
![]() ![]() | CheckRange<T>(T[],Integer,Integer) | Overloaded. Represents method |
![]() ![]() | 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>(T,string) | Overloaded. Represents method |
![]() ![]() | CheckTrue(Boolean,string) | Represents method |
![]() ![]() | CheckTypeKind(PTypeInfo,TTypeKind,string) | Overloaded. Represents method |
![]() ![]() | CheckTypeKind(PTypeInfo,TTypeKinds,string) | Overloaded. Represents method |
![]() ![]() | CheckTypeKind(TTypeKind,TTypeKind,string) | Overloaded. Represents method |
![]() ![]() | CheckTypeKind(TTypeKind,TTypeKinds,string) | Overloaded. Represents method |
![]() ![]() | CheckTypeKind<T>(TTypeKind,string) | Overloaded. Represents method |
![]() ![]() | CheckTypeKind<T>(TTypeKinds,string) | Overloaded. Represents method |
![]() ![]() | IsNullReference(Void,PTypeInfo) | Represents method |
![]() ![]() | RaiseArgumentException(string) | Overloaded. Raises an EArgumentException exception. |
![]() ![]() | RaiseArgumentException(TTypeKind,string) | Overloaded. Represents method |
![]() ![]() | 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 |
![]() ![]() | RaiseNoDelegateAssigned | Represents method |
![]() ![]() | RaiseNullableHasNoValue | Represents method |
It's recommended that all arguments of public types and members should be checked.