public override bool Equals(object obj) { if (Object.ReferenceEquals(this, obj)) { return(true); } if (obj.GetType() != typeof(SlusaID)) { return(false); } SlusaID recievedObject = (SlusaID)obj; if ((Korisnik.IdKorisnik == recievedObject.Korisnik.IdKorisnik) && (Predmet.IdPredmet == recievedObject.Predmet.IdPredmet)) { return(true); } return(false); }
public Slusa() { Id = new SlusaID(); }