Name
Module
Synopsis
Modules are .NET executable
files (either .EXE or .DLL files) consisting
of classes or interfaces. One or more modules and other resources
(such as graphics) make up an assembly. The Module
class allows reflection of these executables.
FilterTypeName
and
FilterTypeNameIgnoreCase
are static properties
that return a TypeFilter
delegate that filters
types by name. The first is case-sensitive, and the second is
case-insensitive. Assembly
returns the appropriate
Assembly
object that this is part of.
Name
returns the filename of this module and
FullyQualifiedName
returns that filename as well
as the full path. Use FindTypes( )
to return a
list of types from a module accepted by a
TypeFilter
delegate. The methods prefixed with
Get
return the specific methods, types, or fields
contained in this module, and IsDefined( )
checks
whether a specific attribute is defined on the module.
public class Module : System.Runtime.Serialization.ISerializable, ICustomAttributeProvider { // Public Static Fields public static readonly TypeFilter FilterTypeName; // =System.Reflection.TypeFilter public static readonly TypeFilter FilterTypeNameIgnoreCase; // =System.Reflection.TypeFilter // Public Instance Properties public Assembly Assembly{get; } public virtual string FullyQualifiedName{get; } public string Name{get; } public string ScopeName{get; } // Public Instance Methods public virtual Type[ ] FindTypes(TypeFilterfilter
, objectfilterCriteria
); public virtual object[ ] GetCustomAttributes ...
Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.