Class FieldHelper
Helper class for validating that an object implements or extends a specific type.
Inherited Members
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 |