Reworked function handling, support for type checking internal CSharp functions

This commit is contained in:
2018-11-30 15:28:36 +01:00
parent 81a6b05b26
commit f08d1c2541
23 changed files with 271 additions and 135 deletions

View File

@@ -6,7 +6,7 @@ namespace Upsilon.BaseTypes.UserData
{
public class UserDataMethod
{
private class UserDataMethodPart
public class UserDataMethodPart
{
public UserDataMethodPart(MethodInfo method)
{
@@ -18,7 +18,7 @@ namespace Upsilon.BaseTypes.UserData
public UserDataMethodParameter[] Parameters { get; }
}
private struct UserDataMethodParameter
public struct UserDataMethodParameter
{
public UserDataMethodParameter(ParameterInfo info)
{
@@ -51,6 +51,11 @@ namespace Upsilon.BaseTypes.UserData
MethodParts.Add(part);
}
public List<UserDataMethodPart> GetMethods()
{
return MethodParts;
}
public MethodInfo GetMethod(System.Type[] parameterTypes)
{
foreach (var userDataMethodPart in MethodParts)