MarshalByValueComponent.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. //
  2. // System.ComponentModel.MarshalByValueComponent.cs
  3. //
  4. // Author:
  5. // Rodrigo Moya ([email protected])
  6. //
  7. // (C) Ximian, Inc
  8. //
  9. using System;
  10. namespace System.ComponentModel
  11. {
  12. /// <summary>
  13. /// Implements IComponent and provides the base implementation for remotable components that are marshaled by value (a copy of the serialized object is passed).
  14. /// </summary>
  15. public class MarshalByValueComponent : IComponent, IDisposable, IServiceProvider
  16. {
  17. [MonoTODO]
  18. public MarshalByValueComponent () {
  19. // TODO: need to implement for some component model
  20. // but do not throw a NotImplementedException
  21. }
  22. [MonoTODO]
  23. public void Dispose () {
  24. // TODO: need to do, but do not
  25. // throw a NotImplementedException
  26. }
  27. [MonoTODO]
  28. protected virtual void Dispose (bool disposing) {
  29. }
  30. [MonoTODO]
  31. public virtual object GetService (Type service) {
  32. return null;
  33. }
  34. public virtual IContainer Container {
  35. [MonoTODO]
  36. get {
  37. return null;
  38. }
  39. }
  40. public virtual bool DesignMode {
  41. [MonoTODO]
  42. get {
  43. return false;
  44. }
  45. }
  46. public virtual ISite Site {
  47. [MonoTODO]
  48. get {
  49. // TODO: need to get Site
  50. return null;
  51. }
  52. [MonoTODO]
  53. set {
  54. // TODO: need to set Site
  55. }
  56. }
  57. protected EventHandlerList Events {
  58. [MonoTODO]
  59. get {
  60. // TODO: need to do, but do not
  61. // throw a NotImplementedException
  62. return null;
  63. }
  64. }
  65. public event EventHandler Disposed;
  66. }
  67. }