Exemple #1
0
            public override bool Equals(object obj)
            {
                CachedDataRef other = obj as CachedDataRef;

                return(other != null && Index == other.Index && List == other.List);
            }
Exemple #2
0
        public bool Contains(object value)
        {
            CachedDataRef dataRef = value as CachedDataRef;

            return(dataRef != null && Contains(dataRef));
        }
Exemple #3
0
        public int IndexOf(object value)
        {
            CachedDataRef dataRef = value as CachedDataRef;

            return(dataRef != null?IndexOf(dataRef) : -1);
        }
Exemple #4
0
        public int IndexOf(DataRefBase <T> item)
        {
            CachedDataRef dataRef = item as CachedDataRef;

            return(dataRef != null && dataRef.List == this ? dataRef.Index : -1);
        }