protected override object AddNewCore() { IGeneralEncapsulatedObject obj1 = new GeneralEncapsulatedObject(); base.Add(obj1); return(obj1); }
protected override object AddNewCore() { IGeneralEncapsulatedObject tmpGeneralEncapsulatedObject = new GeneralEncapsulatedObject(); Add(tmpGeneralEncapsulatedObject); // Not necessary to hook up event handlers, base class calls InsertItem return(tmpGeneralEncapsulatedObject); }