473,395 Members | 1,616 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,395 software developers and data experts.

The "Of" keyword?

Is the "Of" keyword new to VB.NET 2.0?

For example, I am trying to make sense of the sample screensaver
application that's packaged with Express 2005 Edition.

In many of it's classes, it has code like so:

Public Class XYZ (Of T as IItem)
...
End Class

I've never actually seen "Of" in any code sample before.

1) Is this new to the updated VB.NET language?
2) What does it mean/do?

I can't google it because it strips the word "of" in all searches.

Thanks!
John

Dec 22 '05 #1
6 5681
"johnb41" <js********@gmail.com> schrieb:
Is the "Of" keyword new to VB.NET 2.0?
Yes.
2) What does it mean/do?


Did you yet take a look at the chapter "Of keyword" in the documentation?

<URL:http://winfx.msdn.microsoft.com/library/en-us/dv_vbalr/html/0db8f65c-65af-4089-ab7f-6fcfecb60444.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 22 '05 #2
Herfried,

What is this http://winfx.msdn.microsoft.com/library site you sent him to,
and how is it different than http://msdn2.microsoft.com/library?

Hadn't seen this before.

Greg

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:OY**************@TK2MSFTNGP11.phx.gbl...
"johnb41" <js********@gmail.com> schrieb:
Is the "Of" keyword new to VB.NET 2.0?


Yes.
2) What does it mean/do?


Did you yet take a look at the chapter "Of keyword" in the documentation?

<URL:http://winfx.msdn.microsoft.com/library/en-us/dv_vbalr/html/0db8f65c-65af-4089-ab7f-6fcfecb60444.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 22 '05 #3
"Greg Burns" <bl*******@newsgroups.nospam> schrieb:
What is this http://winfx.msdn.microsoft.com/library site you sent him to,
and how is it different than http://msdn2.microsoft.com/library?


I should have sent him to the msdn2 page. The other page is especially
targetted to WinFX.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 22 '05 #4
I love those 2 letters! The uses of "Of" is one of the big reasons I want
to get off of VS 2003 and onto 2005.

"Herfried K. Wagner [MVP]" wrote:
"johnb41" <js********@gmail.com> schrieb:
Is the "Of" keyword new to VB.NET 2.0?


Yes.
2) What does it mean/do?


Did you yet take a look at the chapter "Of keyword" in the documentation?

<URL:http://winfx.msdn.microsoft.com/library/en-us/dv_vbalr/html/0db8f65c-65af-4089-ab7f-6fcfecb60444.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 22 '05 #5
John,
As Herfried suggests, yes its new in .NET 2.0.

It is the "gateway" to Generics, which is a powerful new feature in .NET 2.0
that opens up Parametric Polymorphism. Parametric Polymorphism & other types
of polymorphism are explained here:

http://www.javaworld.com/javaworld/j...polymorph.html
http://en.wikipedia.org/wiki/Polymor...mputer_science)
Here are some addition links on Generics:

http://msdn.microsoft.com/library/de...tml/vs04k1.asp

http://www.tsbradley.net/Presentations/Generics.aspx

http://msdn2.microsoft.com/en-us/library/w256ka79.aspx

--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"johnb41" <js********@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
| Is the "Of" keyword new to VB.NET 2.0?
|
| For example, I am trying to make sense of the sample screensaver
| application that's packaged with Express 2005 Edition.
|
| In many of it's classes, it has code like so:
|
| Public Class XYZ (Of T as IItem)
| ...
| End Class
|
| I've never actually seen "Of" in any code sample before.
|
| 1) Is this new to the updated VB.NET language?
| 2) What does it mean/do?
|
| I can't google it because it strips the word "of" in all searches.
|
| Thanks!
| John
|
Dec 22 '05 #6
Thanks everyone! Such a simple word, yet so complex! Thanks for the
links...

John

Dec 23 '05 #7

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

Similar topics

3
by: Paul Auleciems | last post by:
Hi: I'm having trouble using an Object which is created based on the following: Public CarDetail () as Car Where the CLASS "Car" is defined as: Public Class Car
10
by: Özden Irmak | last post by:
Hi, I'm trying to hide an event of my custom usercontrol derived control, something like "Shadows" in VB.Net, but although the event is hidden from PropertyGrid, from CodeEditor I can still...
7
by: William | last post by:
g++(mingw) doesnt support keyword "uuidof" on win32 platform , is there any solution to solve it ? thanks !
3
by: Jason S | last post by:
I have a rough understanding of what the "this" keyword refers to in Javascript but am not very clear on it. Is there a good reference that explains it well?
22
by: nospam_news | last post by:
I currently get asked about my usage of "auto". What is it for? The keyword is clearly superflous here. In contrast to the huge majority of C/C++ developers I write definitions very explicitly...
94
by: Samuel R. Neff | last post by:
When is it appropriate to use "volatile" keyword? The docs simply state: " The volatile modifier is usually used for a field that is accessed by multiple threads without using the lock...
9
by: =?Utf-8?B?QWJoaQ==?= | last post by:
i was looking in some code in which i found that it is using @ keyword before class name and constructor like this public class @MyClass { public @MyClass { } }
15
by: John A Grandy | last post by:
Does .NET provide a "factors of" method ? I need to determine the factors of an integer.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.