Struct ValueProperty<TContainer, TValue>
Assembly: Unity.Properties.dll
Syntax
public struct ValueProperty<TContainer, TValue> : IProperty<TContainer, TValue>, IProperty
Type Parameters
| Name |
Description |
| TContainer |
|
| TValue |
|
Constructors
ValueProperty(string, Getter, Setter, IPropertyAttributeCollection)
Declaration
public ValueProperty(string name, ValueProperty<TContainer, TValue>.Getter getter, ValueProperty<TContainer, TValue>.Setter setter, 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
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