Method NewLinkedScalar
| Improve this Doc View SourceNewLinkedScalar<T>(String, IEqualityComparer<T>)
Creates a new strongly typed scalar data which can be used as data binding source, from exising property or field .
Declaration
protected Scalar<T> NewLinkedScalar<T>(string propertyOrFieldName, IEqualityComparer<T> equalityComparer = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyOrFieldName | The name of the property or field. |
System.Collections.Generic.IEqualityComparer<T> | equalityComparer | The equality comparer. |
Returns
Type | Description |
---|---|
Scalar<T> | A new strongly typed scalar data which can be used as data binding source, from exising property or field. |
Type Parameters
Name | Description |
---|---|
T | The type of the scalar data. |
NewLinkedScalar<T>(Func<T>, Action<T>, IEqualityComparer<T>)
Creates a new strongly typed scalar data which can be used as data binding source, from existing getter and setter.
Declaration
protected Scalar<T> NewLinkedScalar<T>(Func<T> getter, Action<T> setter, IEqualityComparer<T> equalityComparer = null)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T> | getter | The exising getter of the scalar data. |
System.Action<T> | setter | The existing setter of the scalar data. |
System.Collections.Generic.IEqualityComparer<T> | equalityComparer | The equality comparer. |
Returns
Type | Description |
---|---|
Scalar<T> | A new strongly typed scalar data which can be used as data binding source, from exising getter and setter. |
Type Parameters
Name | Description |
---|---|
T | The type of the scalar data. |