TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Gary King
NA
83
209.2k
C# Equivalent of VB "WITH"
Jun 24 2011 8:36 AM
In C# is there an equivalent of the VB
With
/
End With
?
The only thing that I can find is
Using
, but this does not appear to work in the same way as
With
....
For example, in VB I can define which object I am working with and then not use the object name again - something like this....
With myObject
.Color = "Red"
.FontSize = "12"
End With
In the above example, I only have to type "myObject" once.
Is this also possible in C#?
Thanks
Gary
Reply
Answers (
6
)
ListView
Difference b/w Loop