Monday, June 16, 2008

Simple Types

This variation applies to types that hold references to only other managed objects that do not implement IDisposable and do not have Finalizers. This includes ensuring that no internal container, for example ArrayList, stores objects that require explicit resource cleanup. In such case, you don’t need to do anything special in terms of resource management.
Example:
public class SimpleType{
ArrayList names = new ArrayList();

}

No comments: