private const string s = "" yields null?

  • Thread starter Thread starter Miha Markic
  • Start date Start date
M

Miha Markic

Hi,

Did anybody notice that the following declaration of a member const

public class Tubo
{
private string const def = "";
}

is alyways null instead of empty string ("")?

Is this a bug or feature or something else?

Thanks,
Miha
miham at spin dot si
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top