Skip to content

Commit 952057b

Browse files
committed
Corrected obsolete warning message.
1 parent 59c51c6 commit 952057b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Magick.NET.Core/IMagickImage{TQuantumType}.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public partial interface IMagickImage<TQuantumType> : IMagickImage, IComparable<
5858
/// <param name="geometry">The area to clone.</param>
5959
/// <returns>A clone of the current image.</returns>
6060
/// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
61-
[Obsolete($"This property will be removed in the next major release, use {nameof(CloneArea)} instead.")]
61+
[Obsolete($"This method will be removed in the next major release, use {nameof(CloneArea)} instead.")]
6262
IMagickImage<TQuantumType> Clone(IMagickGeometry geometry);
6363

6464
/// <summary>
@@ -67,7 +67,7 @@ public partial interface IMagickImage<TQuantumType> : IMagickImage, IComparable<
6767
/// <param name="width">The width of the area to clone.</param>
6868
/// <param name="height">The height of the area to clone.</param>
6969
/// <returns>A clone of the current image.</returns>
70-
[Obsolete($"This property will be removed in the next major release, use {nameof(CloneArea)} instead.")]
70+
[Obsolete($"This method will be removed in the next major release, use {nameof(CloneArea)} instead.")]
7171
IMagickImage<TQuantumType> Clone(uint width, uint height);
7272

7373
/// <summary>
@@ -78,7 +78,7 @@ public partial interface IMagickImage<TQuantumType> : IMagickImage, IComparable<
7878
/// <param name="width">The width of the area to clone.</param>
7979
/// <param name="height">The height of the area to clone.</param>
8080
/// <returns>A clone of the current image.</returns>
81-
[Obsolete($"This property will be removed in the next major release, use {nameof(CloneArea)} instead.")]
81+
[Obsolete($"This method will be removed in the next major release, use {nameof(CloneArea)} instead.")]
8282
IMagickImage<TQuantumType> Clone(int x, int y, uint width, uint height);
8383

8484
/// <summary>

src/Magick.NET/MagickImage.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,7 @@ public IMagickImage<QuantumType> CloneAndMutate(Action<IMagickImageCloneMutator<
16371637
/// <param name="geometry">The area to clone.</param>
16381638
/// <returns>A clone of the current image.</returns>
16391639
/// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
1640-
[Obsolete($"This property will be removed in the next major release, use {nameof(CloneArea)} instead.")]
1640+
[Obsolete($"This method will be removed in the next major release, use {nameof(CloneArea)} instead.")]
16411641
public IMagickImage<QuantumType> Clone(IMagickGeometry geometry)
16421642
=> CloneArea(geometry);
16431643

@@ -1647,7 +1647,7 @@ public IMagickImage<QuantumType> Clone(IMagickGeometry geometry)
16471647
/// <param name="width">The width of the area to clone.</param>
16481648
/// <param name="height">The height of the area to clone.</param>
16491649
/// <returns>A clone of the current image.</returns>
1650-
[Obsolete($"This property will be removed in the next major release, use {nameof(CloneArea)} instead.")]
1650+
[Obsolete($"This method will be removed in the next major release, use {nameof(CloneArea)} instead.")]
16511651
public IMagickImage<QuantumType> Clone(uint width, uint height)
16521652
=> CloneArea(new MagickGeometry(width, height));
16531653

@@ -1659,7 +1659,7 @@ public IMagickImage<QuantumType> Clone(uint width, uint height)
16591659
/// <param name="width">The width of the area to clone.</param>
16601660
/// <param name="height">The height of the area to clone.</param>
16611661
/// <returns>A clone of the current image.</returns>
1662-
[Obsolete($"This property will be removed in the next major release, use {nameof(CloneArea)} instead.")]
1662+
[Obsolete($"This method will be removed in the next major release, use {nameof(CloneArea)} instead.")]
16631663
public IMagickImage<QuantumType> Clone(int x, int y, uint width, uint height)
16641664
=> CloneArea(new MagickGeometry(x, y, width, height));
16651665

0 commit comments

Comments
 (0)