This member gets a CA1062 if I don't test the obj param and a CA1065 (or CA2201) if I do.
Is there a way to code this such that no warnings are issued?
Returning an actual value on null is inappropriate (it really should throw).
Suppressing the 1062 seems most appropriate to me so far but other opinions are welcome.
public static implicit operator Int32(Int32Wrapper<T> obj) { // if (obj == null) throw new ArgumentNullException("obj"); // if (obj == null) throw new NullReferenceException(); return obj.Value; }