<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Heck's  Blog]]></title> 
<link>https://www.heckjj.com/index.php</link> 
<description><![CDATA[一瞬间的决定，往往可以改变很多，事实上，让自己成功的往往不是知识，是精神！ 如果你总是为自己找借口，那只好让成功推迟。执行力，今天！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[Heck's  Blog]]></copyright>
<item>
<link>https://www.heckjj.com/dotnet-csharp-makegenerictype-in-run/</link>
<title><![CDATA[在C#运行时创建泛型对象]]></title> 
<author>Heck &lt;@hecks.tk&gt;</author>
<category><![CDATA[Web开发]]></category>
<pubDate>Mon, 20 Sep 2010 15:08:09 +0000</pubDate> 
<guid>https://www.heckjj.com/dotnet-csharp-makegenerictype-in-run/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-family: 微软雅黑;">通过MakeGenericType你可以在运行时创建一个泛型对象。下面这是一段示例代码：</span><br/><textarea name="code" class="c#" rows="15" cols="100">
Type t = Type.GetType("System.Int32");
IList tList= (IList)Activator.CreateInstance(
&nbsp;&nbsp; (typeof(List<>).MakeGenericType(t))
);</textarea><br/><span style="font-family: 微软雅黑;">tList.GetType().FullName可以返回类型的全名</span><br/>Tags - <a href="https://www.heckjj.com/tags/makegenerictype/" rel="tag">makegenerictype</a> , <a href="https://www.heckjj.com/tags/%25E6%25B3%259B%25E5%259E%258B/" rel="tag">泛型</a> , <a href="https://www.heckjj.com/tags/c%2523/" rel="tag">c#</a>
]]>
</description>
</item><item>
<link>https://www.heckjj.com/dotnet-csharp-makegenerictype-in-run/#blogcomment</link>
<title><![CDATA[[评论] 在C#运行时创建泛型对象]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://www.heckjj.com/dotnet-csharp-makegenerictype-in-run/#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>