BamlLocalization.ResourceGenerator.GetAssemblyModuleLocalName C# (CSharp) Метод

GetAssemblyModuleLocalName() приватный статический Метод

private static GetAssemblyModuleLocalName ( LocBamlOptions options, string targetAssemblyName ) : string
options LocBamlOptions
targetAssemblyName string
Результат string
        private static string GetAssemblyModuleLocalName(LocBamlOptions options, string targetAssemblyName)
        {
            string moduleName;
            if (targetAssemblyName.ToLower(CultureInfo.InvariantCulture).EndsWith(".resources.dll"))
            {
                // we create the satellite assembly name
                moduleName = string.Format(
                    CultureInfo.InvariantCulture,
                    "{0}.{1}.{2}",
                    targetAssemblyName.Substring(0, targetAssemblyName.Length - ".resources.dll".Length),
                    options.CultureInfo.Name,
                    "resources.dll"
                    );
            }
            else
            {
                moduleName = targetAssemblyName;
            }
            return moduleName;
        }