Wednesday, 15 June 2011

vb.net - Custom dictionary object? -


I want to extend the VB.NET dictionary dictionary, so that the object is already in the associative array. >

This is what I want to do:

  The public class acquires BetterDictionary system. Object, object (object object). The ByRef key  (if) as the object, ByVal value, then I (key) = value other I.Add (key, value) end if end sub end class  

My problem is now: How can I change the (object, object) line to be a normal / customizable type of dictionary?

Define your heritage class as:

  public Take the Class BetterDictionary (TKE, TVL) system. Colllections.Generic.Dictionary (TKey, of TValue)  

No comments:

Post a Comment