Update Project
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using ModestTree;
|
||||
|
||||
namespace Zenject
|
||||
{
|
||||
public static class ValidationUtil
|
||||
{
|
||||
// This method can be used during validation for cases where we need to pass arguments
|
||||
public static List<TypeValuePair> CreateDefaultArgs(params Type[] argTypes)
|
||||
{
|
||||
return argTypes.Select(x => new TypeValuePair(x, x.GetDefaultValue())).ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user