예제 #1
0
파일: Priority.cs 프로젝트: ogazitt/product
        public void Copy(Priority obj)
        {
            if (obj == null)
                return;

            // copy all of the properties
            foreach (PropertyInfo pi in this.GetType().GetProperties())
            {
                var val = pi.GetValue(obj, null);
                pi.SetValue(this, val, null);
            }
        }
예제 #2
0
파일: Priority.cs 프로젝트: ogazitt/product
 public Priority(Priority obj)
 {
     Copy(obj);
 }