Generic Types and Static Members(www.abhisheksur.com)

submitted by rcashrcash(4149) 7 months, 16 days ago

Say you have a Static Implementation of a Type T which you pass as Open Type in your Generic Class. Now the problem is how to get reference to the Static Members or invoke a method that is Static to the Type from the Open Type T.

1 comment |category: |Views: 42

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by dpetersondpeterson(4397) 7 months, 15 days ago 0

Going the abstract route makes more sense in this case. If you need to call functionality specific to a type rather than the abstract base, then you can simply filter by that particular type.

Reply

information Login or create an account to comment on this story