ResourceFileName = "Resources." + ResourceFileName; DataTable dtOperation; dtOperation = new DataTable(); System.Resources.ResourceManager RM = new System.Resources.ResourceManager(ResourceFileName, System.Reflection.Assembly.Load("App_GlobalResources")); //("Resources.vacation", System.Reflection.Assembly.Load("App_GlobalResources")); ResourceSet resourceSet = RM.GetResourceSet(CultureInfo.CurrentUICulture, true, true); dtOperation.Columns.Add("resValue"); dtOperation.Columns.Add("resKey"); foreach (DictionaryEntry entry in resourceSet) { DataRow dr = dtOperation.NewRow(); dr[0] = (String)entry.Value; dr[1] =(String)entry.Key; dtOperation.Rows.Add(dr); } return dtOperation;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)