protected override void DisposeUnmanagedResources() { if (this._viObj != null) { Marshal.FinalReleaseComObject(this._viObj); this._viObj = null; } }
public VolumeInfo GetVolumeInfo(string volumeName) { CheckDisposed(); lock (this._dictLock) { IVolumeInfo7 volInfo7 = this._dictObj.GetVolumeInfo(volumeName); return(new VolumeInfo(volInfo7)); } }
internal VolumeInfo(IVolumeInfo7 volumeInfo) { this._viObj = volumeInfo ?? throw new ArgumentNullException(); this._fields = new Lazy <List <FieldInfo> >(InitFields); }