|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
strong type dictionaryIf I want to construct a dictionary with a string key of max length of 16,
value of a list, an object or struct, say mystuff. mystuff consists of 2 properties: sequence as integer string value with max length of 2048 how would I go about it? I expect only about 50 to 80 entries in the dictionary "GS" <gsmsnews.microsoft.co***@msnews.Nomail.com> schrieb: 'System.Collections.Generic.Dictionary(Of TKey, TValue)'.> If I want to construct a dictionary with a string key of max length of 16, > value of a list, an object or struct, say mystuff. mystuff consists of 2 > properties: > sequence as integer > string value with max length of 2048 > how would I go about it? > > I expect only about 50 to 80 entries in the dictionary -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> GS wrote:
> If I want to construct a dictionary with a string key of max length of 16, Create a class inherited from DictionaryBase or CollectionBase.> value of a list, an object or struct, say mystuff. mystuff consists of 2 > properties: > sequence as integer > string value with max length of 2048 > how would I go about it? This gives you the ability to intercept values as they are coming in (so you can check key lengths, etc.), and to add strongly typed Add and Item methods/properties, but handles the data storage for you. HTH, Phill W.
"how to split a string in a random way"
Location for shared Access database Extract Single Record from Dataset filled from SP Output Creating text boxes on the fly? String manipulation question Getting the current procedure name? for each step order reverse direction ? single line string maninuplation substring, trim, indexof ? Installing .net assemblies windows installer Shared database without network tech required |
|||||||||||||||||||||||