SurrogateSelector.cs 1015 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // System.Runtime.Serialization.SurrogateSelector.cs
  3. //
  4. // Author: Duncan Mak ([email protected])
  5. //
  6. // (C) Ximian, Inc.
  7. //
  8. namespace System.Runtime.Serialization
  9. {
  10. public class SurrogateSelector : ISurrogateSelector
  11. {
  12. // Constructor
  13. public SurrogateSelector()
  14. : base ()
  15. {
  16. }
  17. // Methods
  18. [MonoTODO]
  19. public virtual void AddSurrogate (Type type,
  20. StreamingContext context, ISerializationSurrogate surrogate)
  21. {
  22. if (type == null || surrogate == null)
  23. throw new ArgumentNullException ("Null reference");
  24. }
  25. [MonoTODO]
  26. public virtual void ChainSelector (ISurrogateSelector selector)
  27. {
  28. }
  29. [MonoTODO]
  30. public virtual ISurrogateSelector GetNextSelector ()
  31. {
  32. return null;
  33. }
  34. [MonoTODO]
  35. public virtual ISerializationSurrogate GetSurrogate (Type type,
  36. StreamingContext context, out ISurrogateSelector selector)
  37. {
  38. selector = null;
  39. return null;
  40. }
  41. [MonoTODO]
  42. public virtual void RemoveSurrogate (Type type, StreamingContext context)
  43. {
  44. }
  45. }
  46. }