Exemple #1
0
        /// <summary>
        ///     Парсит текущий JSON контекст
        /// </summary>
        public void CompileContext()
        {
            BSharpConfig config = GetBSharpConfig();
            var          list   = new List <XElement>();

            foreach (string json in _jsonContext)
            {
                list.AddRange(
                    RebuildJsonToBSharpStyle(json)
                    );
            }

            _bSharpCompiler.Initialize(config);
            IBSharpContext compiled = _bSharpCompiler.Compile(list, (IBSharpContext)null);

            _bSharpContext.Merge(compiled);
        }