Browse Source

Resolved SA1001, SA1004, SA1025 and SA1027.

pull/1/head
dirk 9 years ago
parent
commit
7bdbbb5223
  1. 2
      src/ImageSharp/IO/EndianBitConverter.cs
  2. 5
      src/ImageSharp/Profiles/Exif/ExifTagDescriptionAttribute.cs
  3. 12
      src/ImageSharp/Profiles/Exif/ExifValue.cs
  4. 2
      src/ImageSharp/Profiles/Exif/ExifWriter.cs

2
src/ImageSharp/IO/EndianBitConverter.cs

@ -325,7 +325,7 @@ namespace ImageSharp.IO
} }
#endregion #endregion
#region Decimal conversions #region Decimal conversions
/// <summary> /// <summary>
/// Returns a decimal value converted from sixteen bytes /// Returns a decimal value converted from sixteen bytes
/// at a specified position in a byte array. /// at a specified position in a byte array.

5
src/ImageSharp/Profiles/Exif/ExifTagDescriptionAttribute.cs

@ -6,7 +6,6 @@
namespace ImageSharp namespace ImageSharp
{ {
using System; using System;
using System.Linq;
using System.Reflection; using System.Reflection;
/// <summary> /// <summary>
@ -18,9 +17,9 @@ namespace ImageSharp
private object value; private object value;
private string description; private string description;
///<summary> /// <summary>
/// Initializes a new instance of the ExifTagDescriptionAttribute class. /// Initializes a new instance of the ExifTagDescriptionAttribute class.
///</summary> /// </summary>
/// <param name="value">The value of the exif tag.</param> /// <param name="value">The value of the exif tag.</param>
/// <param name="description">The description for the value of the exif tag.</param> /// <param name="description">The description for the value of the exif tag.</param>
public ExifTagDescriptionAttribute(object value, string description) public ExifTagDescriptionAttribute(object value, string description)

12
src/ImageSharp/Profiles/Exif/ExifValue.cs

@ -103,10 +103,10 @@ namespace ImageSharp
return !Equals(left, right); return !Equals(left, right);
} }
///<summary> /// <summary>
/// Determines whether the specified object is equal to the current exif value. /// Determines whether the specified object is equal to the current exif value.
///</summary> /// </summary>
///<param name="obj">The object to compare this exif value with.</param> /// <param name="obj">The object to compare this exif value with.</param>
public override bool Equals(object obj) public override bool Equals(object obj)
{ {
if (ReferenceEquals(this, obj)) if (ReferenceEquals(this, obj))
@ -117,10 +117,10 @@ namespace ImageSharp
return this.Equals(obj as ExifValue); return this.Equals(obj as ExifValue);
} }
///<summary> /// <summary>
/// Determines whether the specified exif value is equal to the current exif value. /// Determines whether the specified exif value is equal to the current exif value.
///</summary> /// </summary>
///<param name="other">The exif value to compare this exif value with.</param> /// <param name="other">The exif value to compare this exif value with.</param>
public bool Equals(ExifValue other) public bool Equals(ExifValue other)
{ {
if (ReferenceEquals(other, null)) if (ReferenceEquals(other, null))

2
src/ImageSharp/Profiles/Exif/ExifWriter.cs

@ -16,7 +16,7 @@ namespace ImageSharp
{ {
ExifTag.ImageWidth, ExifTag.ImageLength, ExifTag.BitsPerSample, ExifTag.Compression, ExifTag.ImageWidth, ExifTag.ImageLength, ExifTag.BitsPerSample, ExifTag.Compression,
ExifTag.PhotometricInterpretation, ExifTag.Thresholding, ExifTag.CellWidth, ExifTag.PhotometricInterpretation, ExifTag.Thresholding, ExifTag.CellWidth,
ExifTag.CellLength, ExifTag.FillOrder,ExifTag.ImageDescription, ExifTag.Make, ExifTag.CellLength, ExifTag.FillOrder, ExifTag.ImageDescription, ExifTag.Make,
ExifTag.Model, ExifTag.StripOffsets, ExifTag.Orientation, ExifTag.SamplesPerPixel, ExifTag.Model, ExifTag.StripOffsets, ExifTag.Orientation, ExifTag.SamplesPerPixel,
ExifTag.RowsPerStrip, ExifTag.StripByteCounts, ExifTag.MinSampleValue, ExifTag.RowsPerStrip, ExifTag.StripByteCounts, ExifTag.MinSampleValue,
ExifTag.MaxSampleValue, ExifTag.XResolution, ExifTag.YResolution, ExifTag.MaxSampleValue, ExifTag.XResolution, ExifTag.YResolution,

Loading…
Cancel
Save