Skip to main content

Class ModelComponent

Namespace: Aurigma.DesignAtoms.Model
Assembly: Aurigma.DesignAtoms.Model.dll
Syntax
public abstract class ModelComponent : ICloneable

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

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
TypeNameDescription
Aurigma.DesignAtoms.Model.ModelComponentother
Returns

System.Boolean

Equals

public override bool Equals(object obj)
Parameters
TypeNameDescription
System.Objectobj
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
TypeNameDescription
<TItem>clone
System.BooleankeepIds
Returns

<TItem>

Clone

public object Clone(bool keepIds)
Parameters
TypeNameDescription
System.BooleankeepIds
Returns

System.Object

Clone

public object Clone()
Returns

System.Object

OnPropertyChanged

[NotifyPropertyChangedInvocator]
protected virtual void OnPropertyChanged(string propertyName = null)
Parameters
TypeNameDescription
System.StringpropertyName

Fields

UserTagKey

public static string UserTagKey

WarningTagKey

public static string WarningTagKey

Tags

public readonly Dictionary<string, object> Tags

Events

PropertyChanged

public event PropertyChangedEventHandler PropertyChanged
Was this page helpful?