Class NamedDynamicObject
- Namespace
- TimeCockpit.Data.DataModel
- Assembly
- TimeCockpit.Data.dll
Represents a class that provides a name property and that implements the System.ComponentModel.INotifyPropertyChanged interface
public class NamedDynamicObject : DynamicObject, IDynamicMetaObjectProvider, INotifyPropertyChanged
- Inheritance
-
ObjectNamedDynamicObject
- Implements
-
IDynamicMetaObjectProviderINotifyPropertyChanged
- Derived
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Constructors
NamedDynamicObject()
Initializes a new instance of the NamedDynamicObject class
protected NamedDynamicObject()
NamedDynamicObject(IEnumerable<KeyValuePair<Object, Object>>)
Initializes a new instance of the NamedDynamicObject class.
protected NamedDynamicObject(IEnumerable<KeyValuePair<object, object>> properties)
Parameters
propertiesIEnumerable<KeyValuePair<Object, Object>>Collection of properties.
Remarks
You can use this constructor to initialize a new instance of the ModelElement class by specifying its properties in a list of key/value pairs. This is especially useful for dynamic languages like python.
Properties
Name
Gets or sets the name of the object.
public virtual string Name { get; set; }
Property Value
- String
Methods
OnPropertyChanged(String)
Fires the PropertyChanged event
protected void OnPropertyChanged(string propertyName)
Parameters
propertyNameStringName of the property that has been updated.
Events
PropertyChanged
Occurs after the value of an application settings property is changed.
public event PropertyChangedEventHandler PropertyChanged
Event Type
- PropertyChangedEventHandler