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:
authorLluis Sanchez <lluis@novell.com>2005-01-28 01:07:51 +0300
committerLluis Sanchez <lluis@novell.com>2005-01-28 01:07:51 +0300
commite7c2d704c7b1d88842fb6eeefb1f4fa8ee2f45b3 (patch)
tree989140997e4b0e900f9654b4228d2903d82cce86 /mcs/class/System/System.ComponentModel.Design.Serialization
parent2d03f0d67d56d2ff388839e46e05a64af07a8f42 (diff)
2005-01-27 LLuis Sanchez Gual <lluis@novell.com>
* InstanceDescriptor.cs: Constructors don't need to be static. svn path=/trunk/mcs/; revision=39665
Diffstat (limited to 'mcs/class/System/System.ComponentModel.Design.Serialization')
-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");