MetaName
References[IoId("00000000-b73f-472f-82f8-36e0cfdab6f4")]
public sealed class MetaName : IComparable<MetaName>, IEquatable<MetaName>, IStorable
Represents an immutable data name. We recommend not constructing new names all the time, but instead to have a collection of static names which are used over and over again. This will both result in performance increases and fewer naming mistakes.
Constructors
MetaName
#Create a new non-transformable name from a collection of strings.
public MetaName()
elements
Elements of name. The elements may not contain periods or the wildcard symbols '*' and '?'. We recommend using CamelCase alpha-numeric characters without whitespace.
obsoleteUse MetaName.Create() instead.
Fields
Properties
Indexers
Methods
AppendElement
#Create a new name whch is similar to this one plus an extra element.
Returns: New name.
CompareTo
#Comparison test. This test ignores the IsTransformable property.
Returns: Comparison result.
Create
#Gets a name made from a collection of strings.
Create
#Gets a name made from a single name element.
Create
#Gets a non-transformable name made from a collection of strings.
Create
#Gets a non-transformable name made from a single name element.
Equals
#Test for equality. This test ignores the IsTransformable property.
Returns: True if objects are equal, false if not.
Match
#Test to see whether this name matches a pattern. Matching is always case-insensitive.
Returns: True if pattern matches this name.
Parse
#Creates a new name from a full path. Periods in the path will be used as splitting indices. The path should not contain consecutive periods or the wildcard symbols '*' and '?'. We recommend using CamelCase alpha-numeric characters without whitespace.
Returns: Name that represents the path.
RemoveLastElement
#Create a new name which is similar to this one minus the last element. Names with only one element cannot be reduced.
Returns: New name.
ToArray
#Gets an array of strings which mimics the elements in this name.
Returns: Array of name element.
TryParse
#Creates a new name from a full path. Periods in the path will be used as splitting indices. The path should not contain consecutive periods or the wildcard symbols '*' and '?'. We recommend using CamelCase alpha-numeric characters without whitespace.
Returns: Name that represents the path.
Operators
Convertors
| Operation | Result | Description | ||
|---|---|---|---|---|
| implicit | string | MetaName | Convert a string into a MetaName, using TryParse(string). | |