Skip to content

Commit

Permalink
Reverted TnefPropertyTag.IsNamed back to its original logic
Browse files Browse the repository at this point in the history
Static Analysis was wrong.
  • Loading branch information
jstedfast committed Sep 26, 2016
1 parent d613bf5 commit b5f963d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MimeKit/Tnef/TnefPropertyTag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5460,8 +5460,8 @@ public struct TnefPropertyTag
/// </remarks>
public static readonly TnefPropertyTag Ypos = new TnefPropertyTag (TnefPropertyId.Ypos, TnefPropertyType.Long);

//const TnefPropertyId NamedMin = unchecked ((TnefPropertyId) 0x8000);
//const TnefPropertyId NamedMax = unchecked ((TnefPropertyId) 0xFFFE);
const TnefPropertyId NamedMin = unchecked ((TnefPropertyId) 0x8000);
const TnefPropertyId NamedMax = unchecked ((TnefPropertyId) 0xFFFE);
const short MultiValuedFlag = (short) TnefPropertyType.MultiValued;
readonly TnefPropertyType type;
readonly TnefPropertyId id;
Expand Down Expand Up @@ -5496,7 +5496,7 @@ public bool IsMultiValued {
/// </remarks>
/// <value><c>true</c> if the property has a special name; otherwise, <c>false</c>.</value>
public bool IsNamed {
get { return true; }
get { return (int) id >= (int) NamedMin && (int) id <= (int) NamedMax; }
}

/// <summary>
Expand Down

0 comments on commit b5f963d

Please sign in to comment.