protected override void Dispose(bool disposing) { if (audioStreamVolumeInterface != null) { ReleaseComObject(audioStreamVolumeInterface); audioStreamVolumeInterface = null; } }
protected virtual void Dispose(bool disposing) { if (disposing && this.audioStreamVolumeInterface != null) { Marshal.ReleaseComObject(this.audioStreamVolumeInterface); this.audioStreamVolumeInterface = null; } }
/// <summary> /// Release/cleanup objects during Dispose/finalization. /// </summary> /// <param name="disposing">True if disposing and false if being finalized.</param> protected virtual void Dispose(bool disposing) { if (disposing) { if (audioStreamVolumeInterface != null) { // although GC would do this for us, we want it done now Marshal.ReleaseComObject(audioStreamVolumeInterface); audioStreamVolumeInterface = null; } } }
internal AudioStreamVolume(IAudioStreamVolume audioStreamVolumeInterface) { this.audioStreamVolumeInterface = audioStreamVolumeInterface; }
internal AudioStreamVolume(IAudioStreamVolume parent) { _RealVolume = parent; }
internal AudioStreamVolume(IAudioStreamVolume audioStreamVolumeInterface) { this.audioStreamVolumeInterface = audioStreamVolumeInterface; }
/// <summary> /// Release/cleanup objects during Dispose/finalization. /// </summary> /// <param name="disposing">True if disposing and false if being finalized.</param> protected virtual void Dispose(bool disposing) { if (disposing) { if (audioStreamVolumeInterface != null) { // although GC would do this for us, we want it done now Marshal.ReleaseComObject(audioStreamVolumeInterface); audioStreamVolumeInterface = null; } } }
internal AudioStreamVolume(IAudioStreamVolume parent) { _RealVolume = parent; }