[Mono-bugs] [Bug 322762] Type.GetXxx(...) returns too many members

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Dec 29 09:52:44 EST 2007


User gert.driesen at pandora.be added comment

--- Comment #6 from Gert Driesen <gert.driesen at pandora.be>  2007-12-29 07:52:44 MST ---
Created an attachment (id=188918)
 --> (https://bugzilla.novell.com/attachment.cgi?id=188918)
corlib patch

* TypeBuilder.cs (GetConstructorImpl): Use GetConstructor on created
type. Original implementation did not take into account the binding
flags and failed with a NotSupportedException if the default binder
checked if a ParamArrayAttribute was defined. It also does not make
sense to return a ConstructorBuilder once the type is emitted.
(GetConstructors): When the type is emitted, use GetConstructors
on the created type.
(GetFields): Removed duplicate code.
(GetMethodsByName): Fixed matching of methods in the parent class
depending on their accessibility:
- Private: never include private methods of parent
- Public: ignore if Public flag is not set
- Assembly: ignore if NonPublic is not set or when on the 1.0 profile
- Rest (Family, FamANDAssem, FamORAssem): ignore if NonPublic flag is
        not set
Static methods of the parent are ignored unless the FlattenHierarchy
flag is set.
(GetProperties): When the type is emitted, use GetProperties on the
created type as the TypeBuilder implementation itself does not include
properties from the parent class.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list