如何在vb.net中创建模板 [英] How to create TEMPLATE In vb.net

查看:136
本文介绍了如何在vb.net中创建模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

谁能帮助我在vb.net中创建和实现模板(Visual Studio 2005).


感谢U

hello,

Can anyone help me to create and implement the template in vb.net (visual studio 2005).


Thanking U

推荐答案

您的意思是像C ++中的模板吗? .NET中没有这样的东西.

这个问题没有明确提出.很抱歉,如果我回答的是错误的问题,这不完全是我的错.

最接近的概念是.NET 泛型类型.
请参阅: http://msdn.microsoft.com/en-us/library/ms172192.aspx [ ^ ].
另请参见仅限VB.NET的文章 VB.NET中的泛型:
http://www.vbdotnetheaven.com/UploadFile/Saurabh.Mishra/GenericsInCsharp211232006000706AM//a> [ ^ ]

泛型从根本上不同于C ++模板-泛型也存在于编译的IL代码中.

—SA
Do you mean templates like in C++? There is not such thing in .NET.

The question is not formulated clearly. Sorry if I''m answering wrong question — this is not entirely my fault.

The closest concept is .NET generic types.
See: http://msdn.microsoft.com/en-us/library/ms172192.aspx[^].
See also VB.NET only article Generics in VB.NET:
http://www.vbdotnetheaven.com/UploadFile/Saurabh.Mishra/GenericsInCsharp211232006000706AM/GenericsInCsharp2.aspx[^]

The generics are fundamentally different from C++ templates — they exist in compiled IL code as well.

—SA


这篇关于如何在vb.net中创建模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