Throws ArgumentNullException if the object is null.
Namespace:
Gile.AutoCAD.R20.Extension
Assembly:
Gile.AutoCAD.R20.Extension (in Gile.AutoCAD.R20.Extension.dll) Version: 2.0.0.0 (2.0.0.0)
Syntaxpublic static void IsNotNull<T>(
T obj,
string paramName
)
where T : class
Public Shared Sub IsNotNull(Of T As Class) (
obj As T,
paramName As String
)
public:
generic<typename T>
where T : ref class
static void IsNotNull(
T obj,
String^ paramName
)
static member IsNotNull :
obj : 'T *
paramName : string -> unit when 'T : not struct
Parameters
- obj
- Type: T
The instance to which the assertion applies. - paramName
- Type: SystemString
Name of the parameter.
Type Parameters
- T
- Type of the object.
See Also