I'm about, with WebForms, to making a vocabulary (for N languages) that I'll share for my all web applications.
Like MyLanguages.cs. Then I'll create static methods to get my words. But I won't to have it for all my applications, just one for ALL (one in memory, not N).
What's the best strategy you can suggest to me?
EXAMPLE
This should be my class :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
public class Vocabulary
{
public const string HelloEnglish = "Hello";
public const string HelloItalian = "Ciao";
public Vocabulary()
{
}
}
and, everywhere in my web applications, I'd like to call :
Vocabulary.HelloEnglish;
Without copying and inherit that class for each web application, which is always the same... a waste of resources... also because it will grow...