OciDescriptorHandle.cs 991 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // OciDescriptorHandle.cs
  3. //
  4. // Part of managed C#/.NET library System.Data.OracleClient.dll
  5. //
  6. // Part of the Mono class libraries at
  7. // mcs/class/System.Data.OracleClient/System.Data.OracleClient.Oci
  8. //
  9. // Assembly: System.Data.OracleClient.dll
  10. // Namespace: System.Data.OracleClient.Oci
  11. //
  12. // Author:
  13. // Tim Coleman <[email protected]>
  14. //
  15. // Copyright (C) Tim Coleman, 2003
  16. //
  17. using System;
  18. using System.Runtime.InteropServices;
  19. namespace System.Data.OracleClient.Oci {
  20. internal abstract class OciDescriptorHandle : OciHandle
  21. {
  22. #region Constructors
  23. public OciDescriptorHandle (OciHandleType type, OciHandle parent, IntPtr newHandle)
  24. : base (type, parent, newHandle)
  25. {
  26. }
  27. #endregion // Constructors
  28. #region Methods
  29. protected override void FreeHandle ()
  30. {
  31. if (HandleType != OciHandleType.Parameter) { // Parameter handles are disposed implicitely
  32. OciCalls.OCIDescriptorFree (this, HandleType);
  33. }
  34. }
  35. #endregion // Methods
  36. }
  37. }