摘要:
1、先定义个枚举转换类 /// <summary> /// 枚举转换 /// </summary> public class EnumerationExtension : MarkupExtension { private Type _enumType; /// <summary> /// 枚举转换 阅读全文
摘要:
public D Mapper<D, S>(S s) { D d = Activator.CreateInstance<D>(); try { var sType = s.GetType(); var dType = typeof(D); foreach (PropertyInfo sP in sT 阅读全文