// ===++===
//
// OrtizOL
//
// ===--===
/*============================================================
//
// Clase: PropiedadIsGenericType.cs
//
// Propósito: Demostración de la propiedad
// System.Type.IsGenericType.
//
============================================================*/
using System;
namespace Articulos.Cap03
{
internal class ClaseGenerica<T> { }
internal class ClaseNoGenerica { }
internal class PropiedadIsGenericType
{
public static void Main()
{
Console.WriteLine(typeof(ClaseGenerica<>).IsGenericType.ToString());
Console.WriteLine(typeof(ClaseNoGenerica).IsGenericType.ToString());
}
}
}
Ly8gPT09Kys9PT0KLy8KLy8gICAgT3J0aXpPTAovLwovLyA9PT0tLT09PQovKj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQovLwovLyBDbGFzZTogUHJvcGllZGFkSXNHZW5lcmljVHlwZS5jcwovLwovLyBQcm9ww7NzaXRvOiBEZW1vc3RyYWNpw7NuIGRlIGxhIHByb3BpZWRhZCAKLy8gU3lzdGVtLlR5cGUuSXNHZW5lcmljVHlwZS4KLy8KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ki8KCnVzaW5nIFN5c3RlbTsKCm5hbWVzcGFjZSBBcnRpY3Vsb3MuQ2FwMDMKewogICAgaW50ZXJuYWwgY2xhc3MgQ2xhc2VHZW5lcmljYTxUPiB7IH0KICAgIAogICAgaW50ZXJuYWwgY2xhc3MgQ2xhc2VOb0dlbmVyaWNhIHsgfQogICAgCiAgICBpbnRlcm5hbCBjbGFzcyBQcm9waWVkYWRJc0dlbmVyaWNUeXBlCiAgICB7CiAgICAgICAgcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQogICAgICAgIHsKICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUodHlwZW9mKENsYXNlR2VuZXJpY2E8PikuSXNHZW5lcmljVHlwZS5Ub1N0cmluZygpKTsKICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUodHlwZW9mKENsYXNlTm9HZW5lcmljYSkuSXNHZW5lcmljVHlwZS5Ub1N0cmluZygpKTsKICAgICAgICB9CiAgICB9Cn0=