示例#1
0
 public RecordOperations Clone(RecordInfo ri)
 {
     var res = new RecordOperations(ri);
     res.mCreateHandler = mCreateHandler;
     res.mFastConstructor = mFastConstructor;
     res.mObjectToValuesHandler = mObjectToValuesHandler;
     return res;
 }
        /// <summary>
        /// Copy one object to another based on field list
        /// </summary>
        /// <param name="ri">Record layout instance</param>
        /// <returns>Copy of the handlers class is using</returns>
        public IRecordOperations Clone(IRecordInfo ri)
        {
            var res = new RecordOperations(ri);

            res.mCreateHandler         = mCreateHandler;
            res.mFastConstructor       = mFastConstructor;
            res.mObjectToValuesHandler = mObjectToValuesHandler;
            return(res);
        }
 /// <summary>
 /// Read the attributes of the class and create an array
 /// of how to process the file
 /// </summary>
 /// <param name="recordType">Class we are analysing</param>
 private RecordInfo(Type recordType)
 {
     SizeHint = 32;
     RecordConditionSelector = String.Empty;
     RecordCondition         = RecordCondition.None;
     CommentAnyPlace         = true;
     RecordType = recordType;
     InitRecordFields();
     Operations = new RecordOperations(this);
 }
示例#4
0
 /// <summary>
 /// Read the attributes of the class and create an array
 /// of how to process the file
 /// </summary>
 /// <param name="recordType">Class we are analysing</param>
 private RecordInfo(Type recordType)
 {
     SizeHint = 32;
     RecordConditionSelector = String.Empty;
     RecordCondition = RecordCondition.None;
     CommentAnyPlace = true;
     RecordType = recordType;
     InitRecordFields();
     Operations = new RecordOperations(this);
 }
示例#5
0
        /// <summary>
        /// Copy one object to another based on field list
        /// </summary>
        /// <param name="ri">Record layout instance</param>
        /// <returns>Copy of the handlers class is using</returns>
        public RecordOperations Clone(RecordInfo ri)
        {
            var res = new RecordOperations(ri)
            {
                mCreateHandler         = mCreateHandler,
                mFastConstructor       = mFastConstructor,
                mObjectToValuesHandler = mObjectToValuesHandler
            };

            return(res);
        }