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 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; // } //} }