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

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

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

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

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