C# Class FS.Extends.Extend

Show file Open project: FarseerNet/Farseer.Net

Public Methods

Method Description
GetBaseTypes ( this type ) : IEnumerable

获取当前Type继承链上的所有基类型

GetGenericTypeDefinitions ( this type ) : IEnumerable

获取当前Type继承或实现的所有泛型类型定义

GetInterfacesTypes ( this type ) : IEnumerable

获取当前Type实现或继承的所有接口

GetParameterTypes ( this method ) : IEnumerable

获取指定方法或构造方法的参数类型

IsGenericTypeDefinition ( this type ) : bool

指示当前 Type 是否是开放式构造类型的泛型定义。

Method Details

GetBaseTypes() public static method

获取当前Type继承链上的所有基类型
public static GetBaseTypes ( this type ) : IEnumerable
type this 当前的Type对象
return IEnumerable

GetGenericTypeDefinitions() public static method

获取当前Type继承或实现的所有泛型类型定义
public static GetGenericTypeDefinitions ( this type ) : IEnumerable
type this
return IEnumerable

GetInterfacesTypes() public static method

获取当前Type实现或继承的所有接口
public static GetInterfacesTypes ( this type ) : IEnumerable
type this 当前的Type对象
return IEnumerable

GetParameterTypes() public static method

获取指定方法或构造方法的参数类型
public static GetParameterTypes ( this method ) : IEnumerable
method this
return IEnumerable

IsGenericTypeDefinition() public static method

指示当前 Type 是否是开放式构造类型的泛型定义。
public static IsGenericTypeDefinition ( this type ) : bool
type this 当前的Type对象
return bool