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/DesignerSerializerAttribute.cs')
-rw-r--r--mcs/class/System/System.ComponentModel.Design.Serialization/DesignerSerializerAttribute.cs43
1 files changed, 19 insertions, 24 deletions
diff --git a/mcs/class/System/System.ComponentModel.Design.Serialization/DesignerSerializerAttribute.cs b/mcs/class/System/System.ComponentModel.Design.Serialization/DesignerSerializerAttribute.cs
index 63bda459810..f2ae468f4c8 100644
--- a/mcs/class/System/System.ComponentModel.Design.Serialization/DesignerSerializerAttribute.cs
+++ b/mcs/class/System/System.ComponentModel.Design.Serialization/DesignerSerializerAttribute.cs
@@ -2,54 +2,49 @@
// System.ComponentModel.Design.Serialization.DesignerSerializerAttribute.cs
//
// Authors:
-// Martin Willemoes Hansen (mwh@sysrq.dk)
+// Martin Willemoes Hansen (mwh@sysrq.dk)
+// Andreas Nahr (ClassDevelopment@A-SoftTech.com)
//
// (C) 2003 Martin Willemoes Hansen
+// (C) 2003 Andreas Nahr
//
namespace System.ComponentModel.Design.Serialization
{
- [AttributeUsage(AttributeTargets.Class |
- AttributeTargets.Interface)]
- public sealed class DesignerSerializerAttribute : Attribute
+ [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true, Inherited = true)]
+ public sealed class DesignerSerializerAttribute : Attribute
{
- [MonoTODO]
+
+ private string serializerTypeName;
+ private string baseSerializerTypeName;
+
public DesignerSerializerAttribute (string serializerTypeName,
- string baseSerializerTypeName)
+ string baseSerializerTypeName)
{
+ this.serializerTypeName = serializerTypeName;
+ this.baseSerializerTypeName = baseSerializerTypeName;
}
- [MonoTODO]
- public DesignerSerializerAttribute (string serializerTypeName,
- Type baseSerializerType)
+ public DesignerSerializerAttribute (string serializerTypeName, Type baseSerializerType)
+ : this (serializerTypeName, baseSerializerType.AssemblyQualifiedName)
{
}
- [MonoTODO]
- public DesignerSerializerAttribute (Type serializerType,
- Type baseSerializerType)
+ public DesignerSerializerAttribute (Type serializerType, Type baseSerializerType)
+ : this (serializerType.AssemblyQualifiedName, baseSerializerType.AssemblyQualifiedName)
{
}
public string SerializerBaseTypeName {
- [MonoTODO]
- get { throw new NotImplementedException(); }
+ get { return baseSerializerTypeName; }
}
public string SerializerTypeName {
- [MonoTODO]
- get { throw new NotImplementedException(); }
+ get { return serializerTypeName; }
}
public override object TypeId {
- [MonoTODO]
- get { throw new NotImplementedException(); }
- }
-
- [MonoTODO]
- public override int GetHashCode()
- {
- throw new NotImplementedException();
+ get { return string.Concat (this.ToString(), baseSerializerTypeName); }
}
}
}