1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| using System;
| using System.Collections.Generic;
| using System.Linq;
| using System.Text;
| using CY.Infrastructure.Domain;
| using System.Reflection;
| namespace CY.Model
| {
| //public class ParentClass<T> where T : IAggregateRoot,new()
| //{
| // public virtual object Visiter(string name, int? index = -1, bool isChange = false, object value = null)
| // {
| // //T obj = new T();
| // //object theValue = null;
| // //int i=1;
| // //foreach(PropertyInfo info in obj.GetType().GetProperties())
| // //{
|
| // // if (info.Name.Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == i)
| // // {
| // // info.SetValue(obj,)
| // // }
| // // i++;
| // //}
| // return null;
| // }
| //}
| }
|
|