Tuesday, August 30, 2005

Setting accessibility for get and set of a Property in c# 2.0

In c# 1.0 there was no way you can set the accessibility qualifiers for get or set inside a property.

C# 2.0 allows you to set different accessibility qualifiers for your get and set of a property. This feature is useful when you want to have different accessibility for your get and set.





public class Employee
{
private string _employeeName;

public string EmployeeName
{
public get { return _employeeName; }
protected set { _employeeName = value; }
}
}



Refrence Chris Breisch

Thursday, August 25, 2005

ASP.NET Articles

More than 100 good articles on ASP.NET are available at ftp online for ASP.NET developers.

Below are few articles, which are helpful in day-to-day programming.

IIS 7.0

  • A First Look at IIS 7.0

  • Componentization and ASP.NET integration are among the many new features coming up in the next version of Internet Information Services.

Visual Studio 2005

  • Customize Sites With Web Parts

  • Customizing site with web parts. The Visual Studio 2005 Toolbox features a tab called WebParts, which includes a dozen Web Part infrastructure controls that make up the Web Part framework.

ASP.NET 2.0

  • The New ASP.NET 2.0 Code-Behind Model

  • The New ASP.NET 2.0 Code-Behind Model.  This article explains the working of new partial classes in ASP.NET 2.0.

  • Manage Users Fast

  • Add a new user to your system using ASP.NET 2.0's rich API for manipulating users and roles.

  • Master pages

  • ASP.NET 2.0's master pages can help you develop consistent Web apps without the additional overhead of include files, user controls, or third-party add-ins.

  • Techniques for managing client state

  • Working with and understanding how client state is used in your app is critical to putting a good design into practice. Examine three techniques for managing client state.

  • Manage Session State

  • Manage Session State on the Server

  • Client-Side Script

  • Add Client-Side Script Code

Web Services


  • Use Custom .NET Collections

  • Create and use .NET custom collection classes to pass containers of data in your Web services projects.

  • Stateful Web services

  • This article illustrates a programming technique that let’s you deliver better-performing, stateful Web services by supporting ASP.NET. I'll also show you how to use Simple Object Access Protocol (SOAP) headers to implement additional features, such as custom authentication and authorization, and create more flexible Web services that send and receive additional data that doesn't map to method arguments.

ASP.NET controls

ASP.NET 2.0 performance


ADO.NET

Please note that you need to register on ftp online to read complete articles.    

Wednesday, August 24, 2005

Cyclomatic Complexity

Cyclomatic Complexity helps to find the complexity of code. Cyclomatic Complexity verification has been added in latest version of FxCop. I found this feature of great help while doing code review with the help of FxCop.

This is good article on Code Review and Complexity by Michael Swanson (Senior Consultant,Microsoft Corporation). This article also explains the advantages of McCabe's Cyclomatic Complexity as:


  • It is very easy to compute
  • Unlike other complexity measurements, it can be computed immediately in the development lifecycle (which makes it Agile-friendly)
  • It provides a good indicator of the ease of code maintenance
  • It can help focus testing efforts
  • It makes it easy to find complex code for formal review




This is a good presentation on Taming the Software
Development Process
by Michael Swanson (Senior Consultant,Microsoft Corporation). This presentation also explains the cyclomatic complexity and its advantages.

Tuesday, August 16, 2005

Rob Caron's Blog

I like and read the articles on "Rob Caron's Blog A Team System Nexus". He has listed a suggested readings for Team Systems which is great.

Rob Caron's Blog A Team System Nexus

Wednesday, August 03, 2005

Microsoft Windows Vista

Microsoft has named its new windows as Vista and they just released its Beta1.
Check out this site for windows vista
Windows Vista .