Fixed code analyzer issues

This commit is contained in:
mort5161 2015-03-20 15:37:49 -07:00
parent 8dc9068498
commit 376014e385
3 changed files with 3 additions and 3 deletions

View file

@ -61,6 +61,7 @@ namespace NmeaParser.Nmea.Gps
/// <summary>
/// RMS value of the pseudorange residuals; includes carrier phase residuals during periods of RTK (float) and RTK (fixed) processing
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Rms")]
public double Rms { get; private set; }
/// <summary>

View file

@ -66,7 +66,7 @@ namespace NmeaParser
/// <summary>
/// Gets the name of the nmea file this device is using.
/// </summary>
public string Filename
public string FileName
{
get { return m_filename; }
}

View file

@ -72,7 +72,7 @@ namespace SampleApp.WinDesktop
currentDevice.MessageReceived += device_MessageReceived;
var _ = currentDevice.OpenAsync();
if (device is NmeaParser.NmeaFileDevice)
currentDeviceInfo.Text = string.Format("NmeaFileDevice( file={0} )", ((NmeaParser.NmeaFileDevice)device).Filename);
currentDeviceInfo.Text = string.Format("NmeaFileDevice( file={0} )", ((NmeaParser.NmeaFileDevice)device).FileName);
else if (device is NmeaParser.SerialPortDevice)
{
currentDeviceInfo.Text = string.Format("SerialPortDevice( port={0}, baud={1} )",
@ -197,7 +197,6 @@ namespace SampleApp.WinDesktop
}
if (success)
{
port.Dispose();
return new System.IO.Ports.SerialPort(portName, baud);
}
}