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