StackStream.Executor.Executor C# (CSharp) Method

Executor() static private method

static private Executor ( ) : System
return System
        static Executor()
        {
            var methods = typeof(Executor).Assembly.GetTypes().SelectMany(a =>
                a.GetMethods(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static)
                 .Where(b => b.GetCustomAttributes(typeof(FunctionAttribute), false).Length == 1));

            _GlobalMethods = methods.ToDictionary(a => ((FunctionAttribute)a.GetCustomAttributes(typeof(FunctionAttribute), false).First()).Name, a => (IFunction) new NativeFunction((Method)a.CreateDelegate(typeof(Method))));
        }