Пример #1
0
        /// <summary>
        /// Clone the int field, remove references.
        /// </summary>
        /// <param name="field">The int field to clone.</param>
        /// <returns>The cloned int field.</returns>
        public IntField Clone(IntField field)
        {
            IntField temp = new IntField();

            temp.name  = field.name;
            temp.value = field.value;
            return(temp);
        }
Пример #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="field">The int field to construct.</param>
 public IntField(IntField field)
 {
     name  = field.name;
     value = field.value;
 }