public override bool Equals(object obj) { if (Object.ReferenceEquals(this, obj)) { return(true); } if (obj.GetType() != typeof(PrimedbeId)) { return(false); } PrimedbeId recievedObject = (PrimedbeId)obj; if ((Glasacka_Mesta.Id == recievedObject.Glasacka_Mesta.Id) && (Primedbe == recievedObject.Primedbe)) { return(true); } return(false); }
public Primedbe() { Id = new PrimedbeId(); }