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