i got these errors when i want to compile my project :
private List<CIF.Busine ss.Northwind.Or dersItem> ConvertListToBu siness (List<CIF.Data. Northwind.Order sItem> list)
{
CIF.Data.Northw ind.OrdersItem ordersItem1;
List<CIF.Busine ss.Northwind.Or dersItem> list1 = new List<CIF.Busine ss.Northwind.Or dersItem> ();
List<CIF.Busine ss.Northwind.Or dersItem>.Enume rator<CIF.Data. Northwind.Order sItem> enumerator1 = list.GetEnumera tor();
try
{
while (enumerator1.Mo veNext ())
{
ordersItem1 = enumerator1.Cur rent;
list1.Add (this.ConvertIt emToBusiness (ordersItem1));
}
}
finally
{
((IDisposable) & (enumerator1)). Dispose ();
}
return list1;
}
Error 1 The non-generic type 'System.Collect ions.Generic.Li st<T>.Enumerato r' cannot be used with type arguments
Error 2 'System.IDispos able' is a 'type' but is used like a 'variable'
Can anyone help to resolve these tow errors
Using Visual studio
Thanks
private List<CIF.Busine ss.Northwind.Or dersItem> ConvertListToBu siness (List<CIF.Data. Northwind.Order sItem> list)
{
CIF.Data.Northw ind.OrdersItem ordersItem1;
List<CIF.Busine ss.Northwind.Or dersItem> list1 = new List<CIF.Busine ss.Northwind.Or dersItem> ();
List<CIF.Busine ss.Northwind.Or dersItem>.Enume rator<CIF.Data. Northwind.Order sItem> enumerator1 = list.GetEnumera tor();
try
{
while (enumerator1.Mo veNext ())
{
ordersItem1 = enumerator1.Cur rent;
list1.Add (this.ConvertIt emToBusiness (ordersItem1));
}
}
finally
{
((IDisposable) & (enumerator1)). Dispose ();
}
return list1;
}
Error 1 The non-generic type 'System.Collect ions.Generic.Li st<T>.Enumerato r' cannot be used with type arguments
Error 2 'System.IDispos able' is a 'type' but is used like a 'variable'
Can anyone help to resolve these tow errors
Using Visual studio
Thanks
Comment