LinqTypeExtensions class

public static class Korzh.EasyQuery.LinqTypeExtensions

Static Methods

Type Name Description
Type CreateType(this TypeBuilder builder)
ConstructorInfo GetConstructor(this Type type, Type[] types)
String GetDisplayName(this PropertyInfo pi) Returns the display name of the property. This function tries to get the name defined by Display or DisplayName attributes. If any of these attributes is not defined - then the property name is returned.
FieldInfo[] GetFields(this Type type)
Type[] GetGenericArguments(this Type type)
IEnumerable<Type> GetInterfaces(this Type type)
MethodInfo GetMethod(this Type type, String methodName)
MethodInfo GetMethod(this Type type, String methodName, Type[] types)
PropertyInfo[] GetProperties(this Type type)
PropertyInfo[] GetProperties(this Type type, BindingFlags bindingAttr)
PropertyInfo GetProperty(this Type type, String name)
String GetTypeDisplayName(this Type type) Gets the display name of the type. This function tries to get the name defined by Entity or EntityName attributes. If any of these attributes is not defined - then the type name is returned.
Boolean IsEnumerable(this Type typeToCheck) Determines whether the specified type is enumerable (supports System.Collections.Generic.IEnumerable interface.
Boolean IsEnumerableOfSimpleType(this Type typeToCheck) Determines whether the specified type is an enumerable of some simple type .
Boolean IsGenericEnumerable(this Type type)
Boolean IsQueryable(this Type typeToCheck) Determines whether the specified type implements System.Linq.IQueryable interface.