Language features
Serialization using C#
Serialization using C#
Steps
1. Create a Sample class library
2. Implement custom XML attributes
3. Write Client Call to serialize to XMLString
Example
Create a Sample class library & Implement custom XML attributes
namespace ExpShoppingList
{
[XmlRoot("shoppingList")]
public class ShoppingList
{
private ArrayList listShopping;
public ShoppingList()
{
listShopping = new ArrayList();
}
[XmlElement("item")]
public Item[] Items
{
get
{
Item[] items = new [...]
Linq & C#
C# & LINQ Features
Instantiation
you dont need to create a object variable and assign the instantiation to it.
Example
new MyClass().AddMethod(12,35) ;
Extensions
Declare a Class and add Static class with Extensions keyword under the same namespace
that will add all methods of Static class Extensions to all classes in that namespace
Example
class Class1
{
public Class1()
{
}
public void Method1(string s)
[...]


