示例#1
0
文件: Link.cs 项目: ogazitt/zaplify
        public void Copy(Link 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);
            }
        }
示例#2
0
文件: Link.cs 项目: ogazitt/zaplify
 public Link(Link link)
 {
     Copy(link);
 }