Esempio n. 1
0
        /// <summary>
        /// Calculates the intersection of two FieldMasks.
        /// </summary>
        public FieldMask Intersection(FieldMask additionalMask)
        {
            var tree   = new FieldMaskTree(this);
            var result = new FieldMaskTree();

            foreach (var path in additionalMask.Paths)
            {
                tree.IntersectFieldPath(path, result);
            }

            return(result.ToFieldMask());
        }