コード例 #1
0
 public static AttractionRule DeepCopy(
     this IAttractionRuleGetter item,
     out AttractionRule.ErrorMask errorMask,
     AttractionRule.TranslationMask?copyMask = null)
 {
     return(((AttractionRuleSetterTranslationCommon)((IAttractionRuleGetter)item).CommonSetterTranslationInstance() !).DeepCopy(
                item: item,
                copyMask: copyMask,
                errorMask: out errorMask));
 }
コード例 #2
0
        public static void DeepCopyIn(
            this IAttractionRuleInternal lhs,
            IAttractionRuleGetter rhs,
            out AttractionRule.ErrorMask errorMask,
            AttractionRule.TranslationMask?copyMask = null)
        {
            var errorMaskBuilder = new ErrorMaskBuilder();

            ((AttractionRuleSetterTranslationCommon)((IAttractionRuleGetter)lhs).CommonSetterTranslationInstance() !).DeepCopyIn(
                item: lhs,
                rhs: rhs,
                errorMask: errorMaskBuilder,
                copyMask: copyMask?.GetCrystal(),
                deepCopy: false);
            errorMask = AttractionRule.ErrorMask.Factory(errorMaskBuilder);
        }