المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Can anybody help me in below code



C# Programming
02-07-2010, 07:50 AM
Hi All,
Can anybody help me what does the below code do and whats the use of new here. Any link also will be fine.


public abstract class BaseCollection : List where T : BaseEntity, new()
{
public bool MapObjects(DataSet ds)
{
if (ds != null && ds.Tables.Count > 0)
{
return MapObjects(ds.Tables[0]);
}
else
{
return false;
}
}
public bool MapObjects(DataTable dt)
{
Clear();
for (int i = 0; i <span class="code-keyword">