SecretSetPropertyT Method |
Compares a field's current value against a new value.
If they are different, sets the field to the new value and
sends a notification that the property has changed.
Namespace:
Zyrenth.Zora
Assembly:
ZoraSharp (in ZoraSharp.dll) Version: 2.3
Syntaxprotected internal void SetProperty<T>(
ref T field,
T value,
string name
)
Protected Friend Sub SetProperty(Of T) (
ByRef field As T,
value As T,
name As String
)
Parameters
- field
- Type: T
Reference to the field storing current value - value
- Type: T
New value to ensure the field has - name
- Type: SystemString
Name of the property being changed
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:Zyrenth.Zora.Secret.SetProperty``1(``0@,``0,System.String)"]
Examplesprivate short _gameID = 0;
public short GameID
{
get { return _gameID; }
set
{
SetProperty(ref _gameID, value, "GameID");
}
}
See Also