Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApplication2
- {
- class Program
- {
- static void Main(string[] args)
- {
- Type t = typeof(X_Class);
- var tt = t.GetProperties().Where(i => i.PropertyType.Equals(typeof(Zeta)));
- foreach (var item in tt)
- {
- Console.WriteLine(item.Name.ToString());
- }
- Console.ReadLine();
- }
- }
- class X_Class
- {
- public Zeta Y_Property { get; set; }
- public Zeta W_Property { get; set; }
- }
- class Zeta
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement