Table of Contents

Class TagTypeKey

Namespace
Cryville.EEW
Assembly
Cryville.EEW.dll
Represents a type key of a tag.
public sealed record TagTypeKey : IEquatable<TagTypeKey>
Inheritance
TagTypeKey
Implements
Inherited Members

Properties

Name

The name of the type.
public string Name { get; }

Property Value

string

Parent

The parent type.
public TagTypeKey? Parent { get; }

Property Value

TagTypeKey

Root

The root type.
public TagTypeKey Root { get; }

Property Value

TagTypeKey

Methods

FromString(string)

Creates a tag type key from a string.
public static TagTypeKey FromString(string value)

Parameters

value string
The name of the type.

Returns

TagTypeKey
The created type.

Of(string, TagTypeKey?)

Gets an instance of the TagTypeKey class.
public static TagTypeKey Of(string name, TagTypeKey? parent = null)

Parameters

name string
The name of the type.
parent TagTypeKey
The parent type.

Returns

TagTypeKey

Exceptions

ArgumentException
name contains the sub-type delimiter :.

OfSubtype(string)

Creates a sub-type from this type.
public TagTypeKey OfSubtype(string name)

Parameters

name string
The name of the sub-type.

Returns

TagTypeKey
The created sub-type.

ToString()

Returns a string that represents the current object.
public override string ToString()

Returns

string
A string that represents the current object.

Operators

implicit operator TagTypeKey(string)

Converts a string to a tag type key.
public static implicit operator TagTypeKey(string value)

Parameters

value string
The value.

Returns

TagTypeKey