EchoTex_Payroll/Ease.Core/Utility/ClientConfuration.cs

41 lines
1.2 KiB
C#
Raw Normal View History

2024-10-14 10:01:49 +06:00

using System;
using System.Xml;
using System.Linq;
using System.Text;
using System.Collections.Generic;
namespace Ease.Core.Utility
{
//public sealed class ClientConfuration
//{
// private static readonly Dictionary<string, string> _clientConfig = new Dictionary<string, string>();
// static ClientConfuration()
// {
// XmlReaderSettings settings = new XmlReaderSettings();
// XmlReader reader = XmlReader.Create("ClientConfig.xml", settings);
// while (reader.Read())
// {
// if (reader.NodeType == XmlNodeType.Element && reader.Name.Equals("setting", StringComparison.CurrentCultureIgnoreCase))
// {
// string key = reader.GetAttribute("key");
// string value = reader.GetAttribute("value");
// _clientConfig.Add(key, value);
// }
// }
// }
// public static string GetValue(string key)
// {
// string value;
// if (!_clientConfig.TryGetValue(key, out value))
// value = string.Empty;
// return value;
// }
//}
}