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(); } }
public static void CreateHeuristicCode(OperatorHints.CreateOperatorCodeEventArgs args) { var clrTypesResolver = new ClrTypesResolver(typeof(Length).Assembly); HeuristicOperatorGenerator.TryCreate(args, clrTypesResolver); }