diff --git a/src/ImageSharp/Common/Helpers/Guard.cs b/src/ImageSharp/Common/Helpers/Guard.cs
index b67512525a..cf307e9365 100644
--- a/src/ImageSharp/Common/Helpers/Guard.cs
+++ b/src/ImageSharp/Common/Helpers/Guard.cs
@@ -65,6 +65,7 @@ namespace ImageSharp
///
/// Verifies, that the enumeration is not null and not empty.
///
+ /// The type of objects in the
/// The target enumeration, which should be checked against being null or empty.
/// Name of the parameter.
/// The error message, if any to add to the exception.
diff --git a/src/ImageSharp/Formats/Jpg/Components/Block8x8F.cs b/src/ImageSharp/Formats/Jpg/Components/Block8x8F.cs
index 33b73cdd11..b1f0fb4581 100644
--- a/src/ImageSharp/Formats/Jpg/Components/Block8x8F.cs
+++ b/src/ImageSharp/Formats/Jpg/Components/Block8x8F.cs
@@ -381,7 +381,7 @@ namespace ImageSharp.Formats
internal void Clear()
{
// The cheapest way to do this in C#:
- this = new Block8x8F();
+ this = default(Block8x8F);
}
///
diff --git a/src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs b/src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs
index 66882e4927..d93a12464d 100644
--- a/src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs
+++ b/src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs
@@ -1533,12 +1533,12 @@ namespace ImageSharp.Formats
// blocks: the third block in the first row has (bx, by) = (2, 0).
int bx, by, blockCount = 0;
- Block8x8F b = new Block8x8F();
- Block8x8F temp1 = new Block8x8F();
- Block8x8F temp2 = new Block8x8F();
+ Block8x8F b = default(Block8x8F);
+ Block8x8F temp1 = default(Block8x8F);
+ Block8x8F temp2 = default(Block8x8F);
// Tricky way to copy contents of the Unzig static variable to the stack:
- StackallocUnzigData unzigOnStack = new StackallocUnzigData();
+ StackallocUnzigData unzigOnStack = default(StackallocUnzigData);
int* unzigPtr = unzigOnStack.Data;
Marshal.Copy(Unzig, 0, (IntPtr)unzigPtr, 64);