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:
-rw-r--r--mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog3
-rw-r--r--mcs/class/System/System.ComponentModel.Design.Serialization/InstanceDescriptor.cs2
2 files changed, 3 insertions, 2 deletions
diff --git a/mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog b/mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog
new file mode 100644
index 00000000000..5d1c47de18f
--- /dev/null
+++ b/mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog
@@ -0,0 +1,3 @@
+2005-01-27 LLuis Sanchez Gual <lluis@novell.com>
+
+ * InstanceDescriptor.cs: Constructors don't need to be static.
diff --git a/mcs/class/System/System.ComponentModel.Design.Serialization/InstanceDescriptor.cs b/mcs/class/System/System.ComponentModel.Design.Serialization/InstanceDescriptor.cs
index 3006a22bde1..fa9eac239e9 100644
--- a/mcs/class/System/System.ComponentModel.Design.Serialization/InstanceDescriptor.cs
+++ b/mcs/class/System/System.ComponentModel.Design.Serialization/InstanceDescriptor.cs
@@ -64,8 +64,6 @@ namespace System.ComponentModel.Design.Serialization
// According to docs only these types are allowed
case MemberTypes.Constructor:
ConstructorInfo CI = (ConstructorInfo) member;
- if (!CI.IsStatic)
- throw new ArgumentException ("InstanceDescriptor only describes static (VB.Net: shared) members", "member");
if (arguments == null) // null counts as no arguments
if (CI.GetParameters().Length != 0)
throw new ArgumentException ("Invalid number of arguments for this constructor", "arguments");