UtilReflection Class

Contains Reflection related utilites.

Definition

Namespace: DevCase.Core.Diagnostics.Assembly.Reflection
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class UtilReflection
Inheritance
Object    UtilReflection

Remarks

Methods

Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetAllBaseTypesT Gets the Type inheritance hierarchy of the the source Type, that is, the type from which the source Type directly inherits, and the types from which their inherited types inherits.
GetAllConstructors(Object, BindingFlags) Gets all the constructors declared in the specified object.
GetAllConstructors(Type, BindingFlags) Gets all the constructors declared in the specified Type.
GetAllConstructorsT(BindingFlags) Gets all the constructors declared in the specified Type.
GetAllDerivedTypesT Gets all the types that inherits from the source Type within the Assembly in which the source Type is defined.
GetAllDerivedTypesT(Assembly) Gets all the types that inherits from the source Type within the specified Assembly.
GetAllEnums Gets all the Enum types defined in the source DevCase.Core.Diagnostics.Assembly.
GetAllFields(Object, Boolean, BindingFlags) Gets all the fields declared in the specified object.
GetAllFields(Type, Boolean, BindingFlags) Gets all the fields declared in the specified Type.
GetAllFieldsT(Boolean, BindingFlags) Gets all the fields declared in the specified Type.
GetAllInterfaces(Object) Gets all the interfaces implemented or inherited by the specified object.
GetAllInterfaces(Type) Gets all the interfaces implemented or inherited by the specified Type.
GetAllInterfacesT Gets all the interfaces implemented or inherited by the specified Type.
GetAllMethods(Object, Boolean, BindingFlags) Gets all the methods declared in the specified object.
GetAllMethods(Type, Boolean, BindingFlags) Gets all the methods declared in the specified Type.
GetAllMethodsT(Boolean, BindingFlags) Gets all the methods declared in the specified Type.
GetAllProperties(Object, Boolean, BindingFlags) Gets all the properties declared in the specified object.
GetAllProperties(Type, Boolean, BindingFlags) Gets all the properties declared in the specified Type.
GetAllPropertiesT(Boolean, BindingFlags) Gets all the properties declared in the specified Type.
GetAssemblyPEKind Determines the PE (Portable Executable) type of a .NET assembly.
GetAssemblyTargetPlatform Determines the target platform (i386, AMD64, etc) of a .NET assembly.
GetCLRVersion Gets the CLR runtime version on which the specified assembly runs on.
GetField(Object, String, BindingFlags) Searches for the specified field in the specified object.
GetField(Type, String, BindingFlags) Searches for the specified field in the specified type.
GetFieldT(String, BindingFlags) Searches for the specified field in the specified type.
GetFieldValueT(Object, String, BindingFlags) Searches for the specified field in the specified object, and returns the field value.
GetFieldValueT(Object, String, T, BindingFlags) Searches for the specified field in the specified object, and returns the field value.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetInterface(Object, String) Searches for the specified interface implemented or inherited in the specified object.
GetInterface(Type, String) Searches for the specified interface implemented or inherited in the specified Type.
GetInterfaceT(String) Searches for the specified interface implemented or inherited in the specified Type.
GetMethod(Object, String, BindingFlags) Searches for the target method in the specified object.
GetMethod(Object, String, Type) Searches for the target method in the specified object.
GetMethod(Type, String, BindingFlags) Searches for the target method in the specified Type.
GetMethod(Type, String, Type) Searches for the target method in the specified Type.
GetProperty(Object, String, BindingFlags) Searches for the specified property in the specified object.
GetProperty(Type, String, BindingFlags) Searches for the specified property in the specified Type.
GetPropertyT(String, BindingFlags) Searches for the specified property in the specified type.
GetPropertyValueT(Object, String, BindingFlags) Searches for the specified property in the specified object, and returns the property value.
GetPropertyValueT(Object, String, T, BindingFlags) Searches for the specified property in the specified object, and returns the property value.
GetReferencedAssemblies Gets the referenced assemblies of the specified assembly.
GetTargetFrameworkName Gets the display name of the .NET Framework version on which the source assembly was compiled.
GetTargetFrameworkVersion Gets the .NET Framework version on which the specified assembly was compiled.
GetType Gets the Type of the current instance.
(Inherited from Object)
IsNetAssembly Determines whether an exe/dll file is an .NET assembly.
TypeHasPublicConstructor Determines whether the source Type has defined at least one public constructor.
TypeHasPublicDefaultConstructor Determines whether the source Type has defined a public default parameterless constructor.

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also