Class ClassExtensions
Extension Methods to be used by Classes
Inheritance
System.Object
ClassExtensions
Namespace: GCore.Extensions.Class
Assembly: GCore.dll
Syntax
public static class ClassExtensions : object
Methods
| Improve this Doc View SourceThrowIfArgumentIsNull<T>(T, String)
Throws an exception if the object called upon is null.
Declaration
public static void ThrowIfArgumentIsNull<T>(this T obj, string text)
where T : class
Parameters
| Type | Name | Description |
|---|---|---|
| T | obj | The This object |
| System.String | text | The text to be written on the ArgumentNullException: [text] not allowed to be null |
Type Parameters
| Name | Description |
|---|---|
| T | The calling class |