Z.Reflection.Extensions Namespace

Assembly: Z.ExtensionMethods.WithNamespace.dll

Syntax

namespace Z.Reflection.Extensions

Assembly Extended Type

Assembly Description
GetAttribute(Assembly) An Assembly extension method that gets an attribute.
GetCustomAttribute(Assembly, Type) Retrieves a custom attribute applied to a specified assembly. Parameters specify the assembly and the type of the custom attribute to search for.
GetCustomAttribute(Assembly, Type, bool) Retrieves a custom attribute applied to an assembly. Parameters specify the assembly, the type of the custom attribute to search for, and an ignored search option.
GetCustomAttributes(Assembly, Type) Retrieves an array of the custom attributes applied to an assembly. Parameters specify the assembly, and the type of the custom attribute to search for.
GetCustomAttributes(Assembly, Type, bool) Retrieves an array of the custom attributes applied to an assembly. Parameters specify the assembly, the type of the custom attribute to search for, and an ignored search option.
GetCustomAttributes(Assembly) Retrieves an array of the custom attributes applied to an assembly. A parameter specifies the assembly.
GetCustomAttributes(Assembly, bool) Retrieves an array of the custom attributes applied to an assembly. Parameters specify the assembly, and an ignored search option.
IsDefined(Assembly, Type, bool) Determines whether any custom attributes are applied to an assembly. Parameters specify the assembly, the type of the custom attribute to search for, and an ignored search option.
IsDefined(Assembly, Type) Determines whether any custom attributes are applied to an assembly. Parameters specify the assembly, and the type of the custom attribute to search for.

MemberInfo Extended Type

MemberInfo Description
GetCustomAttribute(MemberInfo, Type) Retrieves a custom attribute applied to a member of a type. Parameters specify the member, and the type of the custom attribute to search for.
GetCustomAttribute(MemberInfo, Type, bool) Retrieves a custom attribute applied to a member of a type. Parameters specify the member, the type of the custom attribute to search for, and whether to search ancestors of the member.
GetCustomAttributes(MemberInfo, Type) Retrieves an array of the custom attributes applied to a member of a type. Parameters specify the member, and the type of the custom attribute to search for.
GetCustomAttributes(MemberInfo, Type, bool) Retrieves an array of the custom attributes applied to a member of a type. Parameters specify the member, the type of the custom attribute to search for, and whether to search ancestors of the member.
GetCustomAttributes(MemberInfo) Retrieves an array of the custom attributes applied to a member of a type. A parameter specifies the member.
GetCustomAttributes(MemberInfo, bool) Retrieves an array of the custom attributes applied to a member of a type. Parameters specify the member, the type of the custom attribute to search for, and whether to search ancestors of the member.
GetDeclaraction(MemberInfo) A MemberInfo extension method that gets a declaraction.
IsDefined(MemberInfo, Type) Determines whether any custom attributes are applied to a member of a type. Parameters specify the member, and the type of the custom attribute to search for.
IsDefined(MemberInfo, Type, bool) Determines whether any custom attributes are applied to a member of a type. Parameters specify the member, the type of the custom attribute to search for, and whether to search ancestors of the member.

Module Extended Type

Module Description
GetCustomAttribute(Module, Type) Retrieves a custom attribute applied to a module. Parameters specify the module, and the type of the custom attribute to search for.
GetCustomAttribute(Module, Type, bool) Retrieves a custom attribute applied to a module. Parameters specify the module, the type of the custom attribute to search for, and an ignored search option.
GetCustomAttributes(Module, Type) Retrieves an array of the custom attributes applied to a module. Parameters specify the module, and the type of the custom attribute to search for.
GetCustomAttributes(Module) Retrieves an array of the custom attributes applied to a module. A parameter specifies the module.
GetCustomAttributes(Module, bool) Retrieves an array of the custom attributes applied to a module. Parameters specify the module, and an ignored search option.
GetCustomAttributes(Module, Type, bool) Retrieves an array of the custom attributes applied to a module. Parameters specify the module, the type of the custom attribute to search for, and an ignored search option.
IsDefined(Module, Type) Determines whether any custom attributes of a specified type are applied to a module. Parameters specify the module, and the type of the custom attribute to search for.
IsDefined(Module, Type, bool) Determines whether any custom attributes are applied to a module. Parameters specify the module, the type of the custom attribute to search for, and an ignored search option.

ParameterInfo Extended Type

