diff --git a/src/Managed/Complex.cs b/src/Managed/Complex.cs
index d433b0b8..c722edb7 100644
--- a/src/Managed/Complex.cs
+++ b/src/Managed/Complex.cs
@@ -26,14 +26,14 @@
// OTHER DEALINGS IN THE SOFTWARE.
//
+using System;
+using System.Runtime.InteropServices;
+using System.Text;
+using System.Text.RegularExpressions;
+using MathNet.Numerics.Properties;
+
namespace MathNet.Numerics
{
- using System;
- using System.Runtime.InteropServices;
- using System.Text;
- using System.Text.RegularExpressions;
- using Properties;
-
///
/// Complex numbers class.
///
@@ -104,12 +104,12 @@ namespace MathNet.Numerics
///
/// The real component of the complex number.
///
- private readonly double real;
+ private readonly double _real;
///
/// The imaginary component of the complex number.
///
- private readonly double imag;
+ private readonly double _imag;
#endregion fields
@@ -123,8 +123,8 @@ namespace MathNet.Numerics
/// The value for the imaginary component.
public Complex(double real, double imaginary)
{
- this.real = real;
- this.imag = imaginary;
+ _real = real;
+ _imag = imaginary;
}
#endregion
@@ -193,7 +193,7 @@ namespace MathNet.Numerics
/// The real component of the complex number.
public double Real
{
- get { return this.real; }
+ get { return _real; }
}
///
@@ -202,7 +202,7 @@ namespace MathNet.Numerics
/// The real imaginary component of the complex number.
public double Imaginary
{
- get { return this.imag; }
+ get { return _imag; }
}
///
@@ -255,7 +255,7 @@ namespace MathNet.Numerics
///
public bool IsInfinity
{
- get { return double.IsInfinity(this.real) || double.IsInfinity(this.imag); }
+ get { return double.IsInfinity(_real) || double.IsInfinity(_imag); }
}
///
@@ -328,7 +328,7 @@ namespace MathNet.Numerics
/// The string representation of this complex number.
public override string ToString()
{
- return this.ToString(null, null);
+ return ToString(null, null);
}
/// A string representation of this complex number.
@@ -339,7 +339,7 @@ namespace MathNet.Numerics
/// A format specification.
public string ToString(string format)
{
- return this.ToString(format, null);
+ return ToString(format, null);
}
/// A string representation of this complex number.
@@ -350,7 +350,7 @@ namespace MathNet.Numerics
/// An IFormatProvider that supplies culture-specific formatting information.
public string ToString(IFormatProvider formatProvider)
{
- return this.ToString(null, formatProvider);
+ return ToString(null, formatProvider);
}
/// A string representation of this complex number.
@@ -364,20 +364,20 @@ namespace MathNet.Numerics
/// An IFormatProvider that supplies culture-specific formatting information.
public string ToString(string format, IFormatProvider formatProvider)
{
- if (this.IsNaN)
+ if (IsNaN)
{
return "NaN";
}
- if (this.IsInfinity)
+ if (IsInfinity)
{
return "Infinity";
}
var ret = new StringBuilder();
- ret.Append(this.real.ToString(format, formatProvider));
- if (this.imag < 0)
+ ret.Append(_real.ToString(format, formatProvider));
+ if (_imag < 0)
{
ret.Append(" ");
}
@@ -386,7 +386,7 @@ namespace MathNet.Numerics
ret.Append(" + ");
}
- ret.Append(this.imag.ToString(format, formatProvider)).Append("i");
+ ret.Append(_imag.ToString(format, formatProvider)).Append("i");
return ret.ToString();
}
@@ -406,7 +406,7 @@ namespace MathNet.Numerics
/// The complex number to compare to with.
public bool Equals(Complex other)
{
- return this.Real == other.Real && this.Imaginary == other.Imaginary;
+ return Real == other.Real && Imaginary == other.Imaginary;
}
/// The hash code for the complex number.
@@ -417,7 +417,7 @@ namespace MathNet.Numerics
///
public override int GetHashCode()
{
- return this.real.GetHashCode() ^ (-this.imag.GetHashCode());
+ return _real.GetHashCode() ^ (-_imag.GetHashCode());
}
///
@@ -431,7 +431,7 @@ namespace MathNet.Numerics
/// The complex number to compare to with.
public override bool Equals(object obj)
{
- return (obj is Complex) && this.Equals((Complex) obj);
+ return (obj is Complex) && Equals((Complex)obj);
}
#endregion
diff --git a/src/Settings.StyleCop b/src/Settings.StyleCop
index 7f55ce6c..57769b93 100644
--- a/src/Settings.StyleCop
+++ b/src/Settings.StyleCop
@@ -1 +1,76 @@
-
\ No newline at end of file
+
+
+
+
+ False
+
+
+
+
+
+
+
+
+ False
+
+
+
+
+ False
+
+
+
+
+ False
+
+
+
+
+ False
+
+
+
+
+ False
+
+
+
+
+ False
+
+
+
+
+ False
+
+
+
+
+ False
+
+
+
+
+
+
+
+
+
+ False
+
+
+
+
+
+
+
+
+
+ False
+
+
+
+
+
+
+
\ No newline at end of file