C# Type IsConstructedGenericType
In this chapter you will learn:
- Get to know Type.IsConstructedGenericType
- Syntax for Type.IsConstructedGenericType
- Example - Type.IsConstructedGenericType
Description
Type IsConstructedGenericType
gets a value that indicates
whether this object represents a constructed generic type. You can create
instances of a constructed generic type.
Syntax
Type.IsConstructedGenericType
has the following syntax.
public virtual bool IsConstructedGenericType { get; }
Example
// w w w . j av a2 s. c o m
using System;
using System.Runtime.InteropServices;
public class Demo
{
}
public class Example
{
public static void Main()
{
Type myType=typeof(Demo);
Console.WriteLine(myType.IsConstructedGenericType);
}
}
Next chapter...
What you will learn in the next chapter:
...
C# Type CustomAttributes
C# Type DeclaringMethod
C# Type DeclaringType
C# Type DefaultBinder
C# Type FullName
C# Type GenericParameterAttributes
C# Type GenericParameterPosition
C# Type GenericTypeArguments
C# Type GUID
C# Type HasElementType
C# Type IsAbstract
C# Type IsAnsiClass
C# Type IsArray
C# Type IsAutoClass
C# Type IsAutoLayout
C# Type IsByRef
C# Type IsClass
C# Type IsCOMObject
C# Type IsEnum
C# Type IsExplicitLayout
C# Type IsGenericParameter
C# Type IsGenericType
C# Type IsGenericTypeDefinition
C# Type IsImport
C# Type IsInterface
C# Type IsLayoutSequential
C# Type IsMarshalByRef
C# Type IsNested
C# Type IsNestedAssembly
C# Type IsNestedFamANDAssem
C# Type IsNestedFamily
C# Type IsNestedFamORAssem
C# Type IsNestedPrivate
C# Type IsNestedPublic
C# Type IsNotPublic
C# Type IsPointer
...
C# Type CustomAttributes
C# Type DeclaringMethod
C# Type DeclaringType
C# Type DefaultBinder
C# Type FullName
C# Type GenericParameterAttributes
C# Type GenericParameterPosition
C# Type GenericTypeArguments
C# Type GUID
C# Type HasElementType
C# Type IsAbstract
C# Type IsAnsiClass
C# Type IsArray
C# Type IsAutoClass
C# Type IsAutoLayout
C# Type IsByRef
C# Type IsClass
C# Type IsCOMObject
C# Type IsConstructedGenericType
C# Type IsContextfulC# Type IsEnum
C# Type IsExplicitLayout
C# Type IsGenericParameter
C# Type IsGenericType
C# Type IsGenericTypeDefinition
C# Type IsImport
C# Type IsInterface
C# Type IsLayoutSequential
C# Type IsMarshalByRef
C# Type IsNested
C# Type IsNestedAssembly
C# Type IsNestedFamANDAssem
C# Type IsNestedFamily
C# Type IsNestedFamORAssem
C# Type IsNestedPrivate
C# Type IsNestedPublic
C# Type IsNotPublic
C# Type IsPointer
...