[Msdn] generics FAQ: Fundamentals

Source: Internet
Author: User
Msdn has added three new ones to describe the generic type and their various applications. Starting from the basic question "What is generic types", the content is full and examples are provided.

Fundamentals

  • What is a generic type?
  • What is a generic type parameter?
  • What is a generic type argument?
  • What is a constructed type?
  • What is an open constructed type?
  • What is a closed constructed type?
  • How do I use a generic type?
  • How do I initialize a generic type parameter?
  • What are the benefits of generics?
  • Why can't I use type-specific data structures instead of generics?
  • When should I use generics?
  • Are generics covariant, contra-variant, or invariant?
  • What can define generic type parameters? What types can be generic?
  • Can Methods define generic type parameters? How do I call such methods?
  • Can I derive from a generic type parameter?
  • What is a generic type inference?
  • What are constraints?
  • What can I not use constraints?
  • Why can I not use enums, structs, or sealed classes as generic constraints?
  • Is code that uses generics faster than code that does not?
  • Is an application that uses generics faster than application that does not?
  • How are generics similar to classic visual C ++ templates?
  • How are generics different from classic visual C ++ templates?
  • What is the difference between using generics and using interfaces (or abstract classes )?
  • How are generics implemented?
  • Why can't I use operators on naked generic type parameters?
  • When can I use operators on generic type parameters?
  • Can I use generic attributes?
  • Are generics CLS compliant?

. NET Framework

    • Which versions of the. NET Framework Support generics?
    • Can I use generics in Web Services?
    • Can I use generics in Enterprise Services?
    • Can I use generics in Indigo?
    • Can I use generics in. Net remoting?
    • Can I use Visual Studio 2003 or the. NET Framework 1.1 to create generics?
    • What environment do I need to use generics?
    • Can I use generics on the Compact framework?
    • Which. NET languages ages support generics and how?
    • Where does the. NET Framework itself use generics?
    • What are the generic collection classes?
    • What are the generic delegates?
    • What are the generic methods of system. array?
    • What are the generic methods of list <t>?
    • What are nullable types?
    • How do I reflect generic types?

Tool support

    • How does Visual Studio 2005 support generics?
    • Can I data-bind generic types to Windows and web data controls?
    • How are Web Service proxies created for generic types?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.