lundi 23 mars 2015

Language-agnostic way of displaying the generic types along with their type arguments?

Let's say I want to log/show this type's name:



Dictionary<string, Dictionary<Guid, DateTime>>


What would be preferred:


1) Dictionary`2`string`Dictionary`2`Guid`DateTime


2) Dictionary`2(string, Dictionary`2(Guid, DateTime))


3) Dictionary< string , Dictionary < Guid, DateTime>>


How does JVM solve this?


Also see: http://ift.tt/1EIGhJ0






Aucun commentaire:

Enregistrer un commentaire