コード例 #1
0
        public static void TryCreate(OperatorHints.CreateOperatorCodeEventArgs args, ClrTypesResolver resolver)
        {
            var instance = new HeuristicOperatorGenerator(args, resolver);

            try
            {
                instance.TryCreateInternal();
            }
            catch
            {
                args.Result.SetComment();
                args.Result.Comment += " Exception !!!";
                args.SetHandled();
            }
        }
コード例 #2
0
        public static void CreateHeuristicCode(OperatorHints.CreateOperatorCodeEventArgs args)
        {
            var clrTypesResolver = new ClrTypesResolver(typeof(Length).Assembly);

            HeuristicOperatorGenerator.TryCreate(args, clrTypesResolver);
        }