Пример #1
0
 /// <summary>
 /// Initializes a new instance of the CsLanguageService class.
 /// </summary>
 /// <param name="service">Optional service which which influences the code model output.</param>
 public CsLanguageService(ICSharpCodeModelService service)
 {
     Param.Ignore(service);
     this.RegisterServices(new ICSharpCodeModelService[] { service });
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the CsLanguageService class.
 /// </summary>
 /// <param name="service">Optional service which which influences the code model output.</param>
 public CsLanguageService(ICSharpCodeModelService service)
 {
     Param.Ignore(service);
     this.RegisterServices(new ICSharpCodeModelService[] { service });
 }
Пример #3
0
        /// <summary>
        /// Initializes a new instance of the CsLanguageService class.
        /// </summary>
        /// <param name="preprocessorDefinitions">Optional preprocessor definitions to be applied when parsing source code.</param>
        /// <param name="service">Optional service which which influences the code model output.</param>
        public CsLanguageService(IEnumerable<PreprocessorDefinition> preprocessorDefinitions, ICSharpCodeModelService service)
            : this(preprocessorDefinitions)
        {
            Param.Ignore(preprocessorDefinitions);
            Param.Ignore(service);

            this.RegisterServices(new ICSharpCodeModelService[] { service });
        }
Пример #4
0
        /// <summary>
        /// Initializes a new instance of the CsLanguageService class.
        /// </summary>
        /// <param name="preprocessorDefinitions">Optional preprocessor definitions to be applied when parsing source code.</param>
        /// <param name="service">Optional service which which influences the code model output.</param>
        public CsLanguageService(IEnumerable <PreprocessorDefinition> preprocessorDefinitions, ICSharpCodeModelService service)
            : this(preprocessorDefinitions)
        {
            Param.Ignore(preprocessorDefinitions);
            Param.Ignore(service);

            this.RegisterServices(new ICSharpCodeModelService[] { service });
        }