Class DefaultNamespaceTypeWrapper
  The TypeWrapper class wraps a Type so it may be used in
a platform-independent manner. This class overrides the
namespace to return null so it is only run once per
assembly.
 
  
  
    Inheritance
    
    DefaultNamespaceTypeWrapper
   
  
    Implements
    ITypeInfo
    IReflectionInfo
   
  
  
  Assembly: Lucene.Net.TestFramework.dll
  Syntax
  
    public class DefaultNamespaceTypeWrapper : ITypeInfo, IReflectionInfo
   
  Constructors
  
  DefaultNamespaceTypeWrapper(Type)
  Construct a TypeWrapper for a specified Type.
 
  
  Declaration
  
    public DefaultNamespaceTypeWrapper(Type type)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Type | 
        type | 
         | 
      
    
  
  Properties
  
  Assembly
  Gets the assembly in which the type is declared
 
  
  Declaration
  
    public Assembly Assembly { get; }
   
  Property Value
  
  
  BaseType
  Gets the base type of this type as an ITypeInfo
 
  
  Declaration
  
    public ITypeInfo BaseType { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | ITypeInfo | 
         | 
      
    
  
  
  ContainsGenericParameters
  Gets a value indicating whether the Type has generic parameters that have not been replaced by specific Types.
 
  
  Declaration
  
    public bool ContainsGenericParameters { get; }
   
  Property Value
  
  
  FullName
  Gets the FullName of the Type
 
  
  Declaration
  
    public string FullName { get; }
   
  Property Value
  
  
  IsAbstract
  Gets a value indicating whether the type is abstract.
 
  
  Declaration
  
    public bool IsAbstract { get; }
   
  Property Value
  
  
  IsGenericType
  Gets a value indicating whether the Type is a generic Type
 
  
  Declaration
  
    public bool IsGenericType { get; }
   
  Property Value
  
  
  IsGenericTypeDefinition
  Gets a value indicating whether the Type is a generic Type definition
 
  
  Declaration
  
    public bool IsGenericTypeDefinition { get; }
   
  Property Value
  
  
  IsSealed
  Gets a value indicating whether the type is sealed.
 
  
  Declaration
  
    public bool IsSealed { get; }
   
  Property Value
  
  
  IsStaticClass
  Gets a value indicating whether this type represents a static class.
 
  
  Declaration
  
    public bool IsStaticClass { get; }
   
  Property Value
  
  
  Name
  Gets the Name of the Type
 
  
  Declaration
  
    public string Name { get; }
   
  Property Value
  
  
  Namespace
  Gets the namespace of the Type
 
  
  Declaration
  
    public string Namespace { get; }
   
  Property Value
  
  
  Type
  Gets the underlying Type on which this TypeWrapper is based.
 
  
  Declaration
  
    public Type Type { get; }
   
  Property Value
  
  Methods
  
  Construct(object[])
  Construct an object of this Type, using the specified arguments.
 
  
  Declaration
  
    public object Construct(object[] args)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | object[] | 
        args | 
         | 
      
    
  
  Returns
  
  
  GetConstructor(Type[])
  Gets the public constructor taking the specified argument Types
 
  
  Declaration
  
    public ConstructorInfo GetConstructor(Type[] argTypes)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Type[] | 
        argTypes | 
         | 
      
    
  
  Returns
  
  
  GetCustomAttributes<T>(bool)
  Returns an array of custom attributes of the specified type applied to this type
 
  
  Declaration
  
    public T[] GetCustomAttributes<T>(bool inherit) where T : class
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | bool | 
        inherit | 
         | 
      
    
  
  Returns
  
  Type Parameters
  
  
  GetDisplayName()
  Get the display name for this type
 
  
  Declaration
  
    public string GetDisplayName()
   
  Returns
  
  
  GetDisplayName(object[])
  Get the display name for an object of this type, constructed with the specified args.
 
  
  Declaration
  
    public string GetDisplayName(object[] args)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | object[] | 
        args | 
         | 
      
    
  
  Returns
  
  
  GetGenericTypeDefinition()
  Returns a Type representing a generic type definition from which this Type can be constructed.
 
  
  Declaration
  
    public Type GetGenericTypeDefinition()
   
  Returns
  
  
  GetMethods(BindingFlags)
  Returns an array of IMethodInfos for methods of this Type
that match the specified flags.
 
  
  Declaration
  
    public IMethodInfo[] GetMethods(BindingFlags flags)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | IMethodInfo[] | 
         | 
      
    
  
  
  GetMethodsWithAttribute<T>(bool)
  Returns all methods declared by this type that have the specified attribute, optionally
including base classes. Methods from a base class are always returned before methods from a class that
inherits from it.
 
  
  Declaration
  
    public IMethodInfo[] GetMethodsWithAttribute<T>(bool inherit) where T : class
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | bool | 
        inherit | 
        Specifies whether to search the fixture type inheritance chain. 
 | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | IMethodInfo[] | 
         | 
      
    
  
  Type Parameters
  
  
  HasConstructor(Type[])
  Returns a value indicating whether this Type has a public constructor taking the specified argument Types.
 
  
  Declaration
  
    public bool HasConstructor(Type[] argTypes)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Type[] | 
        argTypes | 
         | 
      
    
  
  Returns
  
  
  HasMethodWithAttribute(Type)
  Returns a flag indicating whether this type has a method with an attribute of the specified type.
 
  
  Declaration
  
    public bool HasMethodWithAttribute(Type attributeType)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Type | 
        attributeType | 
         | 
      
    
  
  Returns
  
  
  IsDefined<T>(bool)
  Returns a value indicating whether the type has an attribute of the specified type.
 
  
  Declaration
  
    public bool IsDefined<T>(bool inherit) where T : class
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | bool | 
        inherit | 
         | 
      
    
  
  Returns
  
  Type Parameters
  
  
  IsType(Type)
  Returns true if the Type wrapped is T
 
  
  Declaration
  
    public bool IsType(Type type)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Type | 
        type | 
         | 
      
    
  
  Returns
  
  
  MakeGenericType(Type[])
  Returns a new ITypeInfo representing an instance of this generic Type using the supplied Type arguments
 
  
  Declaration
  
    public ITypeInfo MakeGenericType(Type[] typeArgs)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Type[] | 
        typeArgs | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | ITypeInfo | 
         | 
      
    
  
  
  ToString()
  Override ToString() so that error messages in NUnit's own tests make sense
 
  
  Declaration
  
    public override string ToString()
   
  Returns
  
  Overrides
  
  Implements
  
      NUnit.Framework.Interfaces.ITypeInfo
  
  
      NUnit.Framework.Interfaces.IReflectionInfo