public void Dispose() { AttachVariableIds?.Clear(); AttachVariableIds = null; AttachFileName = null; AssetValueType = null; AssetValueTypes?.Clear(); AssetValueTypes = null; AssetFuncType = null; RootConnector?.Dispose(); RootConnector = null; GC.SuppressFinalize(this); }
protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { WriteAction = null; ReadAction = null; // 以下、固有定義開放 RootConnector?.Dispose(); RootConnector = null; } disposedValue = true; } }