示例#1
0
        static public BasicAvaloniaEngine Initialize(AppBuilder builder)
        {
            INSTANCE = new BasicAvaloniaEngine(builder);

            MarkedMethods <BasicAvaloniaEngineInitilizerAttribute> .InvokeFilteredMarkedStaticMethods(INSTANCE);

            return(GetInstance());
        }
示例#2
0
        static public T ExecuteEditDistinction <T, P1>(P1 p1)
        {
            return((T)MarkedMethods <ATTRIBUTE_TYPE> .GetFilteredMarkedStaticMethods(
                       Filterer_MethodInfo.CanEffectiveParametersHold <P1>(),

                       Filterer_MethodInfo.CanReturnInto <T>()
                       ).GetFirst().Invoke(null, p1));
        }
示例#3
0
        static public void ExecuteNoReturnEditDistinction <P1>(P1 p1)
        {
            MarkedMethods <ATTRIBUTE_TYPE> .GetFilteredMarkedStaticMethods(
                Filterer_MethodInfo.CanEffectiveParametersHold <P1>(),

                Filterer_MethodInfo.HasNoReturn()
                ).GetFirst().Invoke(null, p1);
        }
示例#4
0
        static public T ExecuteEditDistinction <T, P1, P2, P3, P4, P5, P6, P7, P8, P9>(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6, P7 p7, P8 p8, P9 p9)
        {
            return((T)MarkedMethods <ATTRIBUTE_TYPE> .GetFilteredMarkedStaticMethods(
                       Filterer_MethodInfo.CanEffectiveParametersHold <P1, P2, P3, P4, P5, P6, P7, P8, P9>(),

                       Filterer_MethodInfo.CanReturnInto <T>()
                       ).GetFirst().Invoke(null, p1, p2, p3, p4, p5, p6, p7, p8, p9));
        }
示例#5
0
        static public void ExecuteNoReturnEditDistinction <P1, P2, P3, P4, P5, P6, P7, P8>(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6, P7 p7, P8 p8)
        {
            MarkedMethods <ATTRIBUTE_TYPE> .GetFilteredMarkedStaticMethods(
                Filterer_MethodInfo.CanEffectiveParametersHold <P1, P2, P3, P4, P5, P6, P7, P8>(),

                Filterer_MethodInfo.HasNoReturn()
                ).GetFirst().Invoke(null, p1, p2, p3, p4, p5, p6, p7, p8);
        }
示例#6
0
 static private void Initialize()
 {
     MarkedMethods <EditorInitializerAttribute>
     .GetFilteredMarkedStaticMethods(
         Filterer_MethodInfo.HasNoEffectiveParameters()
         ).ProcessSandboxed(
         m => m.Invoke(null, Empty.Array <object>()),
         e => Debug.LogException(e)
         );
 }
示例#7
0
 private TyonTypeHandler_Deconstructable()
 {
     deconstruction_invokers = new OperationCache <BasicConversionInvoker, Type>(
         "deconstruction_invokers",
         t => MarkedMethods <DefinitionDeconstructionAttribute>
         .GetFilteredMarkedStaticMethods(Filterer_MethodInfo.CanEffectiveParametersHold(t))
         .GetFirst()
         .IfNotNull(m => m.GetBasicConversionInvoker())
         );
 }
示例#8
0
 public ILValue GetILValue()
 {
     return(MarkedMethods <MExpFunctionAttribute> .GetFilteredMarkedStaticMethods(
                Filterer_MethodInfo.IsNamed(GetId())
                )
            .GetFirst()
            .GetStaticILMethodInvokation(
                GetMExpExpressions().Convert(e => e.GetILValue())
                ));
 }
示例#9
0
        static private void GenerateCode()
        {
            REGENERATION_COUNT = 0;

            MarkedMethods <CodeGeneratorAttribute>
            .GetFilteredMarkedStaticMethods(
                Filterer_MethodInfo.HasNoEffectiveParameters()
                ).ProcessSandboxed(
                m => m.Invoke(null, Empty.Array <object>()),
                e => Debug.LogException(e)
                );

            if (REGENERATION_COUNT >= 1)
            {
                AssetDatabase.Refresh();
            }
        }