Re: [DOTNET] From C# to VB.NET

2002-05-02 Thread Kirk Jackson
ent: Thursday, 2 May 2002 8:03 p.m. To: [EMAIL PROTECTED] Subject: Re: [DOTNET] From C# to VB.NET Thank you Mattias, I had never considered that multiple using statements before the code block were valid. I certainly haven't seen it used like this before. Your second technique is also i

Re: [DOTNET] From C# to VB.NET

2002-05-02 Thread Peter Stephens
Thank you Mattias, I had never considered that multiple using statements before the code block were valid. I certainly haven't seen it used like this before. Your second technique is also interesting except that it requires the overhead of the cast. My typical pattern is: SqlConnection cn = nul

[DOTNET] Rãspuns: [DOTNET] From C# to VB.NET

2002-05-01 Thread Ovidiu Platon
Isn't there an import directive (import is the keyword). Ovidiu. -Mesaj original- De la: dotnet discussion [mailto:[EMAIL PROTECTED]] În numele Joel Mueller Trimis: Wednesday, May 01, 2002 11:52 PM Către: [EMAIL PROTECTED] Subiect: Re: [DOTNET] From C# to VB.NET There isn'

Re: [DOTNET] From C# to VB.NET

2002-05-01 Thread Mattias Sjögren
Peter, >I will often use the try ... finally pattern in C# if there is more than one >type of resource to clean up. The using statement only supports one type at >a time. Yes, but you can easily nest them using ( DisposableType1 d1 = new DisposableType1() ) using ( DisposableType2 d2 = new Disp

Re: [DOTNET] From C# to VB.NET

2002-05-01 Thread Peter Stephens
I will often use the try ... finally pattern in C# if there is more than one type of resource to clean up. The using statement only supports one type at a time. -- Peter You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://di

Re: [DOTNET] From C# to VB.NET

2002-05-01 Thread Ron Jacobs
e Services -Original Message- From: Mathieu Rachlin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 1:59 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] From C# to VB.NET Hi there, Oh wow, I had never come across the "using statement" versus the "using directive".

Re: [DOTNET] From C# to VB.NET

2002-05-01 Thread Dunne, Joe
rty = "abc" > > .Method("def") > > > > End With > > > > ??? > > > > - Mat > > > > -Original Message- > > From: Henrik Enemark Rasmussen [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, May 01, 2

Re: [DOTNET] From C# to VB.NET

2002-05-01 Thread Joel Mueller
t eqivalent. > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of franklin gray > Sent: Wednesday, May 01, 2002 3:54 PM > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET] From C# to VB.NET > > > In the archives (within the last two weeks

Re: [DOTNET] From C# to VB.NET

2002-05-01 Thread Murphy, James
Henrik Enemark Rasmussen [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 01, 2002 4:54 PM > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET] From C# to VB.NET > > > No, I don't think it's "with". > > From MSDN: "You create an instance in a using statemen

Re: [DOTNET] From C# to VB.NET

2002-05-01 Thread Mathieu Rachlin
5Cresourcemanagement%5Cresourcemanagement.htm -Original Message- From: Joel Mueller [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 4:52 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] From C# to VB.NET There isn't one, as far as I know. > -Original Message- >

Re: [DOTNET] From C# to VB.NET

2002-05-01 Thread Henrik Enemark Rasmussen
: From C# to VB.NET > > > Perhaps you mean "with" ? > > Like: > > With oSomething > > .Property = "abc" > .Method("def") > > End With > > ??? > > - Mat > > -Original Message- > From: Henrik Enem

Re: [DOTNET] From C# to VB.NET

2002-05-01 Thread franklin gray
In the archives (within the last two weeks) there is a link to a web page that can translate C# to VB.net. -Original Message- From: Joel Mueller [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 3:52 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] From C# to VB.NET There isn&#

Re: [DOTNET] From C# to VB.NET

2002-05-01 Thread Joel Mueller
There isn't one, as far as I know. > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of Henrik Enemark Rasmussen > Sent: Wednesday, May 01, 2002 3:40 PM > To: [EMAIL PROTECTED] > Subject: [DOTNET] From C# to VB.NET > >

Re: [DOTNET] From C# to VB.NET

2002-05-01 Thread Mathieu Rachlin
Perhaps you mean "with" ? Like: With oSomething .Property = "abc" .Method("def") End With ??? - Mat -Original Message- From: Henrik Enemark Rasmussen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 4:40 PM To: [EMAIL PROTECTED

[DOTNET] From C# to VB.NET

2002-05-01 Thread Henrik Enemark Rasmussen
Hello All What is the VB.NET equivalent to the C# 'using' statement (not the 'using' directive) ? Regards Henrik You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.