C# Class Microsoft.HockeyApp.Extensibility.Implementation.TypeExtensions

Defines extension methods that allow coding against Type without conditional compilation on versions of .NET framework.
显示文件 Open project: bitstadium/HockeySDK-Windows

Public Methods

Method Description
GetGenericArguments ( this type ) : System.Type[]
GetInterfaces ( this type ) : System.Type[]
GetProperties ( this type ) : System.Reflection.PropertyInfo[]

Returns all the public properties of the specified type.

This method emulates the built-in method of the Type class which is not available on Windows Runtime. Note that, unlike the built-in Type method, this method does not return properties defined in any of the base types. However, this should be sufficient for our public types, which have to be sealed on Windows Runtime.

IsAbstract ( this type ) : bool
IsGenericType ( this type ) : bool

Method Details

GetGenericArguments() public static method

public static GetGenericArguments ( this type ) : System.Type[]
type this
return System.Type[]

GetInterfaces() public static method

public static GetInterfaces ( this type ) : System.Type[]
type this
return System.Type[]

GetProperties() public static method

Returns all the public properties of the specified type.
This method emulates the built-in method of the Type class which is not available on Windows Runtime. Note that, unlike the built-in Type method, this method does not return properties defined in any of the base types. However, this should be sufficient for our public types, which have to be sealed on Windows Runtime.
public static GetProperties ( this type ) : System.Reflection.PropertyInfo[]
type this
return System.Reflection.PropertyInfo[]

IsAbstract() public static method

public static IsAbstract ( this type ) : bool
type this
return bool

IsGenericType() public static method

public static IsGenericType ( this type ) : bool
type this
return bool