«« Next » « Previous
«« Next » « Previous

Link Details

Link 84007 thumbnail
User 225256 avatar

By mswatcher
via codeproject.com
Published: May 30 2008 / 11:43

Using Generic classes together with static members might not always work exactly as you would expect. In fact it works a little differently compared to the same non generic code! If you are coming from a non-generic coding background this might feel strange at first. Even if you are an ‘advanced generics user’, I consider myself to be on one, you might fool yourself into this devious trap. I recently did and when I later discovered the error I felt that it was worth writing it up as an article and share. I have the problem space as well as one way to solve the problem outlined in this article together with runnable code.
  • 5
  • 1
  • 913
  • 311

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (5)



Voters Against This Link (0)