public override bool Equals(object obj) { if (obj is ThisRef) { ThisRef tref = (ThisRef)obj; return(ClassContext.Equals(tref.ClassContext) && Instance == tref.Instance); } else { return(false); } }