ParameterInfo Description
GetCustomAttribute(ParameterInfo, Type) Retrieves a custom attribute applied to a method parameter. Parameters specify the method parameter, and the type of the custom attribute to search for.
GetCustomAttribute(ParameterInfo, Type, bool) Retrieves a custom attribute applied to a method parameter. Parameters specify the method parameter, the type of the custom attribute to search for, and whether to search ancestors of the method parameter.
GetCustomAttributes(ParameterInfo) Retrieves an array of the custom attributes applied to a method parameter. A parameter specifies the method parameter.
GetCustomAttributes(ParameterInfo, Type) Retrieves an array of the custom attributes applied to a method parameter. Parameters specify the method parameter, and the type of the custom attribute to search for.
GetCustomAttributes(ParameterInfo, Type, bool) Retrieves an array of the custom attributes applied to a method parameter. Parameters specify the method parameter, the type of the custom attribute to search for, and whether to search ancestors of the method parameter.
GetCustomAttributes(ParameterInfo, bool) Retrieves an array of the custom attributes applied to a method parameter. Parameters specify the method parameter, and whether to search ancestors of the method parameter.
GetDeclaraction(ParameterInfo) A ParameterInfo extension method that gets a declaraction.
IsDefined(ParameterInfo, Type) Determines whether any custom attributes are applied to a method parameter. Parameters specify the method parameter, and the type of the custom attribute to search for.
IsDefined(ParameterInfo, Type, bool) Determines whether any custom attributes are applied to a method parameter. Parameters specify the method parameter, the type of the custom attribute to search for, and whether to search ancestors of the method parameter.

Object Extended Type

Object Description
GetCustomAttribute(object, Type, bool) An object extension method that gets the first custom attribute.
GetCustomAttribute(object, bool) An object extension method that gets custom attribute.
GetCustomAttributeDescription(object) An object extension method that gets description attribute.
GetCustomAttributes(object, bool) An object extension method that gets custom attributes.
GetCustomAttributes(object, bool) An object extension method that gets custom attributes.
GetFields(object) An object extension method that gets the fields.
GetFields(object, BindingFlags) An object extension method that gets the fields.
GetProperties(object) An object extension method that gets the properties.
GetProperties(object, BindingFlags) An object extension method that gets the properties.
InvokeMethod(object, string, object[]) An object extension method that executes the method on a different thread, and waits for the result.
IsAttributeDefined(object, Type, bool) An object extension method that query if '@this' is attribute defined.
IsAttributeDefined(object, bool) An object extension method that query if '@this' is attribute defined.

ConstructorInfo Extended Type

ConstructorInfo Description
GetDeclaraction(ConstructorInfo)

EventInfo Extended Type

EventInfo Description
GetDeclaraction(EventInfo)

FieldInfo Extended Type

FieldInfo Description
GetDeclaraction(FieldInfo) A FieldInfo extension method that gets a declaraction.

MethodInfo Extended Type

MethodInfo Description
GetDeclaraction(MethodInfo) A MethodInfo extension method that gets a declaraction.

PropertyInfo Extended Type

PropertyInfo Description
GetDeclaraction(PropertyInfo) A PropertyInfo extension method that gets a declaraction.

Type Extended Type

Type Description
GetDeclaraction(Type) A Type extension method that gets a declaraction.

T Extended Type

T Description
GetField(T, string) A T extension method that searches for the public field with the specified name.
GetField(T, string, BindingFlags) A T extension method that searches for the specified field, using the specified binding constraints.
GetFieldValue(T, string) A T extension method that gets a field value (Public | NonPublic | Instance | Static)
GetMemberPaths(T, string) A T extension method that gets member paths.
GetMethod(T, string) A T extension method that searches for the public method with the specified name.
GetMethod(T, string, BindingFlags) A T extension method that searches for the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints.
GetMethods(T) A T extension method that returns all the public methods of the current Type.
GetMethods(T, BindingFlags) A T extension method that searches for the methods defined for the current Type, using the specified binding constraints.
GetProperty(T, string) A T extension method that gets a property.
GetProperty(T, string, BindingFlags) A T extension method that gets a property.
GetPropertyOrField(T, string) A T extension method that gets property or field.
GetPropertyValue(T, string) A T extension method that gets property value.
InvokeMethod(T, string, object[]) An object extension method that executes the method on a different thread, and waits for the result.
IsArray(T) A T extension method that query if '@this' is array.
IsClass(T) A T extension method that query if '@this' is class.
IsEnum(T) A T extension method that query if '@this' is enum.
IsSubclassOf(T, Type) A T extension method that query if '@this' is subclass of.
IsTypeOf(T, Type) A T extension method that query if '@this' is type of.
IsTypeOrInheritsOf(T, Type) A T extension method that query if '@this' is type or inherits of.
SetFieldValue(T, string, object) A T extension method that sets field value.
SetPropertyValue(T, string, object) A T extension method that sets property value.
Powered by ZZZ Projects .NET Documentation Generator 0.0.2 (Alpha)