Practical Guidelines and Best Practices for Microsoft Visual Basic and Visual C# Developers

Front Cover
Microsoft Press, 2005 - Computers - 570 pages

Get the real-world coding guidelines, expert tips, and rock-solid guidance you need to take your development expertise to the next level. Drawing on their extensive programming and consulting experience, respected developers Francesco Balena and Giuseppe Dimauro share more than 700 programming best practices for Visual Basic and Visual C#. For each rule the authors explain the purpose, illuminate their whys and why-nots, highlight exceptions and alternatives, and provide real-world code samples.

Use the practical, reliable techniques in this book to:

  • Take full advantage of the Microsoft .NET Framework--and write reusable, robust, and security-enhanced code
  • Build software solutions that are both efficient and scalable
  • Implement rational and easy-to-use class libraries and object hierarchies
  • Adopt coherent coding styles and techniques to increase team productivity
  • Extend your programming expertise, problem-solving skills, and creativity!

Find best practices for working with:

  • assemblies
  • resources and localization
  • types and structures
  • fields
  • properties
  • methods *constructors
  • events
  • interfaces
  • exception handling
  • custom attributes
  • numbers and dates
  • strings
  • array and collection types
  • memory usage and object finalization
  • Windows Forms applications
  • Microsoft ADO.NET
  • Microsoft ASP.NET Web Forms and Web services applications
  • threading and synchronization
  • PInvoke and COM Interop
  • serviced components
  • remoting
  • security considerations
  • and more

Get code samples for Visual Basic and C# on the Web: For information on code samples and system requirements, please see Appendix C.

From inside the book

What people are saying - Write a review

We haven't found any reviews in the usual places.


Coding Guidelines and Best Practices
Projects and Solutions
Spaces and Indentation

35 other sections not shown

Common terms and phrases

About the author (2005)

Francesco Balena is a well-known and highly regarded developer and author. He has written numerous Microsoft Press® books, including the widely acclaimed Programming Microsoft Visual Basic® titles, and edits a popular Web site on .NET programming. Francesco is a cofounder of Code Architects srl, an Italian software company that specializes in using Microsoft technologies to create enterprise-level solutions and programming tools. In addition, he is a regional director for MSDN® Italy, and a frequent speaker at developer conferences.

Giuseppe Dimauro is an MSDN Regional Director for Italy and a regular speaker at Italian conferences such as Windows Professional Conferences, DevDays, and MSDN events. He teaches and consults for Microsoft Italy on technologies such as COM+, Microsoft SQL Server™, and Microsoft Exchange Server.

Bibliographic information