:)
I'm looking for something that I saw in a project few month ago. I don't know what they use and I'm very interrested to know how it work but i don't know how to search for it... and I'm looking for it during 6 hours now.. can you help me to improve my knowledge ? :D
Database :
|id |key |en |fr |
|1 |TheNameOfTheKey |Hello |Bonjour |
|2 |TheNameOfTheKey2|Hello2 |Bonjour2 |
Code :
String s1 = Singleton.Instance.Translation.TheNameOfTheKey
String s2 = Singleton.Instance.Translation.TheNameOfTheKey2
// this key don't exist in Db but return his name instead
String s3 = Singleton.Instance.Translation.AnotherKeyNotInDb
// Results
// s1 = "Hello"
// s2 = "Hello2"
// s3 = "AnotherKeyNotInDb"
My questions :
What is the type of Translation ? If you have documentation, I will look at !
Something that look like what I'm looking for is : ExpandoObject
Thank you in advance !