diff options
author | Konstantin Triger <kostat@mono-cvs.ximian.com> | 2005-05-01 20:45:33 +0400 |
---|---|---|
committer | Konstantin Triger <kostat@mono-cvs.ximian.com> | 2005-05-01 20:45:33 +0400 |
commit | 29885394c059866fcc55503cab5938953277eabd (patch) | |
tree | 6d114eac3f5b691aac38a725a8d636ed7b45c175 /mcs/class/System.Data/System.Data.Common | |
parent | f2778ad2f75a52268c779441b0197ad18039f127 (diff) |
svn path=/branches/Mainsoft.System.Data/mcs/; revision=43844
Diffstat (limited to 'mcs/class/System.Data/System.Data.Common')
-rw-r--r-- | mcs/class/System.Data/System.Data.Common/DbStringManager.cs | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/mcs/class/System.Data/System.Data.Common/DbStringManager.cs b/mcs/class/System.Data/System.Data.Common/DbStringManager.cs deleted file mode 100644 index efc2cceaab7..00000000000 --- a/mcs/class/System.Data/System.Data.Common/DbStringManager.cs +++ /dev/null @@ -1,56 +0,0 @@ -using java.util;
-
-namespace System.Data.Common
-{
- public class DbStringManager
- {
- public DbStringManager(string bundleName)
- {
- _bundleName = bundleName;
- _resourceBundle = ResourceBundle.getBundle(_bundleName);
- }
-
- private readonly string _bundleName;
-
- private readonly ResourceBundle _resourceBundle;
-
- public string GetString(string key)
- {
- try {
- return _resourceBundle.getString(key);
- }
- catch (MissingResourceException) {
- return null;
- }
- }
-
- public string GetString(string key, string defaultValue)
- {
- try {
- return _resourceBundle.getString(key);
- }
- catch (MissingResourceException) {
- return defaultValue;
- }
- }
-
-
- public string[] GetStringArray(String key)
- {
- try {
- string tmp = _resourceBundle.getString(key);
- java.util.StringTokenizer st = new java.util.StringTokenizer(tmp, ",");
-
- String[] strArr = new String[st.countTokens()];
-
- for (int i = 0; i < strArr.Length; i++) {
- strArr[i] = st.nextToken();
- }
- return strArr;
- }
- catch (MissingResourceException) {
- return null;
- }
- }
- }
-}
|