Imported Upstream version 5.2.0.175

Former-commit-id: bb0468d0f257ff100aa895eb5fe583fb5dfbf900
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-06-07 13:16:24 +00:00
parent 4bdbaf4a88
commit 966bba02bb
8776 changed files with 346420 additions and 149650 deletions

View File

@@ -109,7 +109,6 @@ namespace Mono.Cecil {
byte [] HashPublicKey ()
{
#if !PCL
HashAlgorithm algorithm;
switch (hash_algorithm) {
@@ -124,12 +123,6 @@ namespace Mono.Cecil {
using (algorithm)
return algorithm.ComputeHash (public_key);
#else
if (hash_algorithm != AssemblyHashAlgorithm.SHA1)
throw new NotSupportedException ();
return new SHA1Managed ().ComputeHash (public_key);
#endif
}
public virtual MetadataScopeType MetadataScopeType {
@@ -238,8 +231,7 @@ namespace Mono.Cecil {
public AssemblyNameReference (string name, Version version)
{
if (name == null)
throw new ArgumentNullException ("name");
Mixin.CheckName (name);
this.name = name;
this.version = Mixin.CheckVersion (version);