I want to abstract the frequently used phrases / words in my project, however, I have doubts where to put them Static Class
or create a Resource
? What is the recommendation of best practices and performance?
Note: 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>