Inside the Catch block of a Try ... Catch.
33 Replies - 7826 Views - Last Post: 13 October 2011 - 07:56 PM
#32
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.
#33
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...
http://msdn.microsof...43(VS.110).aspx
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.
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
#34
Re: WANT TO KNOW BEST LANGUAGE OF .NET
Posted 13 October 2011 - 07:56 PM
modi123_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:
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.
...
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!!!
Thank you!
|
|

New Topic/Question
Reply




MultiQuote


|