Beispiel #1
0
 public AssemblyNameReference(string name, Version version)
 {
     Mixin.CheckName(name);
     this.name      = name;
     this.version   = Mixin.CheckVersion(version);
     hash_algorithm = AssemblyHashAlgorithm.None;
     token          = new MetadataToken(TokenType.AssemblyRef);
 }
Beispiel #2
0
        public AssemblyNameReference(string name, Version version)
        {
            if (name == null)
            {
                throw new ArgumentNullException("name");
            }

            this.name           = name;
            this.version        = Mixin.CheckVersion(version);
            this.hash_algorithm = AssemblyHashAlgorithm.None;
            this.token          = new MetadataToken(TokenType.AssemblyRef);
        }