Class NamedDynamicObject
Represents a class that provides a name property and that implements the System.ComponentModel.INotifyPropertyChanged interface
Inheritance
System.Object
NamedDynamicObject
Implements
System.Dynamic.IDynamicMetaObjectProvider
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TimeCockpit.Data.DataModel
Assembly: TimeCockpit.Data.dll
Syntax
public class NamedDynamicObject : DynamicObject, IDynamicMetaObjectProvider, INotifyPropertyChanged
Constructors
NamedDynamicObject()
Initializes a new instance of the NamedDynamicObject class
Declaration
protected NamedDynamicObject()
NamedDynamicObject(IEnumerable<KeyValuePair<Object, Object>>)
Initializes a new instance of the NamedDynamicObject class.
Declaration
protected NamedDynamicObject(IEnumerable<KeyValuePair<object, object>> properties)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.Object, System.Object>> | properties | 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.
Declaration
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
OnPropertyChanged(String)
Fires the PropertyChanged event
Declaration
protected void OnPropertyChanged(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | Name of the property that has been updated. |
Events
PropertyChanged
Occurs after the value of an application settings property is changed.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
System.ComponentModel.PropertyChangedEventHandler |