|
-
Mar 7th, 2006, 07:30 AM
#1
Thread Starter
Hyperactive Member
C# equivalent to VB.Net's With statement?
Hey Guys, is there a C# equivalent to the VB.Net With statement please?
Thanks
Chubby.
-
Mar 7th, 2006, 07:32 AM
#2
Re: C# equivalent to VB.Net's With statement?
 Originally Posted by Chubby
Hey Guys, is there a C# equivalent to the VB.Net With statement please?
Thanks
Chubby.
No.
Take a look at this to know why?
Use [code] source code here[/code] tags when you post source code.
My Articles
-
Mar 7th, 2006, 07:33 AM
#3
Re: C# equivalent to VB.Net's With statement?
-
Mar 7th, 2006, 07:36 AM
#4
Thread Starter
Hyperactive Member
Re: C# equivalent to VB.Net's With statement?
Thanks to all.
Seems crazy, in the days of VB6 I thought it was implied that regardless of readability, using a With block was faster that accessing the pointer each time you wanted to set a property etc....
Amusing, the way that the designers "think" a With block is a curse, I for one find it easier readability wise...
Thanks Again.
Chubby.
-
Mar 7th, 2006, 07:46 AM
#5
Re: C# equivalent to VB.Net's With statement?
Take a look at this thread.
-
Mar 7th, 2006, 07:50 AM
#6
Re: C# equivalent to VB.Net's With statement?
 Originally Posted by Chubby
Thanks to all.
Seems crazy, in the days of VB6 I thought it was implied that regardless of readability, using a With block was faster that accessing the pointer each time you wanted to set a property etc....
Amusing, the way that the designers "think" a With block is a curse, I for one find it easier readability wise...
Thanks Again.
Chubby.
Yes, but you can compare VB 6 to VB.NET or C#.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Mar 7th, 2006, 09:01 AM
#7
Thread Starter
Hyperactive Member
Re: C# equivalent to VB.Net's With statement?
 Originally Posted by Hack
Take a look at this thread.
Very good Thread.
Thanks for that.
Chubby.
-
Mar 7th, 2006, 08:38 PM
#8
Re: C# equivalent to VB.Net's With statement?
There's a way to simulate the same sort of problems that 'With' produces:
http://www.tangiblesoftwaresolutions...0VB%20With.htm
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|