Use event

  • Thread starter Thread starter shapper
  • Start date Start date
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
 
Hi,

Event is reserved word in VB.NET. Couldn't you name it something like
CalendarEvent?
 
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
 
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

Bubble Event 2
Outlook Hard Drive Crashed - can I add events back to the calendar from invitees? 6
Event 2
Class 1
Control Event. Please, need some help. Thank You. 2
function not available 1
Use library 1
Extending DataPager 1

Back
Top