IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
The ITypeInfo interface is an abstraction of a .NET Type More...
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... | |
![]() | |
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... | |
The ITypeInfo interface is an abstraction of a .NET Type
bool NUnit.Framework.Interfaces.ITypeInfo.IsType | ( | Type | type | ) |
Returns true if the Type wrapped is equal to the argument
Implemented in NUnit.Framework.Internal.TypeWrapper.
Referenced by NUnit.Framework.Internal.Builders.NUnitTestCaseBuilder.CheckTestMethodSignature(), and NUnit.Framework.Internal.Builders.DefaultSuiteBuilder.GetFixtureBuilderAttributes().
string NUnit.Framework.Interfaces.ITypeInfo.GetDisplayName | ( | ) |
Get the display name for this typeInfo.
Implemented in NUnit.Framework.Internal.TypeWrapper.
Referenced by NUnit.Framework.Internal.Builders.NUnitTestFixtureBuilder.BuildFrom(), and NUnit.Framework.Internal.Test.Test().
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().
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.
|
get |
Gets the underlying Type on which this ITypeInfo is based
Referenced by NUnit.Framework.Internal.TestFixtureTests.FixtureNotNullTestAttribute.BeforeTest(), NUnit.Framework.Internal.Builders.NUnitTestFixtureBuilder.BuildFrom(), NUnit.Framework.TestFixtureSourceAttribute.BuildFrom(), NUnit.Framework.Internal.Builders.DatapointProvider.GetDataFor(), NUnit.Framework.ValueSourceAttribute.GetDataSource(), NUnit.Framework.TestCaseSourceAttribute.GetTestCaseSource(), NUnit.Framework.Internal.Execution.WorkItem.InitializeContext(), and NUnit.Framework.Internal.Execution.CompositeWorkItem.InitializeSetUpAndTearDownCommands().
|
get |
Gets the base type of this type as an ITypeInfo
Referenced by NUnit.Framework.Internal.Builders.DefaultSuiteBuilder.GetFixtureBuilderAttributes().
|
get |
Gets the Name of the Type
|
get |
Gets the FullName of the Type
Referenced by NUnit.Framework.Internal.Builders.NUnitTestCaseBuilder.BuildTestMethod(), NUnit.Framework.SetUpFixtureAttribute.IsValidFixtureType(), and NUnit.Framework.Internal.Test.Test().
|
get |
Gets the assembly in which the type is declared
|
get |
Gets the Namespace of the Type
Referenced by NUnit.Framework.Internal.Builders.NUnitTestFixtureBuilder.BuildFrom(), NUnit.Framework.Internal.SetUpFixture.SetUpFixture(), and NUnit.Framework.Internal.Test.Test().
|
get |
Gets a value indicating whether the type is abstract.
Referenced by NUnit.Framework.SetUpFixtureAttribute.IsValidFixtureType().
|
get |
Gets a value indicating whether the Type is a generic Type
Referenced by NUnit.Framework.Internal.Builders.DefaultSuiteBuilder.BuildFrom(), and NUnit.Framework.Internal.Builders.NUnitTestCaseBuilder.CheckTestMethodSignature().
|
get |
Gets a value indicating whether the Type has generic parameters that have not been replaced by specific Types.
Referenced by NUnit.Framework.Internal.Builders.NUnitTestFixtureBuilder.AddTestCasesToFixture(), NUnit.Framework.Internal.Builders.NUnitTestFixtureBuilder.BuildFrom(), NUnit.Framework.Internal.Builders.NUnitTestFixtureBuilder.CheckTestFixtureIsValid(), and NUnit.Framework.Internal.ParameterizedFixtureSuite.ParameterizedFixtureSuite().
|
get |
Gets a value indicating whether the Type is a generic Type definition
|
get |
Gets a value indicating whether the type is sealed.
|
get |
Gets a value indicating whether this type is a static class.
Referenced by NUnit.Framework.Internal.Builders.NUnitTestFixtureBuilder.CheckTestFixtureIsValid().