Tuesday, April 3, 2012

Use of Template and where in C#

public abstract class BaseDA where T : BaseEntity
{

}

where T:BaseEntity defines it should be of type BaseEntity only otherwise it would give runtime exceptions