Extensions for the System.Reflection.Assembly
class.
public static class AssemblyExtensions
string GetBeautifiedName(this Assembly assembly)Summary: Gets the beautified name of the assembly.
Parameters:
assembly
- The assembly.
Type GetExportedTypeByName(this Assembly assembly, string typeName)Summary: Gets the name of the exported type by typeName.
Parameters:
assembly
- The assembly.
typeName
- Name of the type.
Version GetFileVersion(this Assembly assembly)
ResourceManager[] GetResourceManagers(this Assembly assembly)
Type[] GetTypesInheritingFromType(this Assembly assembly, Type type)Summary: Gets the types inheriting from a specific type.
Parameters:
assembly
- The assembly.
type
- The type from which other types are inheriting.
bool IsDebugBuild(this Assembly assembly)Summary: Diagnostics a assembly to find out, is this complied a debug assembly.
Parameters:
assembly
- The assembly.Returns:
true
if assembly is a debug compilation,false
if the assembly is a release compilation.
Extensions for the System.Reflection.FieldInfo
class.
public static class FieldInfoExtensions
string BeautifyName(this FieldInfo fieldInfo, bool useFullName = False, bool useHtmlFormat = False, bool includeReturnType = False)Summary: Beautifies the name.
Parameters:
fieldInfo
- The field information.
useFullName
- if set to true [use full name].
useHtmlFormat
- if set to true [use HTML format].
includeReturnType
- if set to true [include return type].
Extensions for the System.Reflection.MemberInfo
class.
public static class MemberInfoExtensions
Type GetUnderlyingType(this MemberInfo member)Summary: Gets the type of the underlying.
Parameters:
member
- The member.
bool HasCompilerGeneratedAttribute(this MemberInfo memberInfo)
bool HasExcludeFromCodeCoverageAttribute(this MemberInfo memberInfo)Summary: Determines whether [has exclude from code coverage attribute].
Parameters:
memberInfo
- The member information.Returns:
true
if [has exclude from code coverage attribute] [the specified member information]; otherwise,false
.
bool HasIgnoreDisplayAttribute(this MemberInfo memberInfo)Summary: Determines whether [has ignore display attribute].
Parameters:
memberInfo
- The member information.Returns:
true
if [has ignore display attribute] [the specified member information]; otherwise,false
.
bool HasRequiredAttribute(this MemberInfo memberInfo)Summary: Determines whether [has required attribute].
Parameters:
memberInfo
- The member information.Returns:
true
if [has required attribute] [the specified member information]; otherwise,false
.
bool IsPropertyWithSetter(this MemberInfo member)Summary: Determines whether [is property with setter].
Parameters:
member
- The member.
Extensions for the System.Reflection.MethodInfo
class.
public static class MethodInfoExtensions
string BeautifyName(this MethodInfo methodInfo, bool useFullName = False, bool useHtmlFormat = False, bool includeReturnType = False)Summary: Beautifies the name.
Parameters:
methodInfo
- The method information.
useFullName
- if set to true [use full name].
useHtmlFormat
- if set to true [use HTML format].
includeReturnType
- if set to true [include return type].
bool HasDeclaringTypeValidationAttributes(this MethodInfo methodInfo)Summary: Determines whether [has declaring type validation attributes].
Parameters:
methodInfo
- The method information.Returns:
true
if [has declaring type validation attributes] [the specified method information]; otherwise,false
.
bool HasGenericParameters(this MethodInfo methodInfo)Summary: Determines whether [has generic parameters].
Parameters:
methodInfo
- The method information.Returns:
true
if [has generic parameters] [the specified method information]; otherwise,false
.
bool IsOverride(this MethodInfo methodInfo)Summary: Determines whether this instance is override.
Parameters:
methodInfo
- The method information.Returns:
true
if the specified method information is override; otherwise,false
.
Extensions for the System.Reflection.PropertyInfo
class.
public static class PropertyInfoExtensions
string BeautifyName(this PropertyInfo propertyInfo)Summary: Beautifies the name.
Parameters:
propertyInfo
- The property information.
string GetDescription(this PropertyInfo propertyInfo, bool useLocalizedIfPossible = True)Summary: Gets the description.
Parameters:
propertyInfo
- The property information.
useLocalizedIfPossible
- if set to true [use localized if possible].
string GetName(this PropertyInfo propertyInfo)Summary: Gets the name.
Parameters:
propertyInfo
- The property information.
bool IsNullable(this PropertyInfo propertyInfo)