WANT TO KNOW BEST LANGUAGE OF .NET

  • (3 Pages)
  • +
  • 1
  • 2
  • 3

33 Replies - 10584 Views - Last Post: 13 October 2011 - 07:56 PM

#31 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2241
  • View blog
  • Posts: 9,412
  • Joined: 29-May 08

Re: WANT TO KNOW BEST LANGUAGE OF .NET

Posted 13 October 2011 - 06:53 PM

Inside the Catch block of a Try ... Catch.
Was This Post Helpful? 0
  • +
  • -

#32 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2241
  • View blog
  • Posts: 9,412
  • Joined: 29-May 08

Re: WANT TO KNOW BEST LANGUAGE OF .NET

Posted 13 October 2011 - 07:04 PM

I know there is something vb.net can do inside of Try...Catch related to Async, that c# can't. What the <beep> is it.
Was This Post Helpful? 0
  • +
  • -

#33 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1524
  • View blog
  • Posts: 5,957
  • Joined: 21-March 08

Re: WANT TO KNOW BEST LANGUAGE OF .NET

Posted 13 October 2011 - 07:04 PM

You said Try....Catch. To most people, that means the try block.

So if that is your "C# can't do this"...neither can VB.Net...

Quote

Await or await is also a contextual keyword. It is interpreted as a keyword only in the following limited circumstances. Elsewhere, it is considered to be an identifier.

In Visual Basic, Await is a keyword only in the body of an immediately enclosing method or lambda expression that is modified by Async. Within the method or lambda expression, an Await expression cannot occur in a query expression, in the catch or finally block of a Try…Catch…Finally statement, or in the body of a SyncLock statement.

In C#, await is a keyword in the body of an immediately enclosing method, lambda expression, or anonymous method. In this context, an await expression cannot be used in a synchronous function, in a query expression, in the catch or finally block of an exception handling statement, in the block of a lock statement, or in an unsafe context.


http://msdn.microsof...43(VS.110).aspx
Was This Post Helpful? 0
  • +
  • -

#34 Frinavale  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 203
  • View blog
  • Posts: 776
  • Joined: 03-June 10

Re: WANT TO KNOW BEST LANGUAGE OF .NET

Posted 13 October 2011 - 07:56 PM

View Postmodi123_1, on 13 October 2011 - 09:45 PM, said:

...
The only other option would be where you add event handler to the object.. if you start typing:
button3.Click += 

and then right there.. right after the equals sign.. I hit tab twice I generates the rest of the event handler, names it, and makes my method for me.
...


>>Bouncing with excitement<<!!
Thank you thank you thank you thank you!!!

:D
:D
:D

Thank you!
Was This Post Helpful? 0
  • +
  • -

  • (3 Pages)
  • +
  • 1
  • 2
  • 3