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(IReader reader)
reader (IReader)

VerbNoun

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

Properties

Nouns

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

Verbs

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

Methods

Store

#
public void Store(IWriter writer)
writer (IWriter)
Store

ToString

#
public override string ToString()
Object.ToString

ToString

#
public string ToString(Document doc)
Convert this verb+noun pair to a string using a document for ID lookup.
doc (Document)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.