VerbNoun

References
[IoId("00000000-eea5-4373-a60a-47b6622368c0")] public sealed class VerbNoun : IStorable
A verb+noun string used in undo Record names. Ideally all undo records are framed like verb+noun, i.e. 'Drop Object', 'Set Data', 'Change Setting', etc.

Constructors

VerbNoun

#
public VerbNoun(
reader
)

VerbNoun

#
Create a new verb+noun pair.
public VerbNoun(
verb,
noun
)

Properties

Nouns

#
Gets the noun part of this pair.
public string[] Nouns { get; }

Verbs

#
Gets the verb part of this pair.
public string[] Verbs { get; }

Methods

Store

#
public void Store(
writer
)
Store

ToString

#
public override string ToString()
Object.ToString

ToString

#
Convert this verb+noun pair to a string using a document for ID lookup.
public string ToString(
doc
Document to search for instances.
)

Operators

OperationResultDescription
VerbNoun+VerbNounVerbNounCombine two verb+noun pairs.

Convertors

OperationResultDescription
explicitVerbNounstringConvert a verb noun to a string.
implicit(string verb, string noun)VerbNounConvert a string tuple to a VerbNoun. If the string contains no spaces, the entire string becomes the verb, otherwise the first space is used to separate the noun from the verb part.
implicitstringVerbNounConvert a string to a VerbNoun. If the string contains no spaces, the entire string becomes the verb, otherwise the first space is used to separate the noun from the verb part.