# < Summary

Information

Class: | Renci.SshNet.Security.Org.BouncyCastle.Math.Field.PrimeField
Assembly: | Renci.SshNet
File(s): | \home\appveyor\projects\ssh-net\src\Renci.SshNet\Security\BouncyCastle\math\field\PrimeField.cs

Line coverage
26%

Covered lines: | 5
Uncovered lines: | 14
Coverable lines: | 19
Total lines: | 42
Line coverage: | 26.3%

Branch coverage
0%

Covered branches: | 0
Total branches: | 4
Branch coverage: | 0%

Method coverage

Feature is only available for sponsors

Upgrade to PRO version

# Metrics

Method | Branch coverage | Cyclomatic complexity | Line coverage
--- | --- | --- | ---
.ctor(...) | 100% | 1 | 100%
get_Characteristic() | 100% | 1 | 0%
get_Dimension() | 100% | 1 | 100%
Equals(...) | 0% | 4 | 0%
GetHashCode() | 100% | 1 | 0%

# File(s)

## \home\appveyor\projects\ssh-net\src\Renci.SshNet\Security\BouncyCastle\math\field\PrimeField.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `namespace Renci.SshNet.Security.Org.BouncyCastle.Math.Field`
|  | `2` |  | `{`
|  | `3` |  | `internal class PrimeField`
|  | `4` |  | `: IFiniteField`
|  | `5` |  | `{`
|  | `6` |  | `protected readonly BigInteger characteristic;`
|  | `7` |  | ``
| 3 | `8` |  | `internal PrimeField(BigInteger characteristic)`
| 3 | `9` |  | `{`
| 3 | `10` |  | `this.characteristic = characteristic;`
| 3 | `11` |  | `}`
|  | `12` |  | ``
|  | `13` |  | `public virtual BigInteger Characteristic`
|  | `14` |  | `{`
| 0 | `15` |  | `get { return characteristic; }`
|  | `16` |  | `}`
|  | `17` |  | ``
|  | `18` |  | `public virtual int Dimension`
|  | `19` |  | `{`
| 27 | `20` |  | `get { return 1; }`
|  | `21` |  | `}`
|  | `22` |  | ``
|  | `23` |  | `public override bool Equals(object obj)`
| 0 | `24` |  | `{`
| 0 | `25` |  | `if (this == obj)`
| 0 | `26` |  | `{`
| 0 | `27` |  | `return true;`
|  | `28` |  | `}`
| 0 | `29` |  | `PrimeField other = obj as PrimeField;`
| 0 | `30` |  | `if (null == other)`
| 0 | `31` |  | `{`
| 0 | `32` |  | `return false;`
|  | `33` |  | `}`
| 0 | `34` |  | `return characteristic.Equals(other.characteristic);`
| 0 | `35` |  | `}`
|  | `36` |  | ``
|  | `37` |  | `public override int GetHashCode()`
| 0 | `38` |  | `{`
| 0 | `39` |  | `return characteristic.GetHashCode();`
| 0 | `40` |  | `}`
|  | `41` |  | `}`
|  | `42` |  | `}`

# Methods/Properties

.ctor(Renci.SshNet.Security.Org.BouncyCastle.Math.BigInteger)
get_Characteristic()
get_Dimension()
Equals(System.Object)
GetHashCode()