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
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
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'
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
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
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".
rty = "abc"
> > .Method("def")
> >
> > End With
> >
> > ???
> >
> > - Mat
> >
> > -Original Message-
> > From: Henrik Enemark Rasmussen [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, May 01, 2
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
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
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-
>
: From C# to VB.NET
>
>
> Perhaps you mean "with" ?
>
> Like:
>
> With oSomething
>
> .Property = "abc"
> .Method("def")
>
> End With
>
> ???
>
> - Mat
>
> -Original Message-
> From: Henrik Enem
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
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
>
>
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
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.
15 matches
Mail list logo