Reworked function handling, support for type checking internal CSharp functions
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user