<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://wiki.chinulture.com/index.php?action=history&amp;feed=atom&amp;title=%E6%B3%9B%E5%9E%8B</id>
	<title>泛型 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.chinulture.com/index.php?action=history&amp;feed=atom&amp;title=%E6%B3%9B%E5%9E%8B"/>
	<link rel="alternate" type="text/html" href="https://wiki.chinulture.com/index.php?title=%E6%B3%9B%E5%9E%8B&amp;action=history"/>
	<updated>2026-10-21T01:36:12Z</updated>
	<subtitle>本wiki的该页面的版本历史</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.chinulture.com/index.php?title=%E6%B3%9B%E5%9E%8B&amp;diff=15904&amp;oldid=prev</id>
		<title>Test 32：1個修訂：HDwiki 数据迁移 - 批次 583</title>
		<link rel="alternate" type="text/html" href="https://wiki.chinulture.com/index.php?title=%E6%B3%9B%E5%9E%8B&amp;diff=15904&amp;oldid=prev"/>
		<updated>2014-07-31T17:37:04Z</updated>

		<summary type="html">&lt;p&gt;1個修訂：HDwiki 数据迁移 - 批次 583&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2014年7月31日 (四) 17:37的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;zh&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（没有差异）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Test 32</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.chinulture.com/index.php?title=%E6%B3%9B%E5%9E%8B&amp;diff=15903&amp;oldid=prev</id>
		<title>2010年3月1日 (一) 00:00 Test 32</title>
		<link rel="alternate" type="text/html" href="https://wiki.chinulture.com/index.php?title=%E6%B3%9B%E5%9E%8B&amp;diff=15903&amp;oldid=prev"/>
		<updated>2010-03-01T00:00:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== 泛型介绍 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''泛型'''泛型是具有占位符（类型参数）的[[类]]、结构、接口和[[方法]]，这些占位符是类、结构、接口和方法所存储或使用的一个或多个类型的占位符。泛型集合类可以将类型参数用作它所存储的对象的类型的占位符；类型[[参数]]作为其字段的类型和其方法的参数类型出现。泛型方法可以将其类型参数用作其返回值的类型或者其形参的类型之一。下面的代码阐释一个简单的泛型类定义。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 泛型示例一 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Visual Basic 2005'''泛型'''Public Class Generic(Of T)  Public Field As TEnd ClassC# public class GenericT {  public T Field;}C++ generictypename T public ref class Generic {public:  T Field;};&lt;br /&gt;
&lt;br /&gt;
== 泛型示例二 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
在创建泛型类的[[实例]]时，会指定实际类型来替换[[类型]]参数。这会建立'''泛型'''一个新的泛型类，称为构造泛型类，选定的类型将替换所有出现的类型参数。最后得到按照您选择的类型定制的类型安全的类，如下面的[[代码]]所示。Visual Basic 2005Dim g As New Generic(Of String)g.Field = &amp;quot;A string&amp;quot;C#Genericstring g = new Genericstring();g.Field = &amp;quot;A string&amp;quot;;C++ GenericString^^ g = gcnew GenericString^();g-Field = &amp;quot;A string&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
[[Category:技術應用]]&lt;/div&gt;</summary>
		<author><name>Test 32</name></author>
		
	</entry>
</feed>