Selector

References
public sealed class Selector : IEquatable<Selector>
Selector pattern for chapters, sections or items.

Constructors

Selector

#
Create a new selector pattern based on a list of guids.
public Selector(
params Guid[]
guids
)

Selector

#
Create a new selector pattern.
public Selector(
chapter,
section,
item,
slot,
rank
)

Fields

BeginBlock

#
Gets the symbol which starts a selector pattern with potential spaces.
public const char BeginBlock = '{'

EndBlock

#
Gets the symbol which terminates a selector pattern.
public const char EndBlock = '}'

Properties

Any

#
Gets the selector for all proxies.
public static Selector Any { get; }

AnyChapter

#
Gets whether the chapter has been defined.
public bool AnyChapter { get; }

AnyItem

#
Gets whether the item name has been defined.
public bool AnyItem { get; }

AnyRank

#
Gets whether the rank has been defined.
public bool AnyRank { get; }

AnySection

#
Gets whether the section has been defined.
public bool AnySection { get; }

AnySlot

#
Gets whether the slot has been defined.
public bool AnySlot { get; }

Chapter

#
Chapter wildcard pattern.
public string Chapter { get; }

Empty

#
Gets whether this selector has any constraints at all.
public bool Empty { get; }

Item

#
Item name wildcard pattern.
public string Item { get; }

OnlyChapters

#
Gets whether this selector only applies to chapters.
public bool OnlyChapters { get; }

OnlySections

#
Gets whether this selector only applies to specific chapter+section pairs.
public bool OnlySections { get; }

Rank

#
Gets the rank identifier, if any.
public Rank? Rank { get; }

Section

#
Section wildcard pattern.
public string Section { get; }

Slot

#
Gets the slot identifier. Negative values indicate wildcards.
public int Slot { get; }

WildChapters

#
Gets whether the chapter has been partially defined.
public bool WildChapters { get; }

WildItems

#
Gets whether the name has been partially defined.
public bool WildItems { get; }

WildSections

#
Gets whether the section has been partially defined.
public bool WildSections { get; }

Methods

Equals

#
public bool Equals(
other
)

FromChapter

#
Create a selector for a specific chapter.
public static Selector FromChapter(
chapter
chapter pattern.
)

FromIds

#
Create a selector from one or more space or comma separated guids.
public static Selector FromIds(
list
String containing guids.
)
Selector for Guids, or null if the string is not a valid guid list.

FromItem

#
Create a selector for a specific chapter+section+Slot+Item.
public static Selector FromItem(
chapter,
Chapter pattern.
section,
Section pattern.
item,
Item pattern.
slot = -1,
Slot index.
rank = null
Rank.
)

FromNomen

#
Create a selector from a Nomen.
public static Selector FromNomen(
nomen
)

FromSection

#
Create a selector for a specific chapter+section.
public static Selector FromSection(
chapter,
Chapter pattern.
section
Section pattern.
)

Replace

#
Replace the (partially) undefined portions of a selector with the appropriate fields from a Nomen.
public static Nomen Replace(
pattern,
source
)

ToString

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

TryParse

#
Try and parse a selector format string.
public static Selector TryParse(
pattern
)