ReadOnlyRef<T> Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ReadOnlyRef<T>(Void*) |
Initializes a new instance of the ReadOnlyRef<T> struct. |
ReadOnlyRef<T>(T) |
Initializes a new instance of the ReadOnlyRef<T> struct. |
ReadOnlyRef<T>(Object, T) |
ReadOnlyRef<T>(Void*)
Initializes a new instance of the ReadOnlyRef<T> struct.
public ReadOnlyRef (void* pointer);
new Microsoft.Toolkit.HighPerformance.ReadOnlyRef<'T> : nativeptr<unit> -> Microsoft.Toolkit.HighPerformance.ReadOnlyRef<'T>
Parameters
- pointer
- Void*
The pointer to the target value.
Applies to
ReadOnlyRef<T>(T)
Initializes a new instance of the ReadOnlyRef<T> struct.
public ReadOnlyRef (in T value);
new Microsoft.Toolkit.HighPerformance.ReadOnlyRef<'T> : 'T -> Microsoft.Toolkit.HighPerformance.ReadOnlyRef<'T>
Public Sub New (ByRef value As T)
Parameters
- value
- T
The readonly reference to the target T
value.
Applies to
ReadOnlyRef<T>(Object, T)
public ReadOnlyRef (object owner, in T value);
new Microsoft.Toolkit.HighPerformance.ReadOnlyRef<'T> : obj * 'T -> Microsoft.Toolkit.HighPerformance.ReadOnlyRef<'T>
Public Sub New (owner As Object, ByRef value As T)
Parameters
- owner
- Object
- value
- T