Show / Hide Table of Contents

Struct ModelTreeItem

Denotes a pair of a model element and its parent

Implements
IEquatable<ModelTreeItem>
Inherited Members
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: NMF.Models
Assembly: NMF.Models.dll
Syntax
public readonly struct ModelTreeItem : IEquatable<ModelTreeItem>

Constructors

| Edit this page View Source

ModelTreeItem(IModelElement, IModelElement)

Creates a new pair

Declaration
public ModelTreeItem(IModelElement parent, IModelElement child)
Parameters
Type Name Description
IModelElement parent

the parent model element

IModelElement child

the child model element

Properties

| Edit this page View Source

Child

Gets the child model element

Declaration
public IModelElement Child { get; }
Property Value
Type Description
IModelElement
| Edit this page View Source

Parent

Gets the parent model element

Declaration
public IModelElement Parent { get; }
Property Value
Type Description
IModelElement

Methods

| Edit this page View Source

Equals(ModelTreeItem)

Declaration
public bool Equals(ModelTreeItem other)
Parameters
Type Name Description
ModelTreeItem other
Returns
Type Description
bool
| Edit this page View Source

Equals(object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
ValueType.Equals(object)
| Edit this page View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
ValueType.GetHashCode()

Operators

| Edit this page View Source

operator ==(ModelTreeItem, ModelTreeItem)

Declaration
public static bool operator ==(ModelTreeItem left, ModelTreeItem right)
Parameters
Type Name Description
ModelTreeItem left
ModelTreeItem right
Returns
Type Description
bool
| Edit this page View Source

operator !=(ModelTreeItem, ModelTreeItem)

Declaration
public static bool operator !=(ModelTreeItem left, ModelTreeItem right)
Parameters
Type Name Description
ModelTreeItem left
ModelTreeItem right
Returns
Type Description
bool

Implements

IEquatable<T>
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX