コード例 #1
0
        /// <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);
        }
コード例 #2
0
 /// <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;
 }