Skip to content

Latest commit

 

History

History
242 lines (215 loc) · 7.95 KB

System.Reflection.md

File metadata and controls

242 lines (215 loc) · 7.95 KB

System.Reflection


AssemblyExtensions

Extensions for the System.Reflection.Assembly class.

public static class AssemblyExtensions

Static Methods

GetBeautifiedName

string GetBeautifiedName(this Assembly assembly)

Summary: Gets the beautified name of the assembly.

Parameters:
     assembly  -  The assembly.

GetExportedTypeByName

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.

GetFileVersion

Version GetFileVersion(this Assembly assembly)

GetResourceManagers

ResourceManager[] GetResourceManagers(this Assembly assembly)

GetTypesInheritingFromType

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.

IsDebugBuild

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.


FieldInfoExtensions

Extensions for the System.Reflection.FieldInfo class.

public static class FieldInfoExtensions

Static Methods

BeautifyName

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].


MemberInfoExtensions

Extensions for the System.Reflection.MemberInfo class.

public static class MemberInfoExtensions

Static Methods

GetUnderlyingType

Type GetUnderlyingType(this MemberInfo member)

Summary: Gets the type of the underlying.

Parameters:
     member  -  The member.

HasCompilerGeneratedAttribute

bool HasCompilerGeneratedAttribute(this MemberInfo memberInfo)

HasExcludeFromCodeCoverageAttribute

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.

HasIgnoreDisplayAttribute

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.

HasRequiredAttribute

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.

IsPropertyWithSetter

bool IsPropertyWithSetter(this MemberInfo member)

Summary: Determines whether [is property with setter].

Parameters:
     member  -  The member.


MethodInfoExtensions

Extensions for the System.Reflection.MethodInfo class.

public static class MethodInfoExtensions

Static Methods

BeautifyName

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].

HasDeclaringTypeValidationAttributes

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.

HasGenericParameters

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.

IsOverride

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.


PropertyInfoExtensions

Extensions for the System.Reflection.PropertyInfo class.

public static class PropertyInfoExtensions

Static Methods

BeautifyName

string BeautifyName(this PropertyInfo propertyInfo)

Summary: Beautifies the name.

Parameters:
     propertyInfo  -  The property information.

GetDescription

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].

GetName

string GetName(this PropertyInfo propertyInfo)

Summary: Gets the name.

Parameters:
     propertyInfo  -  The property information.

IsNullable

bool IsNullable(this PropertyInfo propertyInfo)

Generated by MarkdownCodeDoc version 1.2