473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Visual Basic and generics

Does VB.NET support generics in Whidbey - Visual Sutdios 2005?
Nov 20 '05 #1
5 1172
* "=?Utf-8?B?TWFyaw==?=" <Ma**@discussions.microsoft.com> scripsit:
Does VB.NET support generics in Whidbey - Visual Sutdios 2005?


Yes.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
Mark wrote:
Does VB.NET support generics in Whidbey - Visual Sutdios 2005?

It does. It uses a nice 'Of' keyword syntax
Nov 20 '05 #3
Mark wrote:
Does VB.NET support generics in Whidbey - Visual Sutdios 2005?


It has a nice syntax 'Of' keyword
Nov 20 '05 #4
Quick sample(s)

Class C1(of T)
Dim arrayvar() as T
Function foo(arg as T) as T
End Function
End Class

'constrained
Class C2(Of Y as new)
Sub test
Dim z as new Y
End Sub
End Class

--------------------
Thread-Topic: Visual Basic and generics
thread-index: AcRTuKpFETLNzyqmRtavILUBI3YA0A==
X-WBNR-Posting-Host: 64.170.27.150
From: "=?Utf-8?B?TWFyaw==?=" <Ma**@discussions.microsoft.com>
Subject: Visual Basic and generics
Date: Wed, 16 Jun 2004 08:43:26 -0700
Lines: 1
Message-ID: <C5**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.languages.vb:210257
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

Does VB.NET support generics in Whidbey - Visual Sutdios 2005?

Nov 20 '05 #5
http://weblogs.asp.net/duncanma/arch.../19/93109.aspx

and

http://weblogs.asp.net/duncanma/arch.../19/76587.aspx

give some examples... as does the article by Ken Getz at
http://msdn.microsoft.com/vbasic/def...05_preview.asp

"Alexandre Moura" <am****@online.microsoft.com> wrote in message
news:l9**************@cpmsftngxa10.phx.gbl...
Quick sample(s)

Class C1(of T)
Dim arrayvar() as T
Function foo(arg as T) as T
End Function
End Class

'constrained
Class C2(Of Y as new)
Sub test
Dim z as new Y
End Sub
End Class

--------------------
Thread-Topic: Visual Basic and generics
thread-index: AcRTuKpFETLNzyqmRtavILUBI3YA0A==
X-WBNR-Posting-Host: 64.170.27.150
From: "=?Utf-8?B?TWFyaw==?=" <Ma**@discussions.microsoft.com>
Subject: Visual Basic and generics
Date: Wed, 16 Jun 2004 08:43:26 -0700
Lines: 1
Message-ID: <C5**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.languages.vb:210257
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

Does VB.NET support generics in Whidbey - Visual Sutdios 2005?


Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: AK | last post by:
I don't want any part of the previous discussion on Visual Basic versus Visual Basic.Net. My query is about using Visual Basic for Applications; and whether it is better to use Visual Basic 6 or...
14
by: Aaron | last post by:
Is it possible to use .net framework 1.1 in vs2005? where can i find a list of new features of .net framework 2.0? thanks
34
by: John Timbers | last post by:
I'd like to purchase Visual C# .Net for learning purposes only since it's a lot cheaper than Visual Studio (note that I'm a very experienced C++ developer). Can someone simply clarify the basic...
3
by: Ot | last post by:
First, a bit of background... I am an experienced programmer who has been programming since 1962. Languages I know include (a partial list) FORTRAN, COBOL, Basic (a number of versions), well, I...
2
by: frossberg | last post by:
Hello! I tried to install the Visual Basic.NET Resource Kit (http://msdn.microsoft.com/vbasic/vbrkit/) but obviously something went very wrong and now it sems impossible both to repair and to...
0
by: innovasys | last post by:
TORQUAY, DEVON, UK - Innovasys announced the release of Document! X 5, the fifth version of the documentation solution of choice for developers using Microsoft Visual Studio or the .NET Framework....
4
by: sqlguy | last post by:
Why do we have to contact MS for a problem that has been with this compiler from at least the beta of VS 20005. I am so sick and tired of the 30 - 40 clicks it takes to dismiss VS when there is a...
97
by: Master Programmer | last post by:
An friend insider told me that VB is to be killled off within 18 months. I guess this makes sence now that C# is here. I believe it and am actualy surprised they ever even included it in VS 2003 in...
7
by: RFleming | last post by:
I am not trying to come across as trying to get all my questions answered without doing any work, I am just hoping for someone(s) to suggest the best places and terminology to use when trying to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.