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();
}
}