Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automatic get/set generators
Message
From
01/12/2011 13:39:40
John Baird
Coatesville, Pennsylvania, United States
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01530082
Message ID:
01530085
Views:
57
This message has been marked as a message which has helped to the initial question of the thread.
>>>Hi everybody,
>>>
>>>When I'm creating a new class and want to add a new property, is there a quick shortcut to automatically add property and get/set pairs?
>>>
>>>Thanks in advance.
>>
>>There is a snippet called prop that will insert a generic property with the get/set
>
>I see, thanks. I also already found another way via Google / click on a variable and Ctrl+R, Ctrl+E
>
>Actually, how exactly to insert it? I type prop, what should I click/do next?
try hitting the tab key

or typing
public string MyProperty {get;set;}
Previous
Reply
Map
View

Click here to load this message in the networking platform