VB.NET - How do I invoke an instance function delegate on an instance of a generic type? -


D is a dictionary whose entry value is of type T

What I'm trying to do I'm a representative like "Serializer" below, which I can call on an example of T, like "entry.value" below.

Please see the "Return Entry ..." row below for my wishful thinking.

Is this possible?

If so, is this a bad idea?

  Public function by serializer (TK) () as function by serializeDictionary_String_Object (TK) (ByRef D As Direction (string, T), as a serializer in the form of bejesurlizer (T)) Entry.Value.ObjSerializer () in D Return for each entry Exit to the next closing function  

In your serializer representative, you are not using t anywhere, you have to

  Public Representative Function Byte ()  

as the serializer (TK) (Bawal OBJ ATT) or better yet, just Built in function representative.

function serializen_string_object (TK) (Byrph D as dictionary (string, TK), bybysiilizer as funnel (T, byte ()) as a byte ()

Then call by doing this:

  ObjSerializer (Entry.Value)  

I would be extremely uncomfortable if I Or if you miss something else, rust on VB. :)


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -