Class TypeExtensions
Inheritance
System.Object
TypeExtensions
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()
Assembly: Bayat.Core.Runtime.dll
Syntax
public static class TypeExtensions
Methods
|
Improve this Doc
View Source
Assembly(Type)
Declaration
public static Assembly Assembly(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Reflection.Assembly |
|
|
Improve this Doc
View Source
AssignableToTypeName(Type, String)
Declaration
public static bool AssignableToTypeName(this Type type, string fullTypeName)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
System.String |
fullTypeName |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AssignableToTypeName(Type, String, out Type)
Declaration
public static bool AssignableToTypeName(this Type type, string fullTypeName, out Type match)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
System.String |
fullTypeName |
|
System.Type |
match |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
BaseType(Type)
Declaration
public static Type BaseType(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Type |
|
|
Improve this Doc
View Source
ContainsGenericParameters(Type)
Declaration
public static bool ContainsGenericParameters(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Default(Type)
Declaration
public static object Default(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
GetFriendlyName(Type)
Declaration
public static string GetFriendlyName(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ImplementInterface(Type, Type)
Declaration
public static bool ImplementInterface(this Type type, Type interfaceType)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
System.Type |
interfaceType |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsAbstract(Type)
Declaration
public static bool IsAbstract(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsBasic(Type)
Declaration
public static bool IsBasic(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsClass(Type)
Declaration
public static bool IsClass(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsConcrete(Type)
Declaration
public static bool IsConcrete(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsEnum(Type)
Declaration
public static bool IsEnum(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsGenericType(Type)
Declaration
public static bool IsGenericType(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsGenericTypeDefinition(Type)
Declaration
public static bool IsGenericTypeDefinition(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsInterface(Type)
Declaration
public static bool IsInterface(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsNullable(Type)
Declaration
public static bool IsNullable(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsNumeric(Type)
Declaration
public static bool IsNumeric(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsNumericConstruct(Type)
Declaration
public static bool IsNumericConstruct(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsPrimitive(Type)
Declaration
public static bool IsPrimitive(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsReferenceType(Type)
Declaration
public static bool IsReferenceType(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsSealed(Type)
Declaration
public static bool IsSealed(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsStatic(Type)
Declaration
public static bool IsStatic(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsStruct(Type)
Declaration
public static bool IsStruct(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsValueType(Type)
Declaration
public static bool IsValueType(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsVisible(Type)
Declaration
public static bool IsVisible(this Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
MemberType(MemberInfo)
Declaration
public static MemberTypes MemberType(this MemberInfo memberInfo)
Parameters
Type |
Name |
Description |
System.Reflection.MemberInfo |
memberInfo |
|
Returns
Type |
Description |
System.Reflection.MemberTypes |
|
|
Improve this Doc
View Source
Method(Delegate)
Declaration
public static MethodInfo Method(this Delegate d)
Parameters
Type |
Name |
Description |
System.Delegate |
d |
|
Returns
Type |
Description |
System.Reflection.MethodInfo |
|