Show / Hide Table of Contents

    Class ModelExtensions

    Inheritance
    System.Object
    ModelExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Elements
    Assembly: Hypar.Elements.dll
    Syntax
    public static class ModelExtensions

    Methods

    AllElementsOfType<T>(Dictionary<String, Model>, String)

    Get all elements of a certain type from a specific model name in a dictionary of models.

    Declaration
    public static List<T> AllElementsOfType<T>(this Dictionary<string, Model> models, string modelName)
        where T : Element
    Parameters
    Type Name Description
    System.Collections.Generic.Dictionary<System.String, Model> models

    Dictionary of models keyed by string.

    System.String modelName

    The name of the model.

    Returns
    Type Description
    System.Collections.Generic.List<T>
    Type Parameters
    Name Description
    T

    The type of element we want to retrieve.

    AllProxiesOfType<T>(Dictionary<String, Model>, String)

    Get all proxies of a certain type from a specific model name in a dictionary of models.

    Declaration
    public static List<ElementProxy<T>> AllProxiesOfType<T>(this Dictionary<string, Model> models, string modelName)
        where T : Element
    Parameters
    Type Name Description
    System.Collections.Generic.Dictionary<System.String, Model> models

    Dictionary of models keyed by string

    System.String modelName

    The name of the model

    Returns
    Type Description
    System.Collections.Generic.List<ElementProxy<T>>
    Type Parameters
    Name Description
    T

    The type of element we want to retrieve