Beispiel #1
0
        public virtual CollectionDiff <AlbumIdentifier, AlbumIdentifier> SyncIdentifiers(string[] newIdentifiers)
        {
            Func <AlbumIdentifier, string, bool> equality = ((i1, i2) => i1.Value == i2);
            Func <string, AlbumIdentifier>       create   = (data => {
                var id = new AlbumIdentifier(this, data);
                Identifiers.Add(id);
                return(id);
            });

            var diff = CollectionHelper.Sync(Identifiers, newIdentifiers, equality, create);

            return(diff);
        }
		public AlbumIdentifierContract(AlbumIdentifier identifier) {
			Value = identifier.Value;
		}