AjaxControlToolkit.Localization.CreateScriptReference C# (CSharp) Метод

CreateScriptReference() приватный Метод

private CreateScriptReference ( string localeKey, Assembly scriptAssembly ) : System.Web.UI.ScriptReference
localeKey string
scriptAssembly System.Reflection.Assembly
Результат System.Web.UI.ScriptReference
        ScriptReference CreateScriptReference(string localeKey, Assembly scriptAssembly)
        {
            if(ToolkitAssembly == scriptAssembly)
                return new ScriptReference(FormatScriptName(localeKey) + Constants.JsPostfix, ToolkitAssembly.FullName);

            return new ScriptReference(GetCustomScriptName(localeKey) + GetScriptSuffix(), scriptAssembly.FullName);
        }