You've already forked linux-packaging-mono
Imported Upstream version 5.2.0.175
Former-commit-id: bb0468d0f257ff100aa895eb5fe583fb5dfbf900
This commit is contained in:
parent
4bdbaf4a88
commit
966bba02bb
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user