示例#1
0
 public void TestPropertyLookup()
 {
     var type       = typeof(InfoFactory);
     var info       = new InfoFactory(type);
     var properties = from p in info.Properties
                      where p.Name == "Type"
                      orderby p.Name
                      select p;
     var list = properties.ToList();
     var x    = list.Count;
 }
示例#2
0
 public void TestPropertyLookup()
 {
     Type        type = typeof(InfoFactory);
     InfoFactory info = new InfoFactory(type);
     ProjectedItems <PropertyInfo> properties = from p in info.Properties
                                                where p.Name == "Type"
                                                orderby p.Name
                                                select p;
     List <PropertyInfo> list = properties.ToList();
     int x = list.Count;
 }