AssemblyIdentityMatch Method |
[This is preliminary documentation and is subject to change.]
Namespace: NerdyDuck.CodedExceptions.Configuration
Value | Description |
---|---|
Less than zero | The assembly does not match the identity, or assembly is . |
Zero | The current AssemblyIdentity is a "catch-all" where all property values are set to , so every Assembly matches. |
More than zero | The assembly matches the identity. The higher the value, the stronger the match. |
Value | Description |
---|---|
-4 | The assembly's public key does not match the identity. |
-3 | The assembly culture does not match the identity. |
-2 | The assembly version does not match the identity. |
-1 | The assembly name does not match the identity, or assembly is . |
0 | The current AssemblyIdentity is a "catch-all" where all property values are set to , so every Assembly matches. |
1 | The assembly's public key matches the identity. |
2 | The assembly culture matches the identity. |
4 | The assembly version matches the identity. |
8 | The assembly name matches the identity. |
Positive values are combined if multiple properties match, to detect the strongest match when comparing multiple AssemblyIdentitys to an Assembly, while a single mismatch results in the negative return value according to the mismatched property. The different properties of the AssemblyIdentity have different weights, so that a match via e.g. the assembly name will always be higher ranked than the match via the assembly version. Only properties of the AssemblyIdentity that are not are compared to the assembly.