OciHandle.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // OciHandle.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. namespace System.Data.OracleClient.Oci {
  19. internal abstract class OciHandle : IOciHandle
  20. {
  21. #region Fields
  22. IntPtr handle;
  23. OciEnvironmentHandle environment;
  24. OciHandleType type;
  25. #endregion // Fields
  26. #region Constructors
  27. public OciHandle (OciHandleType type, OciEnvironmentHandle environment, IntPtr newHandle)
  28. {
  29. this.type = type;
  30. this.environment = environment;
  31. this.handle = newHandle;
  32. }
  33. #endregion // Constructors
  34. #region Properties
  35. public OciEnvironmentHandle Environment {
  36. get { return environment; }
  37. }
  38. public IntPtr Handle {
  39. get { return handle; }
  40. set { handle = value; }
  41. }
  42. public OciHandleType HandleType {
  43. get { return type; }
  44. }
  45. #endregion // Properties
  46. }
  47. }