- Namespace
- Statiq
.Common - Containing Type
- GuardExtensions
Syntax
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static T ThrowIfNull<T>(this T obj, string paramName)
Attributes
| Type | Description |
|---|---|
| MethodImplAttribute |
Type Parameters
| Name | Description |
|---|---|
| T |
Parameters
| Name | Type | Description |
|---|---|---|
| obj | T | |
| paramName | string |
Return Value
| Type | Description |
|---|---|
| T |