Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    ParameterKeys Class

    Namespace: Stride.Rendering
    Assembly: Stride.dll
    System.Object → ParameterKeys
    Derived from ParameterKeys:

    public static class ParameterKeys
    Name Description
    Methods
    ComposeIndexer<T>(T, String, Int32)

    Compose a key with a name and index (e.g if key is MyKey.MyKeyName and name is MyName and index is 5, the result key will be MyKey.MyKeyName.MyName[5])

    ComposeWith<T>(T, String)

    Compose a key with a name (e.g if key is MyKey.MyKeyName and name is MyName, the result key will be MyKey.MyKeyName.MyName)

    FindByName(String)
    GetKeys()

    Returns property keys matching a given type

    IndexedKey<T>(T, Int32)

    Creates the key with specified index.

    Merge(ParameterKey, Type, String)
    NewObject<T>(T, String)
    NewPermutation<T>(T, String)
    NewValue<T>(T, String)
    TryFindByName(String)
    | Improve this Doc View Source

    Methods


    ComposeIndexer<T>(T, String, Int32)

    Compose a key with a name and index (e.g if key is MyKey.MyKeyName and name is MyName and index is 5, the result key will be MyKey.MyKeyName.MyName[5])

    public static T ComposeIndexer<T>(this T key, string name, int index)
        where T : ParameterKey
    Parameters
    Type Name Description
    T key

    The key.

    System.String name

    The name to append to the key.

    System.Int32 index

    The index.

    Returns
    Type Description
    T

    T.

    Type Parameters
    Name Description
    T

    Type of the key value

    Exceptions
    Type Condition
    System.ArgumentNullException

    key or name

    System.ArgumentOutOfRangeException

    index;Must be >= 0


    ComposeWith<T>(T, String)

    Compose a key with a name (e.g if key is MyKey.MyKeyName and name is MyName, the result key will be MyKey.MyKeyName.MyName)

    public static T ComposeWith<T>(this T key, string name)
        where T : ParameterKey
    Parameters
    Type Name Description
    T key

    The key.

    System.String name

    The name to append to the key.

    Returns
    Type Description
    T

    The composition of key and name

    Type Parameters
    Name Description
    T

    Type of the key value

    Exceptions
    Type Condition
    System.ArgumentNullException

    key or name


    FindByName(String)

    public static ParameterKey FindByName(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    ParameterKey

    GetKeys()

    Returns property keys matching a given type

    public static IEnumerable<ParameterKey> GetKeys()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<ParameterKey>

    IndexedKey<T>(T, Int32)

    Creates the key with specified index.

    public static T IndexedKey<T>(T key, int index)
        where T : ParameterKey
    Parameters
    Type Name Description
    T key
    System.Int32 index

    The index.

    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    Merge(ParameterKey, Type, String)

    public static ParameterKey Merge(ParameterKey key, Type ownerType, string name)
    Parameters
    Type Name Description
    ParameterKey key
    System.Type ownerType
    System.String name
    Returns
    Type Description
    ParameterKey

    NewObject<T>(T, String)

    public static ObjectParameterKey<T> NewObject<T>(T defaultValue = null, string name = null)
    Parameters
    Type Name Description
    T defaultValue
    System.String name
    Returns
    Type Description
    ObjectParameterKey<T>
    Type Parameters
    Name Description
    T

    NewPermutation<T>(T, String)

    public static PermutationParameterKey<T> NewPermutation<T>(T defaultValue = null, string name = null)
    Parameters
    Type Name Description
    T defaultValue
    System.String name
    Returns
    Type Description
    PermutationParameterKey<T>
    Type Parameters
    Name Description
    T

    NewValue<T>(T, String)

    public static ValueParameterKey<T> NewValue<T>(T defaultValue = default(T), string name = null)
        where T : struct
    Parameters
    Type Name Description
    T defaultValue
    System.String name
    Returns
    Type Description
    ValueParameterKey<T>
    Type Parameters
    Name Description
    T

    TryFindByName(String)

    public static ParameterKey TryFindByName(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    ParameterKey

    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation