1
I want to abstract the phrases/words often used in my project, however, arose the doubts where to put them Static Class
or create a Resource
? What is the recommendation for best practice and performance?
Obs: This project will not be multilingual.
Ex:
public Static class Mensagem
{
public const string Ok = "OK";
public const string Cancelar = "Cancelar";
}
Ex:
<data name="OK" xml:space="preserve">
<value>OK</value>
</data>
<data name="CANCELAR" xml:space="preserve">
<value>Cancelar</value>
</data>