CodeDomSerializer.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. // System.ComponentModel.Design.Serialization.CodeDomSerializer.cs
  2. //
  3. // Author:
  4. // Alejandro Sánchez Acosta <[email protected]>
  5. //
  6. // (C) Alejandro Sánchez Acosta
  7. //
  8. //
  9. // Permission is hereby granted, free of charge, to any person obtaining
  10. // a copy of this software and associated documentation files (the
  11. // "Software"), to deal in the Software without restriction, including
  12. // without limitation the rights to use, copy, modify, merge, publish,
  13. // distribute, sublicense, and/or sell copies of the Software, and to
  14. // permit persons to whom the Software is furnished to do so, subject to
  15. // the following conditions:
  16. //
  17. // The above copyright notice and this permission notice shall be
  18. // included in all copies or substantial portions of the Software.
  19. //
  20. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  21. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  22. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  23. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  24. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  25. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  26. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  27. //
  28. using System.CodeDom;
  29. using System.Web.UI.Design;
  30. namespace System.ComponentModel.Design.Serialization
  31. {
  32. public abstract class CodeDomSerializer
  33. {
  34. [MonoTODO]
  35. protected CodeDomSerializer() {
  36. throw new NotImplementedException ();
  37. }
  38. public abstract object Deserialize (IDesignerSerializationManager manager, object codeObject);
  39. [MonoTODO]
  40. protected void DeserializePropertiesFromResources (IDesignerSerializationManager manager, object value, Attribute[] filter)
  41. {
  42. throw new NotImplementedException ();
  43. }
  44. [MonoTODO]
  45. protected object DeserializeExpression (IDesignerSerializationManager manager, string name, CodeExpression expression)
  46. {
  47. throw new NotImplementedException ();
  48. }
  49. [MonoTODO]
  50. protected void DeserializeStatement (IDesignerSerializationManager manager, CodeStatement statement)
  51. {
  52. throw new NotImplementedException ();
  53. }
  54. public abstract object Serialize (IDesignerSerializationManager manager, object value);
  55. [MonoTODO]
  56. protected void SerializeEvents (IDesignerSerializationManager manager, CodeStatementCollection statements, object value, Attribute[] filter)
  57. {
  58. throw new NotImplementedException ();
  59. }
  60. [MonoTODO]
  61. protected void SerializeProperties (IDesignerSerializationManager manager, CodeStatementCollection statements, object value, Attribute[] filter)
  62. {
  63. throw new NotImplementedException ();
  64. }
  65. [MonoTODO]
  66. protected void SerializePropertiesToResources (IDesignerSerializationManager manager, CodeStatementCollection statements, object value, Attribute[] filter)
  67. {
  68. throw new NotImplementedException ();
  69. }
  70. [MonoTODO]
  71. protected void SerializeResource (IDesignerSerializationManager manager, string resourceName, object value)
  72. {
  73. throw new NotImplementedException ();
  74. }
  75. [MonoTODO]
  76. protected void SerializeResourceInvariant (IDesignerSerializationManager manager, string resourceName, object value)
  77. {
  78. throw new NotImplementedException ();
  79. }
  80. [MonoTODO]
  81. protected CodeExpression SerializeToExpression (IDesignerSerializationManager manager, object value)
  82. {
  83. throw new NotImplementedException ();
  84. }
  85. [MonoTODO]
  86. protected CodeExpression SerializeToReferenceExpression (IDesignerSerializationManager manager, object value)
  87. {
  88. throw new NotImplementedException ();
  89. }
  90. }
  91. }