IsCompatibleObject() private static method

private static IsCompatibleObject ( object? value ) : bool
value object?
return bool
Esempio n. 1
0
 void IList.Remove(object value)
 {
     if (ReadOnlyCollectionBuilder <T> .IsCompatibleObject(value))
     {
         this.Remove((T)value);
     }
 }
Esempio n. 2
0
 int IList.IndexOf(object value)
 {
     if (ReadOnlyCollectionBuilder <T> .IsCompatibleObject(value))
     {
         return(this.IndexOf((T)value));
     }
     return(-1);
 }
Esempio n. 3
0
 bool IList.Contains(object value)
 {
     return(ReadOnlyCollectionBuilder <T> .IsCompatibleObject(value) && this.Contains((T)value));
 }