C# Type IsConstructedGenericType

In this chapter you will learn:

  1. Get to know Type.IsConstructedGenericType
  2. Syntax for Type.IsConstructedGenericType
  3. 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:

  1. Get to know Type.IsContextful
  2. Syntax for Type.IsContextful
  3. Example - Type.IsContextful