Class TagTypeKey
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
Parent
The parent type.
public TagTypeKey? Parent { get; }
Property Value
Root
The root type.
public TagTypeKey Root { get; }
Property Value
Methods
FromString(string)
Creates a tag type key from a string.
public static TagTypeKey FromString(string value)
Parameters
valuestring- 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
namestring- The name of the type.
parentTagTypeKey- The parent type.
Returns
Exceptions
- ArgumentException
namecontains the sub-type delimiter:.
OfSubtype(string)
Creates a sub-type from this type.
public TagTypeKey OfSubtype(string name)
Parameters
namestring- 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
valuestring- The value.