Removed .net 6 only code

This commit is contained in:
Darth Affe 2024-03-25 00:47:13 +01:00
parent a1576994a7
commit d91132fbea

View File

@ -216,13 +216,8 @@ public sealed class Image<TColor> : IImage
/// <inheritdoc />
public int Length => _length;
#if NET7_0_OR_GREATER
/// <inheritdoc />
public int SizeInBytes => Length * TColor.ColorFormat.BytesPerPixel;
#else
/// <inheritdoc />
public int SizeInBytes => Length * default(TColor).Net6ColorFormat.BytesPerPixel;
#endif
#endregion
@ -359,13 +354,8 @@ public sealed class Image<TColor> : IImage
/// <inheritdoc />
public int Length => _length;
#if NET7_0_OR_GREATER
/// <inheritdoc />
public int SizeInBytes => Length * TColor.ColorFormat.BytesPerPixel;
#else
/// <inheritdoc />
public int SizeInBytes => Length * default(TColor).Net6ColorFormat.BytesPerPixel;
#endif
#endregion