/// <inheridoc/> public override string ToString() { switch (Type) { case ArgumentValueKind.PrimitiveValue: return(PrimitiveValue.ToString()); case ArgumentValueKind.Artifact: return(Artifact.ToString()); case ArgumentValueKind.PrimitiveArgument: return(PrimitiveArgument.ToString()); case ArgumentValueKind.CompoundValue: return(CompoundValue.ToString()); case ArgumentValueKind.Undefined: return("undefined"); default: throw new ArgumentOutOfRangeException($"Unknown Type '{Type}'"); } }
/// <nodoc/> public static ArgumentValue FromPrimitive(ArgumentKind kind, PrimitiveValue value) { return(new ArgumentValue(new PrimitiveArgument(kind, value))); }
/// <nodoc/> public PrimitiveArgument(ArgumentKind kind, PrimitiveValue value) : this() { Kind = kind; Value = value; }