Skip to Main Content
C# in a Nutshell
book

C# in a Nutshell

by Ben Albahari, Ted Neward, Peter Drayton
March 2002
Intermediate to advanced content levelIntermediate to advanced
864 pages
31h 8m
English
O'Reilly Media, Inc.
Content preview from C# in a Nutshell

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 field TypeFilter FilterTypeName;  // =System.Reflection.TypeFilter
   public static readonly field TypeFilter FilterTypeNameIgnoreCase; // =System.Reflection.TypeFilter  
                  // Public Instance Properties
   public field Assembly Assembly{get; } 
   public virtual field string FullyQualifiedName{get; } 
   public field string Name{get; } 
   public field string ScopeName{get; } 
// Public Instance Methods
   public virtual method Type[] FindTypes(TypeFilter filter, 
        object filterCriteria ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# 8.0 in a Nutshell

C# 8.0 in a Nutshell

Joseph Albahari, Eric Johannsen
C# 10 in a Nutshell

C# 10 in a Nutshell

Joseph Albahari
C# in a Nutshell, Second Edition

C# in a Nutshell, Second Edition

Peter Drayton, Ben Albahari, Ted Neward
Code like a Pro in C#

Code like a Pro in C#

Jort Rodenburg

Publisher Resources

ISBN: 0596001819Catalog PageErrata