Skip to content

Random notes for cs2j ii

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
  • Implementing yield in Java ... http://jimblackler.net/blog/?p=61
Clone this wiki locally