Last active
February 11, 2020 22:48
-
-
Save ohlawdie/43ecd57551679a6db5446442274660ea to your computer and use it in GitHub Desktop.
MethodInfo #reflection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public override MethodInfo[] GetMethods(BindingFlags bindingAttr) | |
| { | |
| List<FlexMethodInfo> methods = new List<FlexMethodInfo>(); | |
| if (typeName == "Product") | |
| { | |
| methods.Add(new FlexMethodInfo("Concatenate", typeName)); | |
| methods.Add(new FlexMethFlexMethodInfo("Register", typeName)); | |
| return methods.ToArray(); | |
| } | |
| return new MethodInfo[0]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment