Skip to Content
Microsoft® .NET Kick Start
book

Microsoft® .NET Kick Start

by Hitesh Seth
December 2003
Intermediate to advanced content levelIntermediate to advanced
504 pages
10h 42m
English
Sams
Content preview from Microsoft® .NET Kick Start

Introspecting Types Using Reflection

The System.Reflection namespaces provide classes for introspecting currently loaded classes and their associated methods and fields. Also, this namespace provides a dynamic way of creating instances of a particular class. The Reflection namespace is particularly useful for tool developers. For instance, if you were to build your own Visual C# or Visual Basic.NET code editor and would like to enable IntelliSense autocomplete functionality for classes and methods, you would use the Reflection class library to achieve that.

Introspecting Classes

In this section, you'll take a quick look at the System.Reflection.Type class, which provides methods for introspecting class definitions. For instance, Listing 4.9

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

Professional C# 5.0 and .NET 4.5.1

Professional C# 5.0 and .NET 4.5.1

Christian Nagel, Jay Glynn, Morgan Skinner
ASP.NET 4 Unleashed

ASP.NET 4 Unleashed

Stephen Walther, Kevin Hoffman, Nate Dudek
C# 4.0 Unleashed

C# 4.0 Unleashed

Bart De Smet

Publisher Resources

ISBN: 0672325748Purchase book