
Quiz riflessivo per programmatori c#.
By: a guest on
Jul 27th, 2011 | syntax:
C# | size: 0.58 KB | hits: 181 | expires: Never
using System;
using System.Linq;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
Type t = Type.GetType("ConsoleApplication2.X_Class");
var tt = t.GetProperties().Where(i => i.PropertyType.Equals(typeof(Zeta)));
foreach (var item in tt)
{
Console.WriteLine(item.ToString());
}
Console.ReadLine();
}
}
class X_Class
{
public Zeta Y_Property { get; set; }
}
class Zeta
{
}
}