docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct NamedValue

    A combination of a name and a value assignment for it.

    Implements
    IEquatable<NamedValue>
    Namespace: UnityEngine.InputSystem.Utilities
    Assembly: Unity.InputSystem.dll
    Syntax
    public struct NamedValue : IEquatable<NamedValue>

    Fields

    Separator

    Declaration
    public const string Separator = ","
    Field Value
    Type Description
    string

    Properties

    name

    Name of the parameter.

    Declaration
    public string name { readonly get; set; }
    Property Value
    Type Description
    string

    type

    Declaration
    public TypeCode type { get; }
    Property Value
    Type Description
    TypeCode

    value

    Value of the parameter.

    Declaration
    public PrimitiveValue value { readonly get; set; }
    Property Value
    Type Description
    PrimitiveValue

    Methods

    ApplyAllToObject<TParameterList>(object, TParameterList)

    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

    ApplyToObject(object)

    Declaration
    public void ApplyToObject(object instance)
    Parameters
    Type Name Description
    object instance

    ConvertTo(TypeCode)

    Declaration
    public NamedValue ConvertTo(TypeCode type)
    Parameters
    Type Name Description
    TypeCode type
    Returns
    Type Description
    NamedValue

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    ValueType.Equals(object)

    Equals(NamedValue)

    Declaration
    public bool Equals(NamedValue other)
    Parameters
    Type Name Description
    NamedValue other
    Returns
    Type Description
    bool

    From<TValue>(string, TValue)

    Declaration
    public static NamedValue From<TValue>(string name, TValue value) where TValue : struct
    Parameters
    Type Name Description
    string name
    TValue value
    Returns
    Type Description
    NamedValue
    Type Parameters
    Name Description
    TValue

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    ValueType.GetHashCode()

    Parse(string)

    Declaration
    public static NamedValue Parse(string str)
    Parameters
    Type Name Description
    string str
    Returns
    Type Description
    NamedValue

    ParseMultiple(string)

    Declaration
    public static NamedValue[] ParseMultiple(string parameterString)
    Parameters
    Type Name Description
    string parameterString
    Returns
    Type Description
    NamedValue[]

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()

    Operators

    operator ==(NamedValue, NamedValue)

    Declaration
    public static bool operator ==(NamedValue left, NamedValue right)
    Parameters
    Type Name Description
    NamedValue left
    NamedValue right
    Returns
    Type Description
    bool

    operator !=(NamedValue, NamedValue)

    Declaration
    public static bool operator !=(NamedValue left, NamedValue right)
    Parameters
    Type Name Description
    NamedValue left
    NamedValue right
    Returns
    Type Description
    bool

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)