Summary
If `obj` is null this method assigns a new instance to it and calls
Weaver.IOnCreate.OnCreate.
- Assembly
- Weaver
.dll - Namespace
- Weaver
- Containing Type
- WeaverUtilities
Syntax
public static void EnsureExists<T>(ref T obj) where T : class, IOnCreate, new()
Type Parameters
| Name | Description |
|---|---|
| T |
Parameters
| Name | Type | Description |
|---|---|---|
| obj | T |
Return Value
| Type | Description |
|---|---|
| void |