4 using System.Collections.Generic;
7 namespace SiliconStudio.Presentation.Quantum
11 private readonly HashSet<Guid> guids;
16 guids =
new HashSet<Guid> { guid };
21 this.guids =
new HashSet<Guid>();
22 foreach (var guid
in guids)
26 public bool IsCombined {
get {
return guids.Count > 1; } }
30 return guids.Count == identifier.guids.Count && guids.All(guid => identifier.guids.Contains(guid));
35 return Match(identifier);
38 public override bool Equals(
object obj)
47 return guids.Aggregate(0, (current, guid) => (guid.GetHashCode() * 397) ^ current);
override int GetHashCode()
bool Match(ObservableViewModelIdentifier identifier)
bool Equals(ObservableViewModelIdentifier identifier)
override bool Equals(object obj)