CSharpCodeProvider fails to compile function but Visual studio compiles the same function

Posted by Asvin on Stack Overflow See other posts from Stack Overflow or by Asvin
Published on 2010-06-10T23:53:17Z Indexed on 2010/06/11 7:32 UTC
Read the original article Hit count: 233

Filed under:

Here's a simple function. Compiling this code using the CSharpCodeProvider fails but it works when I attempt to reproduce the problem using Visual studion. The error I get is "unable to implicitly convert uint? to uint". Any ideas ?

public static Boolean Func1() { UInt32? x = 0; UInt32? y = 0; return x == (UInt32?)0; }

© Stack Overflow or respective owner

Related posts about c#3.0