Guest User

Untitled

a guest
Jun 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. Product p = DALProduct.getByID(2)
  2. p.name //results in the language of the current UICulture
  3.  
  4. class Product
  5. {
  6. string LocalizedName
  7. {
  8. get { return AllProductNames[Thread.CurrentThread.CurrentCulture.LCID]; }
  9. }
  10.  
  11. IDictionary<int, string> AllProductNames { get; private set; }
  12. }
Add Comment
Please, Sign In to add comment