Constaint initializer must be a compile time constant


I have the following which compiles and runs fine.
However, it reports as an error.

public const decimal DEC_NULL = Decimal.MinValue;

Is this a resharper or VS issue?

Steve

1 comment
Comment actions Permalink

This is definetely ReSharper's problem. We will fix it shortly

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Steve" <smesser@xmission.com> wrote in message
news:gfod325lsahefs8b4ojdffma5ud1ooepg0@4ax.com...
>

I have the following which compiles and runs fine.
However, it reports as an error.

>

public const decimal DEC_NULL = Decimal.MinValue;

>

Is this a resharper or VS issue?

>

Steve



0

Please sign in to leave a comment.