New Feature of c# 3.0

29 12 2007

Version of C#->1.0,1.1,2.0,3.0

Features of C#.Net is:-

1)Local Type Inferences

2)Lamda Expressions

3)Query Expressions

4)Object Inialization

and more……





Security ppts and tools

29 12 2007

Last time i attend microsoft conference really good and security rokcing in next few months and chek this links any body want information of latest

 http://www.microsoft.com/india/security/ss.aspx





Sliverlight White Papers

27 12 2007




New Blog of .Net

26 12 2007




IIS Web Server Information

26 12 2007

Visit this site www.iis.net





msdn mazines

26 12 2007




Generics example

21 12 2007
Generics (C# Programming Guide)

Generics were added to version 2.0 of the C# language and the common language runtime (CLR). Generics introduce to the .NET Framework the concept of type parameters, which make it possible to design classes and methods that defer the specification of one or more types until the class or method is declared and instantiated by client code. For example, by using a generic type parameter T you can write a single class that other client code can use without incurring the cost or risk of runtime casts or boxing operations, as shown here:
// Declare the generic class.  public class GenericList<T>  {      void Add(T input) { } }  class TestGenericList  {      private class ExampleClass { }      static void Main()      {  // Declare a list of type int.  GenericList<int> list1 = new GenericList<int>(); // Declare a list of type string. GenericList<string> list2 = new GenericList<string>();// Declare a list of type ExampleClass. GenericList<ExampleClass> list3 = new GenericList<ExampleClass>();  } }  
  • Use generic types to maximize code reuse, type safety, and performance.
  • The most common use of generics is to create collection classes.
  • The .NET Framework class library contains several new generic collection classes in the System.Collections.Generic namespace. These should be used whenever possible instead of classes such as ArrayList in the System.Collections namespace.
  • You can create your own generic interfaces, classes, methods, events and delegates.
  • Generic classes may be constrained to enable access to methods on particular data types.
  • Information on the types that are used in a generic data type may be obtained at run-time by using reflection.




Generic Features of C# 2.0

21 12 2007




Microsoft SQL Server 2005 Service Pack 2

21 12 2007




C# 3.5 New Feature in Properties

21 12 2007
Auto-Implemented Properties (C# Programming Guide)

Auto-implemented properties make property-declaration more concise when no additional logic is required in the property accessors. When you declare a property as shown in the following example, the compiler creates a private, anonymous backing field can only be accessed through the property’s get and set accessors.

The following example shows a simple class that has some auto-implemented properties:

class LightweightCustomer
{
    public double TotalPurchases { get; set; }
    public string Name { get; private set; } // read-only
    public int CustomerID { get; private set; } // read-only
}

Auto-implemented properties must declare both a get and a set accessor. To create a readonly auto-implemented property, give it a private set accessor.

Attributes are not permitted on auto-implemented properties. If you must use an attribute on the backing field of a property, just create a regular property.