Format:
Recent snippets matching tags of Dictionary
public void IterateMethod(Dictionary<string, object>() items) { // or var foreach (KeyValuePair<string, object> item in items) { // do something with item } }
104 Views
no comments
var customEditControls = new Dictionary<GridColumn, RepositoryItem>() { {colCountry, reposCountry}, {colCountry_Code, reposCountryCode}, {colState, reposState}, {colState_Code, reposStateCode}, {colBuilding_Scheme, reposBuldingScheme}, {colBuilding_Class, reposBuildingClass}, {colOccupancy_Scheme, reposOccupancyScheme}, {colOccupancy_Code, reposOccupancyCode}
136 Views
no comments
enum ReportTypes { Country, CountryState, CountryStateZone, CountryStatePostCode, CountryZone, CountryStateCounty } var reportTypes = new Dictionary<int, string> () { {(int)ReportType.Country, "By Country"}, {(int)ReportType.CountryState, "By Country, State"}, {(int)ReportType.CountryStateZone, "By Country, State, Zone"},
425 Views
no comments
[XmlRoot("dictionary")] public class XmlSerializableDictionary<TKey, TValue> : Dictionary<TKey, TValue>, IXmlSerializable { #region Constructors public XmlSerializableDictionary() : base() { } public XmlSerializableDictionary(IDictionary<TKey, TValue> dictionary) : base(dictionary) { } public XmlSerializableDictionary(IEqualityComparer<TKey> comparer) : base(comparer) { }
319 Views
no comments
[Serializable, ComVisible(false), DebuggerTypeProxy(typeof(Mscorlib_DictionaryDebugView<,>)), DebuggerDisplay("Count = {Count}")] public class Dictionary<TKey, TValue> : IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IDictionary, ICollection, IEnumerable, ISerializable, IDeserializationCallback { // Fields private object _syncRoot; private int[] buckets; private IEqualityComparer<TKey> comparer; private const string ComparerName = "Comparer"; private int count; private Entry<TKey, TValue>[] entries;
498 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
