IsCompatibleObject() private static méthode

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