O'Reilly logo

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

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

TypeDelegator

Synopsis

Because System.Type is an abstract class, TypeDelegator simply wraps System.Type methods and provides the necessary implementations.

public class TypeDelegator : Type {
// Public Constructors
   public method TypeDelegator(Type delegatingType);  
// Protected Constructors
   protected method TypeDelegator();  
// Protected Instance Fields
   protected field Type typeImpl;  
// Public Instance Properties
   public override field Assembly Assembly{get; }                // overrides Type
   public override field string AssemblyQualifiedName{get; }     // overrides Type
   public override field Type BaseType{get; }                    // overrides Type
   public override field string FullName{get; }                  // overrides Type
   public override field Guid GUID{get; }                        // overrides Type
   public override field Module Module{get; }                    // overrides Type
   public override field string Name{get; }                      // overrides MemberInfo
   public override field string Namespace{get; }                 // overrides Type
   public override field RuntimeTypeHandle TypeHandle{get; }     // overrides Type
   public override field Type UnderlyingSystemType{get; }        // overrides Type
                  // Public Instance Methods
   public override method ConstructorInfo[] GetConstructors(    // overrides Type
        BindingFlags bindingAttr);  
   public override method object[] GetCustomAttributes(         // overrides MemberInfo
        bool inherit);  
   public override method object[] GetCustomAttributes(         // overrides MemberInfo
        Type attributeType, bool inherit);  
   public override method Type GetElementType();                 // overrides Type public override method EventInfo ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required