This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -78,8 +78,11 @@ namespace DynamORM.Helpers.Dynamics
|
||||
{
|
||||
try
|
||||
{
|
||||
// TODO: MAke this work... open instance delegate would be nice
|
||||
return Delegate.CreateDelegate(Expression.GetDelegateType(v.GetParameters().Select(t => t.ParameterType).Concat(new[] { v.ReflectedType }).ToArray()), _proxy, v.Name);
|
||||
Type type = v.ReturnType == typeof(void) ?
|
||||
Expression.GetActionType(v.GetParameters().Select(t => t.ParameterType).ToArray()) :
|
||||
Expression.GetDelegateType(v.GetParameters().Select(t => t.ParameterType).Concat(new[] { v.ReturnType }).ToArray());
|
||||
|
||||
return Delegate.CreateDelegate(type, _proxy, v.Name);
|
||||
}
|
||||
catch (ArgumentException)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user