RuleArgument

References
[IoId("00000000-cda9-47e1-b803-e439a608e58b")] public sealed class RuleArgument : IEquatable<RuleArgument>, IStorable
Rule argument. Used for instructions like RuleCommand.Tint to specify *what* colour ought to be assigned. Arguments are sometimes optional and sometimes not even allowed (for example with RuleCommand.Show instructions). In rule notation, arguments are always written last, following a " -> " substring.

Constructors

RuleArgument

#
public RuleArgument(
reader
)

Properties

Code

#
Gets the original text from which this argument is constructed
public string Code { get; }

Empty

#
public static RuleArgument Empty { get; }

Type

#
Gets the kind of argument.
public ArgumentType Type { get; }

Value

#
The value. The type of this object depends on Type.
public object Value { get; }

Methods

Equals

#
public override bool Equals(
obj
)
Object.Equals

Equals

#
public bool Equals()

GetHashCode

#
public override int GetHashCode()
Explicit

IStorable.Store

#
void IStorable.Store(
writer
)
Store

Parse

#
public static RuleArgument Parse(
notation,
allowedTypes,
out string
error
)

Parse

#
public static RuleArgument Parse(
notation,
instruction,
out string
error
)

ToString

#
public override string ToString()
Object.ToString