Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Initial bringup for Type.GetX() members. - #1718

Merged
1 commit merged into
nmirrorfrom
unknown repository
Aug 24, 2016
Merged

1 commit merged into
nmirrorfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Aug 24, 2016

Copy link
Copy Markdown

These apis on System.Type are now functional.

GetConstructors()
GetEvents()
GetFields()
GetMembers()
GetMethods()
GetNestedTypes()
GetProperties()

GetConstructors(BindingFlags bindingAttr);
GetEvents(BindingFlags bindingAttr);
GetFields(BindingFlags bindingAttr);
GetMembers(BindingFlags bindingAttr);
GetMethods(BindingFlags bindingAttr);
GetNestedTypes(BindingFlags bindingAttr);
GetProperties(BindingFlags bindingAttr);

GetEvent(string name);
GetField(string name);
GetMember(string name);
GetMethod(string name);
GetNestedType(string name);
GetProperty(string name);

GetEvent(string name, BindingFlags bindingAttr);
GetField(string name, BindingFlags bindingAttr);
GetMember(string name, BindingFlags bindingAttr);
GetMethod(string name, BindingFlags bindingAttr);
GetNestedType(string name, BindingFlags bindingAttr);
GetProperty(string name, BindingFlags bindingAttr);

This was brought up by embedding a cut down version
of System.Reflection.TypeExtensions inside Reflection.Core.

These aren't the final implementations as there's perf
work to do, but these apis are used everywhere
(and assemblies that switch to the new contracts will
be rediverted to them whether want to be or not)
so we need to get them up and running to keep things
flowing.

These apis on System.Type are now functional.

    GetConstructors()
    GetEvents()
    GetFields()
    GetMembers()
    GetMethods()
    GetNestedTypes()
    GetProperties()

    GetConstructors(BindingFlags bindingAttr);
    GetEvents(BindingFlags bindingAttr);
    GetFields(BindingFlags bindingAttr);
    GetMembers(BindingFlags bindingAttr);
    GetMethods(BindingFlags bindingAttr);
    GetNestedTypes(BindingFlags bindingAttr);
    GetProperties(BindingFlags bindingAttr);

    GetEvent(string name);
    GetField(string name);
    GetMember(string name);
    GetMethod(string name);
    GetNestedType(string name);
    GetProperty(string name);

    GetEvent(string name, BindingFlags bindingAttr);
    GetField(string name, BindingFlags bindingAttr);
    GetMember(string name, BindingFlags bindingAttr);
    GetMethod(string name, BindingFlags bindingAttr);
    GetNestedType(string name, BindingFlags bindingAttr);
    GetProperty(string name, BindingFlags bindingAttr);

This was brought up by embedding a cut down version
of System.Reflection.TypeExtensions inside Reflection.Core.

These aren't the final implementations as there's perf
work to do, but these apis are used everywhere
(and assemblies that switch to the new contracts will
be rediverted to them whether want to be or not)
so we need to get them up and running to keep things
flowing.
@ghost
ghost merged commit 26efa4a into dotnet:nmirror Aug 24, 2016
@ghost
ghost deleted the bf branch August 24, 2016 17:08
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant