public static void IfNull(string paramName, object value) { if (ReferenceEquals(value, null)) throw new ArgumentNullException(paramName); }
public ushort[] ToShortArray(MagickGeometry geometry, string mapping) { Throw.IfNull(nameof(geometry), geometry); return(ToShortArray(geometry.X, geometry.Y, geometry.Width, geometry.Height, mapping)); }