310 likes | 423 Views
Discover two indispensable tools for .NET development that can dramatically enhance your productivity: JetBrains ReSharper and .NET Reflector. ReSharper offers features like error highlighting, code generation, refactoring, code formatting, and navigation in Visual Studio 2005. It's designed to streamline coding tasks and improve workflow. On the other hand, .NET Reflector is a robust class browser and decompiler, aiding in understanding and navigating .NET components. Learn how these tools can transform your development experience!
E N D
Two Development Tools for .NET That You Should Never Miss! Shenhua GU Jan 2008
JetBrains ReSharper • Current Version 3.1 For VS2005
What is ReSharper? • A state-of-the-art add-in for VS2005 • Help improve your productivity
Features • Error highlighting and quick fixes • Code generation • Refactoring • Code formatting • Code templates • Navigation and search • Integrated unit-test runner • And more…
Code Generation • Press Alt+Ins in a class
Refactoring • Move type • Make method static/non-static • Pull members up • Push members down • And more…
Code Formatting • ReSharper takes it to a whole new level • Format according to a predefined setting • Optimizing using directives • Remove redundant this directives • Arrange modifier keywords
Navigation and Search • Type Hierarchy View
Navigation and Search • File Structure View
Navigation and Search • Go to Type, Ctrl + T • Or Ctrl + Click
Navigation and Search • Find Usages
Examples • We’re gonna • Create a business object • Navigate around the classes • Leveraging smart code analysis
Ad • Jedi Coding • Build console application in 8 minutes.
Future of ReSharper • Version 4.0 EAP • Support VS2008 • Automatic properties • Object initializers • Collection initializers • Extension methods • Lambda expressions • LINQ • XAML files • …
Lutz Roeder's .NET Reflector • Current Version 5.0
What is .NET Reflector • A class browser for .NET components • C#, VB.NET and IL decompiler
C# 3.0 Support • Extension methods • Object initializers • LINQ query expressions • Collection initializers • Lambda expressions
C# 3.0 and 2.0 support • Enable via View, Options, Optimization: .NET 3.5 • C# 2.0: Anonymous methodsand nullable types
Code URL support • Navigate to code://mscorlib/System.Object via IE • Ctrl+Alt+C to copy the URL for current item • Add to HTML pages using <a href=“code://…”>
Disassembler • Expand Methodsand Expand Types feature • Context-sensitive documentation view • Click on declaration jumps to item in the browser • Tab to cycle through links, Up/Down to scroll • Context-based automatic variable naming
Analyzer • Add and analyze multiple items (DEL to remove) • “Exposed By” and “Instantiated By” search • “Assigned By” search for fields
Search String or Constant search Exact matching of multiple words
Assembly Lists Default lists for: .NET Framework 3.5 .NET Framework 3.0 .NET Compact Framework 3.5 .NET Compact Framework 2.0 XNA Framework 1.0 DirectX for Managed Code Mono
Resource Viewer View all kinds of resources: js, html, bmp, png, cur… Save byte arrays in .resources file to disk
Examples • Let's get our hands dirty • Mission 1 • What’s the data structure used by SortedList<T>? • Mission 2 • Investigate the life cycle of an ASP.NET Page • Mission 3 • See the Javascript used by GridView