Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automatic get/set generators
Message
De
01/12/2011 13:39:40
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01530082
Message ID:
01530085
Vues:
58
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;}
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform