Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="StrongName" /> class.
        /// </summary>
        /// <param name="blob">The BLOB.</param>
        /// <param name="name">The name.</param>
        /// <param name="version">The version.</param>
        /// <exception cref="ArgumentNullException">name
        /// or
        /// blob
        /// or
        /// version</exception>
        public StrongName(StrongNamePublicKeyBlob blob, string name, Version version)
        {
            if (string.IsNullOrWhiteSpace(name))
            {
                throw new ArgumentNullException("name");
            }

            PublicKey = blob ?? throw new ArgumentNullException("blob");
            Name      = name;
            Version   = version ?? throw new ArgumentNullException("version");
        }
Exemple #2
0
 /// <summary>
 /// Equalses the specified BLOB.
 /// </summary>
 /// <param name="blob">The BLOB.</param>
 /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
 internal bool Equals(StrongNamePublicKeyBlob blob)
 {
     if (blob == null)
     {
         return(false);
     }
     else
     {
         return(CompareArrays(this.PublicKey, blob.PublicKey));
     }
 }