Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 134691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:39:33+00:00 2026-05-11T06:39:33+00:00

What are most important things you know about generics: hidden features, common mistakes, best

  • 0

What are most important things you know about generics: hidden features, common mistakes, best and most useful practices, tips…

I am starting to implement most of my library/API using generics and would like to collect most common patterns, tips, etc., found in practice.

Let me formalize the question: What is the most important thing you’ve learned about generics?

Please try to provide examples — it would be easier to understand, as opposed to convoluted and overly-dry descriptions

Thanks

This question is somewhat similar to Jon’s question, though, on a different subject.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:39:34+00:00Added an answer on May 11, 2026 at 6:39 am

    One of the most important things I’ve learned is that you can constrain the generic type parameter(s). This can be very powerful, allowing you to take customize the class for only certain types of objects and allowing you to use the members of that type in your generic class. I realize that this is pretty fundamental, but it’s one of the things that makes generics incredibly useful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What are most important things you know about templates: hidden features, common mistakes, best
What are the best modeling languages to know. What are the most important things
The most important things I want to know are the device type, the OS
What is the most important features a IOC container should contain? You can easily
On most common platforms (the most important being x86; I understand that some platforms
In your opinion, what are the most important languages for a programmer to know?
Most people suggest that learning assembly is essential, its important to know the underlying
I know all the classical SEO articles have a chapter about how important it
What is the most important or awaited feature in Visual Studio 2010??
Ease of installation/use is the most important factor here - not performance. Small is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.