Exemple #1
0
		static void ApplyCodeGenerationProperties(CodeGenerator generator)
		{
			CodeGeneratorOptions options = generator.Options;
			System.CodeDom.Compiler.CodeGeneratorOptions cdo = new CodeDOMGeneratorUtility().CreateCodeGeneratorOptions;
			
			options.EmptyLinesBetweenMembers = cdo.BlankLinesBetweenMembers;
			options.BracesOnSameLine = CodeGenerationProperties.Get("StartBlockOnSameLine", true);;
			options.IndentString = cdo.IndentString;
		}
		static void ApplyCodeGenerationPropertiesToNRefactory()
		{
			Properties p = CodeGenerationProperties;
			LanguageProperties.CSharp.CodeGenerator.Options.EmptyLinesBetweenMembers = p.Get("BlankLinesBetweenMembers", true);
			LanguageProperties.CSharp.CodeGenerator.Options.BracesOnSameLine = p.Get("StartBlockOnSameLine", true);
			
			System.CodeDom.Compiler.CodeGeneratorOptions cdo = new CodeDOMGeneratorUtility().CreateCodeGeneratorOptions;
			LanguageProperties.CSharp.CodeGenerator.Options.IndentString = cdo.IndentString;
		}
        static void ApplyCodeGenerationProperties(CodeGenerator generator)
        {
            CodeGeneratorOptions options = generator.Options;

            System.CodeDom.Compiler.CodeGeneratorOptions cdo = new CodeDOMGeneratorUtility().CreateCodeGeneratorOptions;

            options.EmptyLinesBetweenMembers = cdo.BlankLinesBetweenMembers;
            options.BracesOnSameLine         = CodeGenerationProperties.Get("StartBlockOnSameLine", true);;
            options.IndentString             = cdo.IndentString;
        }
        static void ApplyCodeGenerationPropertiesToNRefactory()
        {
            Properties p = CodeGenerationProperties;

            LanguageProperties.CSharp.CodeGenerator.Options.EmptyLinesBetweenMembers = p.Get("BlankLinesBetweenMembers", true);
            LanguageProperties.CSharp.CodeGenerator.Options.BracesOnSameLine         = p.Get("StartBlockOnSameLine", true);

            System.CodeDom.Compiler.CodeGeneratorOptions cdo = new CodeDOMGeneratorUtility().CreateCodeGeneratorOptions;
            LanguageProperties.CSharp.CodeGenerator.Options.IndentString = cdo.IndentString;
        }