protected override void Render(HtmlTextWriter writer) { ResourceBuildResult result = this.GetResource(); result.Attributes = this.attributes; result.IsDebug = this.IsDebug; if (result is ScriptBuildResult) { ((ScriptBuildResult)result).SuppressLocalization = this.SuppressLocalization; ((ScriptBuildResult)result).UsePageCulture = this.UsePageCulture; } else if (result is CssBuildResult) { ((CssBuildResult)result).StyleFormat = this.StyleFormat; } result.Write(writer); }
protected virtual ResourceBuildResult GetResource() { return(ResourceBuildResult.FindResource(this.SourceUrl)); }