/// <summary> /// 现状地物对象 /// </summary> /// <param name="SourceXm"></param> /// <returns></returns> private XZDW ConversionXzdw(Gis_Xzdw SourceXm) { XZDW result = new XZDW(); foreach (PropertyInfo pi in typeof(XZDW).GetProperties()) { pi.SetValue(result, SourceXm.GetType().GetProperty(pi.Name.ToString()).GetValue(SourceXm, null), null); } return(result); }
/// <summary> /// 现状地物对象 /// </summary> /// <param name="SourceXm"></param> /// <returns></returns> private XZDW ConversionXzdw(Gis_Xzdw SourceXm) { XZDW result = new XZDW(); foreach (PropertyInfo pi in typeof(XZDW).GetProperties()) { pi.SetValue(result, SourceXm.GetType().GetProperty(pi.Name.ToString()).GetValue(SourceXm, null), null); } return result; }