You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
twiglet edited this page Oct 11, 2010
·
5 revisions
Using Generics C# stores a List<byte> as a packed array. Java presumably will store a list of pointers to boxed bytes, needing much more storage. ("In many ways this makes a List<byte> behave like a MemoryStream.")
Getting the Class of an object with a generic type won't allow us to see what the generic vars were instantiated to (apparently) but maybe we can do it by looking at members: http://tutorials.jenkov.com/java-reflection/generics.html