Constant string

  • Thread starter Thread starter JLobato
  • Start date Start date
J

JLobato

Hi,

Which could be a good solution for implementing a set of
constant strings, like messatges, default strings for
configuration and so on.

Thanks
 
Maybe 1 of these can work
Public Class MyClass
{
const string message = "Message";
static readonly string configuration = "My connection string";
}
 

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