private StrongName GenerateStrongNameEvidence()
        {
            byte[] array    = null;
            string name     = null;
            ushort major    = 0;
            ushort minor    = 0;
            ushort build    = 0;
            ushort revision = 0;

            AssemblyEvidenceFactory.GetStrongNameInformation(this.m_targetAssembly.GetNativeHandle(), JitHelpers.GetObjectHandleOnStack <byte[]>(ref array), JitHelpers.GetStringHandleOnStack(ref name), out major, out minor, out build, out revision);
            if (array == null || array.Length == 0)
            {
                return(null);
            }
            return(new StrongName(new StrongNamePublicKeyBlob(array), name, new Version((int)major, (int)minor, (int)build, (int)revision), this.m_targetAssembly));
        }
Ejemplo n.º 2
0
        private StrongName GenerateStrongNameEvidence()
        {
            byte[] o            = (byte[])null;
            string s            = (string)null;
            ushort majorVersion = 0;
            ushort minorVersion = 0;
            ushort build        = 0;
            ushort revision     = 0;

            AssemblyEvidenceFactory.GetStrongNameInformation(this.m_targetAssembly.GetNativeHandle(), JitHelpers.GetObjectHandleOnStack <byte[]>(ref o), JitHelpers.GetStringHandleOnStack(ref s), out majorVersion, out minorVersion, out build, out revision);
            if (o == null || o.Length == 0)
            {
                return((StrongName)null);
            }
            return(new StrongName(new StrongNamePublicKeyBlob(o), s, new Version((int)majorVersion, (int)minorVersion, (int)build, (int)revision), (Assembly)this.m_targetAssembly));
        }