Namespace: System.Reflection
Reflection is used to interrogate, invoke and generate .Net
code on the fly. Code in the CLR is packaged in an assembly, which is a logical
container for different type of CLR data. It includes:
Assembly Metadata
It provides information about the
Name, version, Strong name, culture information. It’s also known as Manifest
information.
Type Metadata
Type information, namespace, name,
exposed members, properties, & methods.
Code (Intermediate Language Code)
Code is the part that is compiled
and executed.
Resources
String, images, or files that are
used from the code are the part of resources.
MultiFile Assembly:
Assembly:
It defines
an Assembly, which is a reusable, versionable, and self-describing building
block of a common language runtime application.
Assembly class:
CreateInstance
|
Overloaded. Locates a type from this
assembly and creates an instance of it using the system activator.
|
Equals
|
Overloaded. Determines whether two Object
instances are equal. (Inherited from Object.)
|
[S]
GetCallingAssembly
|
Returns the Assembly of the method that invoked the currently executing
method.
|
GetCustomAttributes
|
Overloaded. Gets the custom attributes for
this assembly.
|
[S]
GetExecutingAssembly
|
Gets the assembly that contains the code
that is currently executing.
|
GetHashCode
|
Serves as a hash function for a particular
type. GetHashCode is suitable for use in hashing algorithms and data
structures like a hash table. (Inherited from Object.)
|
GetManifestResourceNames
|
Returns the names of all the resources in
this assembly.
|
GetManifestResourceStream
|
Overloaded. Loads the specified manifest
resource from this assembly.
|
GetModules
|
Overloaded. Gets all the modules that are
part of this assembly.
|
GetName
|
Overloaded. Gets an AssemblyName for this
assembly.
|
GetSatelliteAssembly
|
Overloaded. Gets the satellite assembly.
|
GetType
|
Overloaded. Gets the Type object that
represents the specified type.
|
GetTypes
|
Gets the types defined in this assembly.
|
IsDefined
|
Indicates whether a custom attribute
identified by the specified Type
is defined.
|
[S]Load
|
Overloaded. Loads an assembly.
|
[S]
LoadFrom
|
Overloaded. Loads an assembly.
|
[S]
ReferenceEquals
|
Determines whether the specified Object instances are the same
instance. (Inherited from Object.)
|
ToString
|
Overridden. Returns the full name of the
assembly, also known as the display name.
|
[S] Static Method
Module: A module is a portable
executable file of type.dll or .exe consisting of one or more classes and
interfaces. There may be multiple namespaces contained in a single module, and
a namespace may span multiple modules.
One or more modules deployed as a unit compose an assembly.
Public Properties:
Name
|
Description
|
Assembly
|
Gets the appropriate Assembly for this
instance of Module.
|
FullyQualifiedName
|
Gets a string representing the fully
qualified name and path to this module.
|
Name
|
Gets a String representing the name of the
module with the path removed.
|
Public Methods:
Name
|
Description
|
Equals
|
Overloaded. Determines whether two Object
instances are equal. (Inherited from Object.)
|
GetCustomAttributes
|
Overloaded. Returns custom attributes.
|
GetHashCode
|
Serves as a hash function for a particular
type. GetHashCode is suitable for use in hashing algorithms and data
structures like a hash table. (Inherited from Object.)
|
GetType
|
Overloaded. Returns the specified type.
|
GetTypes
|
Returns all the types defined within this
module.
|
IsDefined
|
Determines if the specified attributeType is defined on this module.
|
ReferenceEquals
|
Determines whether the specified Object
instances are the same instance. (Inherited from Object.)
|
Comments