Class ModelComponent
Inheritance
System.Object
ModelComponent
Implements
System.ComponentModel.INotifyPropertyChanged
System.ICloneable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Aurigma.DesignAtoms.Model.dll
Syntax
public abstract class ModelComponent : ICloneable
Constructors
ModelComponent(String, String)
Declaration
protected ModelComponent(string id = null, string name = "")
Parameters
| Type |
Name |
Description |
| System.String |
id |
|
| System.String |
name |
|
Fields
Declaration
public readonly Dictionary<string, object> Tags
Field Value
| Type |
Description |
| System.Collections.Generic.Dictionary<System.String, System.Object> |
|
UserTagKey
Declaration
public static string UserTagKey
Field Value
| Type |
Description |
| System.String |
|
WarningTagKey
Declaration
public static string WarningTagKey
Field Value
| Type |
Description |
| System.String |
|
Properties
Id
Declaration
public string Id { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Name
Declaration
public virtual string Name { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Version
Declaration
public string Version { get; }
Property Value
| Type |
Description |
| System.String |
|
Methods
Clone()
Declaration
Returns
| Type |
Description |
| System.Object |
|
Clone(Boolean)
Declaration
public object Clone(bool keepIds)
Parameters
| Type |
Name |
Description |
| System.Boolean |
keepIds |
|
Returns
| Type |
Description |
| System.Object |
|
DeepClone<TItem>(TItem, Boolean)
Declaration
public virtual TItem DeepClone<TItem>(TItem clone = null, bool keepIds = false)
where TItem : ModelComponent
Parameters
| Type |
Name |
Description |
| TItem |
clone |
|
| System.Boolean |
keepIds |
|
Returns
Type Parameters
Equals(ModelComponent)
Declaration
protected bool Equals(ModelComponent other)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| System.Object |
obj |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GenerateId()
Declaration
public static string GenerateId()
Returns
| Type |
Description |
| System.String |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
System.Object.GetHashCode()
OnPropertyChanged(String)
Declaration
[NotifyPropertyChangedInvocator]
protected virtual void OnPropertyChanged(string propertyName = null)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
ToString()
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Overrides
System.Object.ToString()
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type |
Description |
| System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged
System.ICloneable