Class Property<T>
Class Property. Implements the IProperty<T>
Inheritance
System.Object
Property<T>
Namespace: ISynergy.Framework.Core.Base
Assembly: ISynergy.Framework.Core.dll
Syntax
public class Property<T> : object, IProperty<T>, IProperty
Type Parameters
Name | Description |
---|---|
T |
Constructors
View SourceProperty(String)
Initializes a new instance of the Property<T> class.
Declaration
public Property(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Property(String, T)
Initializes a new instance of the Property<T> class.
Declaration
public Property(string name, T value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
T | value | The value. |
Properties
View SourceIsDirty
Gets a value indicating whether this instance is dirty.
Declaration
public bool IsDirty { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsOriginalSet
Gets a value indicating whether this instance is original set.
Declaration
public bool IsOriginalSet { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Name
Name of the property.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
OriginalValue
Gets or sets the original value.
Declaration
public T OriginalValue { get; set; }
Property Value
Type | Description |
---|---|
T | The original value. |
Value
Gets or sets the value.
Declaration
public T Value { get; set; }
Property Value
Type | Description |
---|---|
T | The value. |
Methods
View SourceMarkAsClean()
Marks as clean.
Declaration
public void MarkAsClean()
ResetChanges()
Resets the changes.
Declaration
public void ResetChanges()
ToString()
Returns a
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A |
Events
View SourceValueChanged
Occurs when [value changed].
Declaration
public event EventHandler ValueChanged
Event Type
Type | Description |
---|---|
EventHandler |
Implements
Extension Methods
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>, Func<TSource, Boolean>)
See Also
IProperty<T>