Ejemplo n.º 1
0
 protected virtual void Dispose(bool isdisposable)
 {
     if (EmployeeDetails != null)
     {
         EmployeeDetails.Clear();
     }
 }
Ejemplo n.º 2
0
 protected virtual void Dispose(bool isdisposable)
 {
     if (OrdersListDetails != null)
     {
         foreach (var ordersDetail in OrdersListDetails)
         {
             (ordersDetail as OrderInfo).Dispose();
         }
         OrdersListDetails.Clear();
     }
     if (DynamicOrders != null)
     {
         foreach (var dynamicOrder in DynamicOrders)
         {
             (dynamicOrder as dynamic).Dispose();
         }
         DynamicOrders.Clear();
     }
     if (EmployeeDetails != null)
     {
         foreach (var employeeDetails in EmployeeDetails)
         {
             (employeeDetails as Employee).Dispose();
         }
         EmployeeDetails.Clear();
     }
     if (ShipCountries != null)
     {
         ShipCountries.Clear();
     }
 }