[MSDN] Generics FAQ: Fundamentals

來源:互聯網
上載者:User
MSDN增加了3個新的,旨在講述Generic Type和他們各種各樣的應用。從最基礎的問題什麼是Generic Types開始,內容比較充實,還附帶有例子。

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 With?
  • 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 an 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 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?

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.