Click or drag to resize

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
Syntax
protected internal void SetProperty<T>(
	ref T field,
	T value,
	string name
)

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)"]

Examples
C#
private short _gameID = 0;
public short GameID
{
    get { return _gameID; }
    set
    {
        SetProperty(ref _gameID, value, "GameID");
    }
}
See Also