Skip to content

Instantly share code, notes, and snippets.

@ohlawdie
Last active February 11, 2020 22:48
Show Gist options
  • Save ohlawdie/43ecd57551679a6db5446442274660ea to your computer and use it in GitHub Desktop.
Save ohlawdie/43ecd57551679a6db5446442274660ea to your computer and use it in GitHub Desktop.
MethodInfo #reflection
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