IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.Interfaces.ITypeInfo Interface Reference

The ITypeInfo interface is an abstraction of a .NET Type More...

+ Inheritance diagram for NUnit.Framework.Interfaces.ITypeInfo:
+ Collaboration diagram for NUnit.Framework.Interfaces.ITypeInfo:

Public Member Functions

bool IsType (Type type)
 Returns true if the Type wrapped is equal to the argument More...
 
string GetDisplayName ()
 Get the display name for this typeInfo. More...
 
string GetDisplayName (object[] args)
 Get the display name for an oject of this type, constructed with specific arguments More...
 
Type GetGenericTypeDefinition ()
 Returns a Type representing a generic type definition from which this Type can be constructed. More...
 
ITypeInfo MakeGenericType (Type[] typeArgs)
 Returns a new ITypeInfo representing an instance of this generic Type using the supplied Type arguments More...
 
bool HasMethodWithAttribute (Type attrType)
 Returns a value indicating whether this type has a method with a specified public attribute More...
 
IMethodInfo[] GetMethods (BindingFlags flags)
 Returns an array of IMethodInfos for methods of this Type that match the specified flags. More...
 
bool HasConstructor (Type[] argTypes)
 Returns a value indicating whether this Type has a public constructor taking the specified argument Types. More...
 
object Construct (object[] args)
 Construct an object of this Type, using the specified arguments. More...
 
- Public Member Functions inherited from NUnit.Framework.Interfaces.IReflectionInfo
T[] GetCustomAttributes< T > (bool inherit)
 Returns an array of custom attributes of the specified type applied to this object More...
 
bool IsDefined< T > (bool inherit)
 Returns a value indicating whether an attribute of the specified type is defined on this object. More...
 

Properties

Type Type [get]
 Gets the underlying Type on which this ITypeInfo is based More...
 
ITypeInfo BaseType [get]
 Gets the base type of this type as an ITypeInfo More...
 
string Name [get]
 Gets the Name of the Type More...
 
string FullName [get]
 Gets the FullName of the Type More...
 
Assembly Assembly [get]
 Gets the assembly in which the type is declared More...
 
string Namespace [get]
 Gets the Namespace of the Type More...
 
bool IsAbstract [get]
 Gets a value indicating whether the type is abstract. More...
 
bool IsGenericType [get]
 Gets a value indicating whether the Type is a generic Type More...
 
bool ContainsGenericParameters [get]
 Gets a value indicating whether the Type has generic parameters that have not been replaced by specific Types. More...
 
bool IsGenericTypeDefinition [get]
 Gets a value indicating whether the Type is a generic Type definition More...
 
bool IsSealed [get]
 Gets a value indicating whether the type is sealed. More...
 
bool IsStaticClass [get]
 Gets a value indicating whether this type is a static class. More...
 

Detailed Description

The ITypeInfo interface is an abstraction of a .NET Type

Member Function Documentation

bool NUnit.Framework.Interfaces.ITypeInfo.IsType ( Type  type)
string NUnit.Framework.Interfaces.ITypeInfo.GetDisplayName ( )
string NUnit.Framework.Interfaces.ITypeInfo.GetDisplayName ( object[]  args)

Get the display name for an oject of this type, constructed with specific arguments

Implemented in NUnit.Framework.Internal.TypeWrapper.

Type NUnit.Framework.Interfaces.ITypeInfo.GetGenericTypeDefinition ( )

Returns a Type representing a generic type definition from which this Type can be constructed.

Implemented in NUnit.Framework.Internal.TypeWrapper.

Referenced by NUnit.Framework.Internal.Builders.NUnitTestCaseBuilder.CheckTestMethodSignature().

ITypeInfo NUnit.Framework.Interfaces.ITypeInfo.MakeGenericType ( Type[]  typeArgs)

Returns a new ITypeInfo representing an instance of this generic Type using the supplied Type arguments

Implemented in NUnit.Framework.Internal.TypeWrapper.

Referenced by NUnit.Framework.Internal.Builders.NUnitTestFixtureBuilder.BuildFrom().

bool NUnit.Framework.Interfaces.ITypeInfo.HasMethodWithAttribute ( Type  attrType)

Returns a value indicating whether this type has a method with a specified public attribute

Implemented in NUnit.Framework.Internal.TypeWrapper.

IMethodInfo [] NUnit.Framework.Interfaces.ITypeInfo.GetMethods ( BindingFlags  flags)

Returns an array of IMethodInfos for methods of this Type that match the specified flags.

Implemented in NUnit.Framework.Internal.TypeWrapper.

Referenced by NUnit.Framework.Internal.Builders.NUnitTestFixtureBuilder.AddTestCasesToFixture().

bool NUnit.Framework.Interfaces.ITypeInfo.HasConstructor ( Type[]  argTypes)

Returns a value indicating whether this Type has a public constructor taking the specified argument Types.

Implemented in NUnit.Framework.Internal.TypeWrapper.

Referenced by NUnit.Framework.Internal.Builders.NUnitTestFixtureBuilder.CheckTestFixtureIsValid(), and NUnit.Framework.SetUpFixtureAttribute.IsValidFixtureType().

object NUnit.Framework.Interfaces.ITypeInfo.Construct ( object[]  args)

Construct an object of this Type, using the specified arguments.

Implemented in NUnit.Framework.Internal.TypeWrapper.

Property Documentation

ITypeInfo NUnit.Framework.Interfaces.ITypeInfo.BaseType
get
string NUnit.Framework.Interfaces.ITypeInfo.Name
get

Gets the Name of the Type

string NUnit.Framework.Interfaces.ITypeInfo.FullName
get
Assembly NUnit.Framework.Interfaces.ITypeInfo.Assembly
get

Gets the assembly in which the type is declared

string NUnit.Framework.Interfaces.ITypeInfo.Namespace
get
bool NUnit.Framework.Interfaces.ITypeInfo.IsAbstract
get

Gets a value indicating whether the type is abstract.

Referenced by NUnit.Framework.SetUpFixtureAttribute.IsValidFixtureType().

bool NUnit.Framework.Interfaces.ITypeInfo.IsGenericType
get
bool NUnit.Framework.Interfaces.ITypeInfo.ContainsGenericParameters
get
bool NUnit.Framework.Interfaces.ITypeInfo.IsGenericTypeDefinition
get

Gets a value indicating whether the Type is a generic Type definition

bool NUnit.Framework.Interfaces.ITypeInfo.IsSealed
get

Gets a value indicating whether the type is sealed.

bool NUnit.Framework.Interfaces.ITypeInfo.IsStaticClass
get

Gets a value indicating whether this type is a static class.

Referenced by NUnit.Framework.Internal.Builders.NUnitTestFixtureBuilder.CheckTestFixtureIsValid().


The documentation for this interface was generated from the following file: