/
GeekNerd
/
ServerModelingProject
Обзор
Документация
Войти
/
GeekNerd
/
ServerModelingProject
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Assets/Plugins/Zenject/Source/Util/ValidationUtil.cs
16 строк
452 B
Gorney-Alex
Init
30 май 2026, 19:05
30 май 2026, 19:05
3cdcc49
Код
Авторство
О чём код?
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(); } } }