Пример #1
0
        public OperatorCodeBuilderInput GetBuilder(OperatorParamsBase input)
        {
            var h = CreateOperatorCode;

            if (h is null)
            {
                return(null);
            }
            var args = new CreateOperatorCodeEventArgs
            {
                Input  = input,
                Result = new OperatorCodeBuilderInput(input)
            };

            h(this, args);
            if (args.Handled)
            {
                return(args.Result);
            }
            var ic = (input as OperatorParams)?.OperatorHints?.ImplementingClass;

            if (!string.IsNullOrEmpty(ic))
            {
                Console.WriteLine("Class " + ic + " need to be changed in order to support " + input.DebugIs);
            }
            return(null);
        }
 public OperatorCodeBuilderInput(OperatorParamsBase operatorParameters)
 {
     OperatorParameters = operatorParameters;
 }