Use event

S

shapper

Hello,

I have 2 classes inside a Namespace: "Calendar" and "Event".

MyNamespace
| --------- Calendar
|-------------Event

VS is not accepting the "Event" as a name to the class.

Is there a way to make VS Studio accept this so I can use something
like:

Dim e As New MyNamespace.Calendar.Event

Thanks,
Miguel
 
T

Teemu Keiski

Hi,

Event is reserved word in VB.NET. Couldn't you name it something like
CalendarEvent?
 
S

shapper

Hi,

Event is reserved word in VB.NET. Couldn't you name it something like
CalendarEvent?

Yes, I can use CalendarEvent ... but I would prefer event so I was
just wondering if this would be possible.

Thanks,
Miguel
 
T

Teemu Keiski

Well, it is if you place the name inside Brackets

Public Class [Event]

but that ain't beautiful either
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Class 1
function not available 1
Bubble Event 2
Event 2
Control Event. Please, need some help. Thank You. 2
VS 2005..Attaching event handlers 2
Use class ... why is not available? 7
Extending DataPager 1

Top