示例#1
0
        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);
        }
示例#2
0
 protected virtual ResourceBuildResult GetResource()
 {
     return(ResourceBuildResult.FindResource(this.SourceUrl));
 }