コード例 #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);
        }