Ensures that the config doesn't require a document, but only if not null and throws
System.ArgumentException if it does.
Syntax
public static TConfig EnsureNonDocumentIfNonNull<TConfig>(this TConfig config, string paramName = null)
where TConfig : IConfig
Type Parameters
| Name |
Description |
| TConfig |
The config type. |
Parameters
| Name |
Type |
Description |
| config |
TConfig |
The config. |
| paramName |
string |
The name of the config parameter. |
Return Value
| Type |
Description |
| TConfig |
The config if non-document (or null if the config is null). |