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

            // copy all of the properties
            foreach (PropertyInfo pi in obj.GetType().GetProperties())
            {
                // get the value of the property
                var val = pi.GetValue(obj, null);
                pi.SetValue(this, val, null);
            }
        }