Home
Articles
Tutorials
FAQ
Contact
Newsletter
Search
<< Previous |
1
| Next >>
Visual Studio 2010 Generate From Usage
Visual Studio 2010 includes a new code generation feature named Generate From Usage. This allows you to write code that references classes, structures, interfaces, enumerations and members that do not exist and have the IDE create them for you afterwards.
Visual Studio Reorder Parameters Command
When creating class libraries, you may decide to refactor your code to provide a consistent ordering of parameters. If you need to change the order of parameters for existing methods, you can use Visual Studio's Reorder Parameters command.
Visual Studio Remove Parameters Command
As you refactor and redesign your classes, you may decide that you no longer require one or more parameters of a method. To delete parameters and ensure that calls to the method remain functional, you can use Visual Studio's Remove Parameters command.
Visual Studio Promote Local Variable to Parameter
Sometimes a local variable within a method must be converted to a parameter of the method as the software develops. In such cases, Visual Studio provides a command that allows the variable to be promoted without breaking references elsewhere in the code.
Visual Studio Extract Interface Command
Interfaces define a contract for classes or structures. This helps to support polymorphism in object-oriented programming and assist automated testing when used for mocking. Visual Studio allows you to create interfaces from existing classes automatically
Visual Studio Encapsulate Field Command
Sometimes public fields will are in a class to present data. These are accessed in a similar manner to properties but cannot provide validation. Often you will want to upgrade the public fields to properties. Visual Studio provides a command to assist.
Visual Studio Extract Method Command
When a method grows too large to be easily manageable, or when a section of a method will be duplicated elsewhere in your code, you may consider extracting part of the code into its own method. Visual Studio can automate this refactoring process.
Renaming Identifiers in Visual Studio
Whilst refactoring code, it is often necessary to change the name of an identifier for a type, method, property or variable. Any name changes must then be reflected throughout the solution. This process is made simple with Visual Studio's Rename command.
Visual Studio Method Stub Generation
When writing code, it can be useful to refer to methods that do not yet exist, with the intention of adding these methods later. Using Visual Studio's Generate Method Stub command, these methods can be automatically generated.
<< Previous |
1
| Next >>
Did you arrive here via Google Reader? If so, please
click here
for important information.
.NET Framework
Algorithms and Data Structures
Audio
C# Programming
Configuration
Debugging
Design Patterns
Documentation
Graphics
Input / Output
LINQ
Network and Internet
Parallel and Asynchronous
Performance
Programming Concepts
Refactoring
Reference Sheets
Reflection
Security
SQL Server
System Information
Testing
Tools
Visual Studio
Windows Programming
Windows Presentation Foundation
XML
©2006-
2013
BlackWasp
All Rights Reserved
Cookie Policy
Privacy Policy
Terms of Use