C
Chris Saunders
I have made a declaration like this:
private const Complex I = new Complex(0.0, 1.0);
When I try to build this I get the error:
The expression being assigned to 'ComplexNumberLib.ComplexMath.I' must be
constant.
I do not understand why this constructor is not considered to be constant
nor how
to correct this error. (Just learning C#)
Regards
Chris Saunders
private const Complex I = new Complex(0.0, 1.0);
When I try to build this I get the error:
The expression being assigned to 'ComplexNumberLib.ComplexMath.I' must be
constant.
I do not understand why this constructor is not considered to be constant
nor how
to correct this error. (Just learning C#)
Regards
Chris Saunders