Show / Hide Table of Contents

    Class FieldHelper

    Helper class for validating that an object implements or extends a specific type.

    Inheritance
    Object
    FieldHelper
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.SpectatorView
    Assembly: cs.temp.dll.dll
    Syntax
    public class FieldHelper

    Methods

    ValidateType<T>(Object)

    Used to assess whether an object implements or extends the type T

    Declaration
    public static bool ValidateType<T>(object obj)
        where T : class
    Parameters
    Type Name Description
    Object obj

    Object that should implement the provided type

    Returns
    Type Description
    Boolean

    Returns true if the object implements or extends the provided type, Throws if the object does not implement said type.

    Type Parameters
    Name Description
    T

    Type that the provided object should impelments or extends

    In This Article
    • Methods
      • ValidateType<T>(Object)
    Back to top Generated by DocFX