public static Region DeepCopy( this IRegionGetter item, out Region.ErrorMask errorMask, Region.TranslationMask?copyMask = null) { return(((RegionSetterTranslationCommon)((IRegionGetter)item).CommonSetterTranslationInstance() !).DeepCopy( item: item, copyMask: copyMask, errorMask: out errorMask)); }
public static void DeepCopyIn( this IRegionInternal lhs, IRegionGetter rhs, out Region.ErrorMask errorMask, Region.TranslationMask?copyMask = null) { var errorMaskBuilder = new ErrorMaskBuilder(); ((RegionSetterTranslationCommon)((IRegionGetter)lhs).CommonSetterTranslationInstance() !).DeepCopyIn( item: lhs, rhs: rhs, errorMask: errorMaskBuilder, copyMask: copyMask?.GetCrystal(), deepCopy: false); errorMask = Region.ErrorMask.Factory(errorMaskBuilder); }