Thinktecture.Tools.Web.Services.CodeGeneration.PascalCaseConverter.Decorate C# (CSharp) Method

Decorate() public method

public Decorate ( ExtendedCodeDomTree code, CustomCodeGenerationOptions options ) : void
code ExtendedCodeDomTree
options CustomCodeGenerationOptions
return void
        public void Decorate(ExtendedCodeDomTree code, CustomCodeGenerationOptions options)
        {
            // Notify if we get any null references.
            Debug.Assert(code != null, "code parameter could not be null.");
            Debug.Assert(options != null, "options parameter could not be null.");

            // We apply this decorator only if this option is turned on.
            if (options.AdjustCasing)
            {
                // Initialize the state.
                this.code = code;
                this.options = options;
                DecorateInternal();
            }
        }