From e7c2d704c7b1d88842fb6eeefb1f4fa8ee2f45b3 Mon Sep 17 00:00:00 2001 From: Lluis Sanchez Date: Thu, 27 Jan 2005 22:07:51 +0000 Subject: 2005-01-27 LLuis Sanchez Gual * InstanceDescriptor.cs: Constructors don't need to be static. svn path=/trunk/mcs/; revision=39665 --- mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog | 3 +++ .../System.ComponentModel.Design.Serialization/InstanceDescriptor.cs | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog (limited to 'mcs/class/System/System.ComponentModel.Design.Serialization') 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 + + * 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"); -- cgit v1.2.3