S
Sylvie
Hello,
I have a class, when I use this class like this, using (StockManager StMan =
new StockManager()) { .......... }
it returns "error type used in a using statement must be implicitly
convertible to 'System.IDisposable' "
How can I implement Dispose parts ?
My Class is;
class StockManager
{
public StockDataInterface StockData = null;
public StockManager()
{
StockData = new StockDataInterface();
}
public int CreateStock() { ..... }
}
I have a class, when I use this class like this, using (StockManager StMan =
new StockManager()) { .......... }
it returns "error type used in a using statement must be implicitly
convertible to 'System.IDisposable' "
How can I implement Dispose parts ?
My Class is;
class StockManager
{
public StockDataInterface StockData = null;
public StockManager()
{
StockData = new StockDataInterface();
}
public int CreateStock() { ..... }
}