コード例 #1
0
ファイル: PhotosChanges.cs プロジェクト: swgshaw/f-spot
        public static PhotosChanges operator |(PhotosChanges c1, PhotosChanges c2)
        {
            if (c1 == null)
            {
                throw new ArgumentNullException("c1");
            }
            if (c2 == null)
            {
                throw new ArgumentNullException("c2");
            }

            PhotosChanges changes = new PhotosChanges();

            changes.changes         = c1.changes | c2.changes;
            changes.VersionsChanged = c1.VersionsChanged || c2.VersionsChanged;
            changes.TagsChanged     = c1.TagsChanged || c2.TagsChanged;
            return(changes);
        }
コード例 #2
0
ファイル: PhotosChanges.cs プロジェクト: f-spot/f-spot-xplat
        public static PhotosChanges operator |(PhotosChanges c1, PhotosChanges c2)
        {
            if (c1 == null)
            {
                throw new ArgumentNullException(nameof(c1));
            }
            if (c2 == null)
            {
                throw new ArgumentNullException(nameof(c2));
            }

            var changes = new PhotosChanges {
                changes         = c1.changes | c2.changes,
                VersionsChanged = c1.VersionsChanged || c2.VersionsChanged,
                TagsChanged     = c1.TagsChanged || c2.TagsChanged
            };

            return(changes);
        }
コード例 #3
0
        public static PhotosChanges operator |(PhotosChanges c1, PhotosChanges c2)
        {
            if (c1 == null)
                throw new ArgumentNullException ("c1");
            if (c2 == null)
                throw new ArgumentNullException ("c2");

            PhotosChanges changes = new PhotosChanges ();
            changes.changes = c1.changes | c2.changes;
            changes.VersionsChanged = c1.VersionsChanged || c2.VersionsChanged;
            changes.TagsChanged = c1.TagsChanged || c2.TagsChanged;
            return changes;
        }