Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System/System.ComponentModel.Design.Serialization/RootDesignerSerializerAttribute.cs')
-rw-r--r--mcs/class/System/System.ComponentModel.Design.Serialization/RootDesignerSerializerAttribute.cs75
1 files changed, 75 insertions, 0 deletions
diff --git a/mcs/class/System/System.ComponentModel.Design.Serialization/RootDesignerSerializerAttribute.cs b/mcs/class/System/System.ComponentModel.Design.Serialization/RootDesignerSerializerAttribute.cs
new file mode 100644
index 00000000000..eef6ade5b0c
--- /dev/null
+++ b/mcs/class/System/System.ComponentModel.Design.Serialization/RootDesignerSerializerAttribute.cs
@@ -0,0 +1,75 @@
+// System.ComponentModel.Design.Serialization.RootDesignerSerializerAttribute.cs
+//
+// Author:
+// Alejandro Sánchez Acosta <raciel@gnome.org>
+//
+// (C) Alejandro Sánchez Acosta
+//
+
+using System.Web.UI.Design;
+
+namespace System.ComponentModel.Design.Serialization
+{
+ [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)]
+ public sealed class RootDesignerSerializerAttribute : Attribute
+ {
+ private string serializer;
+ private string baseserializer;
+ private Type basetypeserializer;
+ private Type serializertype;
+ private bool reload;
+
+ public RootDesignerSerializerAttribute (string serializerTypeName, string baseSerializerTypeName, bool reloadable) {
+ this.serializer = serializerTypeName;
+ this.baseserializer = baseSerializerTypeName;
+ this.reload = reloadable;
+ }
+
+ public RootDesignerSerializerAttribute (string serializerTypeName, Type baseSerializerType, bool reloadable) {
+ this.serializer = serializerTypeName;
+ this.basetypeserializer = baseSerializerType;
+ this.reload = reloadable;
+ }
+
+ public RootDesignerSerializerAttribute (Type serializerType, Type baseSerializerType, bool reloadable) {
+ this.serializertype = serializerType;
+ this.basetypeserializer = baseSerializerType;
+ this.reload = reloadable;
+ }
+
+ public bool Reloadable {
+ get {
+ return this.reload;
+ }
+
+ set {
+ this.reload = value;
+ }
+ }
+
+ public string SerializerBaseTypeName {
+ get {
+ return this.baseserializer;
+ }
+
+ set {
+ this.baseserializer = value;
+ }
+ }
+
+ public string SerializerTypeName {
+ get {
+ return this.serializer;
+ }
+
+ set {
+ serializer = value;
+ }
+ }
+
+ [MonoTODO]
+ public override object TypeId {
+ get { throw new NotImplementedException ();}
+ }
+ }
+}