Beispiel #1
0
        internal static ISet <Namespace>[] GetEventInvokeArgs(ProjectState state, Type type)
        {
            var p = type.GetMethod("Invoke").GetParameters();

            var args = new ISet <Namespace> [p.Length];

            for (int i = 0; i < p.Length; i++)
            {
                args[i] = state.GetInstance(p[i].ParameterType).SelfSet;
            }
            return(args);
        }
Beispiel #2
0
        internal static ISet<Namespace>[] GetEventInvokeArgs(ProjectState state, Type type)
        {
            var p = type.GetMethod("Invoke").GetParameters();

            var args = new ISet<Namespace>[p.Length];
            for (int i = 0; i < p.Length; i++) {
                args[i] = state.GetInstance(p[i].ParameterType).SelfSet;
            }
            return args;
        }