public void Dispose() { if (bindModelObject != null) { removeModelListener(); bindModelObject = null; } if (exelCellComponentBindView != null) { exelCellComponentBindView = null; } }
// protected MemberGetter memberGetter; public XlwPropBinding( object bindModelObject, PropertyInfo bindModelPropInfo, ExcelValueCellComponent exelCellComponentBindView) { this.bindModelObject = bindModelObject; this.bindModelPropInfo = bindModelPropInfo; this.exelCellComponentBindView = exelCellComponentBindView; updateModel2View(); addModelListener(); }