コード例 #1
0
 public bool Load()
 {
     return(MetaUtility.GetAssemblyData(
                FilePath, ref cliHeaderFlag, ref cliHeaderFlagOffset,
                ref strongNameSignatureOffset, ref publicKeyIndexOffset,
                ref publicKeyOffset, ref assemblyFlag, ref assemblyFlagOffset,
                ref compiledRuntimeVersion, ref assemblyReferences, ref blobIndexSize,
                getSigOnly: true));
 }
コード例 #2
0
        public bool RemoveSignature()
        {
            if (!MetaUtility.IsAssemblyStrongSigned(cliHeaderFlag))
            {
                return(false);
            }

            return(MetaUtility.PatchAssemblyStrongSigning(
                       FilePath, cliHeaderFlag, cliHeaderFlagOffset, strongNameSignatureOffset,
                       publicKeyIndexOffset, assemblyFlag, assemblyFlagOffset, blobIndexSize,
                       removePublicKey: false));
        }