RcBuilder@walla.com
call centre: 054-5614020

C# Indexer

Posted by: RcBuilder  /   Category: Dictionary / Indexer / SOURCE CODE   /   1 Comment
17
Jun
2014

C# Indexer public class ResponseParams { private Dictionary<string, string> _prms = null; public ResponseParams() { _prms = new Dictionary<string, string>(); } public ResponseParams(IEnumerable<KeyValuePair<string, string>> prms) : this() { foreach (var p in prms) _prms = p.Value; } public string this { get { return _prms; } set { if (!_prms.ContainsKey(Name)) // new _prms.Add(Name, value); else // update _prms = value; } } } USING  string s_prms = "result=1&groupsCount=5&size=77"; var res = from param in s_prms.Split('&') let keypair = param.Split('=') select new.

Read more
  • פיתוח מערכות
  • פתרונות טכנולוגים
  • קידום אתרים
  • בניית אתרים