예제 #1
0
 public static Cell DeepCopy(
     this ICellGetter item,
     Cell.TranslationMask?copyMask = null)
 {
     return(((CellSetterTranslationCommon)((ICellGetter)item).CommonSetterTranslationInstance() !).DeepCopy(
                item: item,
                copyMask: copyMask));
 }
예제 #2
0
 public static Cell Duplicate(
     this ICellGetter item,
     FormKey formKey,
     Cell.TranslationMask?copyMask = null)
 {
     return(((CellCommon)((ICellGetter)item).CommonInstance() !).Duplicate(
                item: item,
                formKey: formKey,
                copyMask: copyMask?.GetCrystal()));
 }
예제 #3
0
 public static bool Equals(
     this ICellGetter item,
     ICellGetter rhs,
     Cell.TranslationMask?equalsMask = null)
 {
     return(((CellCommon)((ICellGetter)item).CommonInstance() !).Equals(
                lhs: item,
                rhs: rhs,
                crystal: equalsMask?.GetCrystal()));
 }
예제 #4
0
        public Cell DeepCopy(
            ICellGetter item,
            Cell.TranslationMask?copyMask = null)
        {
            Cell ret = (Cell)((CellCommon)((ICellGetter)item).CommonInstance() !).GetNew();

            ((CellSetterTranslationCommon)((ICellGetter)ret).CommonSetterTranslationInstance() !).DeepCopyIn(
                item: ret,
                rhs: item,
                errorMask: null,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: true);
            return(ret);
        }
예제 #5
0
        public static void DeepCopyIn(
            this ICellInternal lhs,
            ICellGetter rhs,
            out Cell.ErrorMask errorMask,
            Cell.TranslationMask?copyMask = null)
        {
            var errorMaskBuilder = new ErrorMaskBuilder();

            ((CellSetterTranslationCommon)((ICellGetter)lhs).CommonSetterTranslationInstance() !).DeepCopyIn(
                item: lhs,
                rhs: rhs,
                errorMask: errorMaskBuilder,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: false);
            errorMask = Cell.ErrorMask.Factory(errorMaskBuilder);
        }
예제 #6
0
        public Cell DeepCopy(
            ICellGetter item,
            out Cell.ErrorMask errorMask,
            Cell.TranslationMask?copyMask = null)
        {
            var  errorMaskBuilder = new ErrorMaskBuilder();
            Cell ret = (Cell)((CellCommon)((ICellGetter)item).CommonInstance() !).GetNew();

            ((CellSetterTranslationCommon)((ICellGetter)ret).CommonSetterTranslationInstance() !).DeepCopyIn(
                ret,
                item,
                errorMask: errorMaskBuilder,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: true);
            errorMask = Cell.ErrorMask.Factory(errorMaskBuilder);
            return(ret);
        }