A combination of a name and a value assignment for it.
public struct NamedValue : IEquatable<NamedValue>
Fields
Declaration
public const string Separator = ","
Field Value
Type |
Description |
System.String |
|
Properties
Declaration
public string name { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public TypeCode type { get; }
Property Value
Type |
Description |
System.TypeCode |
|
Declaration
public PrimitiveValue value { get; set; }
Property Value
Methods
Declaration
public static void ApplyAllToObject<TParameterList>(object instance, TParameterList parameters)
where TParameterList : IEnumerable<NamedValue>
Parameters
Type |
Name |
Description |
System.Object |
instance |
|
TParameterList |
parameters |
|
Type Parameters
Name |
Description |
TParameterList |
|
Declaration
public void ApplyToObject(object instance)
Parameters
Type |
Name |
Description |
System.Object |
instance |
|
Declaration
public NamedValue ConvertTo(TypeCode type)
Parameters
Type |
Name |
Description |
System.TypeCode |
type |
|
Returns
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
Declaration
public bool Equals(NamedValue other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static NamedValue From<TValue>(string name, TValue value)
where TValue : struct
Parameters
Type |
Name |
Description |
System.String |
name |
|
TValue |
value |
|
Returns
Type Parameters
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
Declaration
public static NamedValue Parse(string str)
Parameters
Type |
Name |
Description |
System.String |
str |
|
Returns
Declaration
public static NamedValue[] ParseMultiple(string parameterString)
Parameters
Type |
Name |
Description |
System.String |
parameterString |
|
Returns
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
Declaration
public static bool operator ==(NamedValue left, NamedValue right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(NamedValue left, NamedValue right)
Parameters
Returns
Type |
Description |
System.Boolean |
|