OciDescriptorHandle.cs 1020 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. int status = 0;
  33. status = OciCalls.OCIDescriptorFree (this, HandleType);
  34. }
  35. }
  36. #endregion // Methods
  37. }
  38. }