diff --git a/src/ImageSharp/MetaData/Profiles/Exif/ExifProfile.cs b/src/ImageSharp/MetaData/Profiles/Exif/ExifProfile.cs
index 4a73e8a4b..505ea582f 100644
--- a/src/ImageSharp/MetaData/Profiles/Exif/ExifProfile.cs
+++ b/src/ImageSharp/MetaData/Profiles/Exif/ExifProfile.cs
@@ -15,6 +15,11 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Exif
///
public sealed class ExifProfile
{
+ ///
+ /// The EXIF ID code: ASCII "Exif" followed by two zeros.
+ ///
+ private static readonly byte[] ExifCode = { 69, 120, 105, 102, 0, 0 };
+
///
/// The byte array to read the EXIF profile from.
///
@@ -270,12 +275,10 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Exif
return false;
}
- // The EXIF ID code: ASCII "Exif" followed by two zeros.
- byte[] exifCode = { 69, 120, 105, 102, 0, 0 };
- int exifLength = exifCode.Length;
- for (int i = 0; i < exifCode.Length; i++)
+ int exifLength = ExifCode.Length;
+ for (int i = 0; i < ExifCode.Length; i++)
{
- if (exifBytes[i] != exifCode[i])
+ if (exifBytes[i] != ExifCode[i])
{
return false;
}