What's wrong with this code? I get this error: "The expression being assigned to '....' must be constant"
public const string ConnectionString = System.IO.File.ReadAllText(@"D:\connection.ini");
A constant value must be known at compile time, use readonly instead, it will have a similar effect
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With