public override bool Equals(object obj) { CachedDataRef other = obj as CachedDataRef; return(other != null && Index == other.Index && List == other.List); }
public bool Contains(object value) { CachedDataRef dataRef = value as CachedDataRef; return(dataRef != null && Contains(dataRef)); }
public int IndexOf(object value) { CachedDataRef dataRef = value as CachedDataRef; return(dataRef != null?IndexOf(dataRef) : -1); }
public int IndexOf(DataRefBase <T> item) { CachedDataRef dataRef = item as CachedDataRef; return(dataRef != null && dataRef.List == this ? dataRef.Index : -1); }