IsNotA
Returns true if the given object is not of the specified type, false otherwise.
- Use the isoperator to check ifobjis not of the given type,T.
public static partial class _30s 
{
  public static bool IsNotA<T>(object obj) 
  {
    return !(obj is T);
  }
}
string s = "fooBar";
_30s.IsNotA<string>(s); // false
_30s.IsNotA<int>(s); // true