Capgemini / Cauldron

C# Toolkit
MIT License
76 stars 18 forks source link

Replace linq with old-school implementation for more speed #21

Closed reflection-emit closed 7 years ago

reflection-emit commented 7 years ago

public object CreateInstance(Type type, object[] args)

    {

        var types = args == null || args.Length == 0 ? Type.EmptyTypes : args.Select(x => x?.GetType() ?? null).ToArray();