Пример #1
0
        private void InitializeDefaultSettings()
        {
            Settings            = new LanguageProviderSettings();
            Settings.References = new List <string>
            {
                "system.dll",
                "system.xml.dll",
                "system.data.dll",
                "system.security.dll",
                "system.drawing.dll",
                "system.deployment.dll",
                "system.windows.forms.dll",
                "system.data.linq.dll",
                "system.core.dll",
                "microsoft.csharp.dll",
            };

            Settings.Imports = new List <string>
            {
                "using System;",
                "using System.Collections.Generic;",
                "using System.ComponentModel;",
                "using System.Data;",
                "using System.Drawing;",
                "using System.Text;",
                "using System.Windows.Forms;",
                "using System.Reflection;",
                "using System.CodeDom.Compiler;",
                "using Microsoft.CSharp;",
                "using System.IO;",
                "using System.Xml;",
                "using System.Globalization;",
                "using System.Collections;",
                "using System.Security;",
                "using System.Threading;",
                "using System.Timers;",
                "using System.Diagnostics;",
                "using System.Net;",
                "using System.Linq;",
                "using System.Text.RegularExpressions;",
            };
            Settings.ProviderOptions = new Dictionary <string, string> {
                { "CompilerVersion", "v4.0" }
            };
        }
        private void InitializeDefaultSettings()
        {
            Settings            = new LanguageProviderSettings();
            Settings.References = new List <string>
            {
                "system.dll",
                "system.xml.dll",
                "system.data.dll",
                "system.security.dll",
                "system.drawing.dll",
                "system.deployment.dll",
                "system.windows.forms.dll",
                "system.data.linq.dll",
                "system.core.dll",
            };

            Settings.Imports = new List <string>
            {
                "Imports Microsoft.VisualBasic",
                "Imports System",
                "Imports System.Collections.Generic",
                "Imports System.ComponentModel",
                "Imports System.Data",
                "Imports System.Drawing",
                "Imports System.Text",
                "Imports System.Windows.Forms",
                "Imports System.Reflection",
                "Imports System.CodeDom.Compiler",
                "Imports System.IO",
                "Imports System.Xml",
                "Imports System.Globalization",
                "Imports System.Collections",
                "Imports System.Security",
                "Imports System.Threading",
                "Imports System.Timers",
                "Imports System.Diagnostics",
                "Imports System.Net",
                "Imports System.Linq",
                "Imports System.Text.RegularExpressions",
            };
            Settings.ProviderOptions = new Dictionary <string, string> {
                { "CompilerVersion", "v4.0" }
            };
        }
        private void InitializeDefaultSettings()
        {
            Settings = new LanguageProviderSettings();
            Settings.References = new List<string>
                             {
                                 "system.dll",
                                 "system.xml.dll",
                                 "system.data.dll",
                                 "system.security.dll",
                                 "system.drawing.dll",
                                 "system.deployment.dll",
                                 "system.windows.forms.dll",
                                 "system.data.linq.dll",
                                 "system.core.dll",
                             };

            Settings.Imports = new List<string>
                          {
                              "Imports Microsoft.VisualBasic",
                              "Imports System",
                              "Imports System.Collections.Generic",
                              "Imports System.ComponentModel",
                              "Imports System.Data",
                              "Imports System.Drawing",
                              "Imports System.Text",
                              "Imports System.Windows.Forms",
                              "Imports System.Reflection",
                              "Imports System.CodeDom.Compiler",
                              "Imports System.IO",
                              "Imports System.Xml",
                              "Imports System.Globalization",
                              "Imports System.Collections",
                              "Imports System.Security",
                              "Imports System.Threading",
                              "Imports System.Timers",
                              "Imports System.Diagnostics",
                              "Imports System.Net",
                              "Imports System.Linq",
                              "Imports System.Text.RegularExpressions",
                          };
            Settings.ProviderOptions = new Dictionary<string, string> { { "CompilerVersion", "v4.0" } };
        }