Skip to Main Content
C# in a Nutshell, Second Edition
book

C# in a Nutshell, Second Edition

by Peter Drayton, Ben Albahari, Ted Neward
August 2003
Intermediate to advanced content levelIntermediate to advanced
928 pages
32h 1m
English
O'Reilly Media, Inc.
Content preview from C# in a Nutshell, Second Edition

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(TypeFilter filter, object filterCriteria);
   public virtual object[ ] GetCustomAttributes ...
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# in a Nutshell

C# in a Nutshell

Ben Albahari, Ted Neward, Peter Drayton
C# 7.0 in a Nutshell

C# 7.0 in a Nutshell

Joseph Albahari, Ben Albahari
C# Cookbook, 2nd Edition

C# Cookbook, 2nd Edition

Jay Hilyard, Stephen Teilhet
C# Cookbook

C# Cookbook

Stephen Teilhet, Jay Hilyard

Publisher Resources

ISBN: 0596005261Catalog PageErrata