for eg:
Class GenericComparerClass
{
public T t1;
public T t2;
public GenericComparerClass(T t1Type, T t2Type)
{
t1= t1Type;
t2= t2Type;
}
public T MaxT()
{
if(t1.CompareTo(t2)>0)
return T1;
else
default(T);
}
}
Happy coding....
This Blog will list various code snippets on the things I have explored on Microsoft .Net Technologies like Asp.net with C#, Microsoft Office sharepoint Server 2007, WCF and hopefully lots more to come.
No comments:
Post a Comment