|
| static T | LazyGet< T > (ref T location, Func< T > create) |
| | Gets the value at the given location or initializes it if null.
|
| |
Definition at line 7 of file AccessorUtil.cs.
◆ LazyGet< T >()
| static T IKVM.Runtime.Accessors.AccessorUtil.LazyGet< T > |
( |
ref T | location, |
|
|
Func< T > | create ) |
|
static |
Gets the value at the given location or initializes it if null.
- Parameters
-
- Returns
Definition at line 16 of file AccessorUtil.cs.
17 : class
18 {
19 if (create is null)
20 throw new ArgumentNullException(nameof(create));
21
22 if (location == null)
24
25 return location;
26 }
System.Threading.Interlocked Interlocked
The documentation for this class was generated from the following file: