Skip to content

LinqTypeExtensions class

public static class Korzh.EasyQuery.LinqTypeExtensions
TypeNameDescription
TypeCreateType(this TypeBuilder builder)
ConstructorInfoGetConstructor(this Type type, Type[] types)
StringGetDisplayName(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)
MethodInfoGetMethod(this Type type, String methodName)
MethodInfoGetMethod(this Type type, String methodName, Type[] types)
PropertyInfo[]GetProperties(this Type type)
PropertyInfo[]GetProperties(this Type type, BindingFlags bindingAttr)
PropertyInfoGetProperty(this Type type, String name)
StringGetTypeDisplayName(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.
BooleanIsEnumerable(this Type typeToCheck)Determines whether the specified type is enumerable (supports System.Collections.Generic.IEnumerable interface.
BooleanIsEnumerableOfSimpleType(this Type typeToCheck)Determines whether the specified type is an enumerable of some simple type .
BooleanIsGenericEnumerable(this Type type)
BooleanIsQueryable(this Type typeToCheck)Determines whether the specified type implements System.Linq.IQueryable interface.