Struct UnmanagedProperty<TContainer, TValue>
Assembly: Unity.Properties.dll
Syntax
public readonly struct UnmanagedProperty<TContainer, TValue> : IUnmanagedProperty, IProperty<TContainer, TValue>, IProperty where TContainer : struct where TValue : unmanaged
Type Parameters
| Name |
Description |
| TContainer |
|
| TValue |
|
Constructors
UnmanagedProperty(string, int, bool, IPropertyAttributeCollection)
Declaration
public UnmanagedProperty(string name, int offset, bool readOnly = false, IPropertyAttributeCollection attributes = null)
Parameters
Properties
Attributes
Returns the attributes for the given property.
Declaration
public IPropertyAttributeCollection Attributes { get; }
Property Value
IsContainer
Gets a value indicating whether the value type is a container type.
Declaration
public bool IsContainer { get; }
Property Value
IsReadOnly
Gets a value indicating whether the property is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
Offset
Declaration
public int Offset { get; }
Property Value
Methods
GetName()
Gets the name of the property.
Declaration
Returns
GetValue(ref TContainer)
Gets the property value for the given container.
Declaration
public TValue GetValue(ref TContainer container)
Parameters
| Type |
Name |
Description |
| TContainer |
container |
|
Returns
SetValue(ref TContainer, TValue)
Sets the property value for the given container.
Declaration
public void SetValue(ref TContainer container, TValue value)
Parameters
| Type |
Name |
Description |
| TContainer |
container |
|
| TValue |
value |
|
Implements