Exemple #1
0
        static string GetPublicKeyToken(Assembly assembly, AssemblyName assemblyName)
        {
            string publicKeyToken = null;

            if (assembly.GlobalAssemblyCache)
            {
                byte[] token       = assemblyName.GetPublicKeyToken();
                string tokenString = new SoapHexBinary(token).ToString();
                publicKeyToken = tokenString.ToLowerInvariant();
            }
            return(publicKeyToken);
        }