mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
Code quality changes
This commit is contained in:
parent
f07ed83722
commit
610f45d082
189 changed files with 4609 additions and 5203 deletions
|
@ -196,12 +196,12 @@ namespace GreenshotPlugin.UnmanagedHelpers {
|
|||
/// </summary>
|
||||
/// <param name="filePath">The path to the file that contains an image.</param>
|
||||
/// <returns>The System.Drawing.Icon representation of the image contained in the specified file.</returns>
|
||||
public static Icon ExtractAssociatedIcon(String filePath) {
|
||||
public static Icon ExtractAssociatedIcon(string filePath) {
|
||||
int index = 0;
|
||||
|
||||
Uri uri;
|
||||
if (filePath == null) {
|
||||
throw new ArgumentException(String.Format("'{0}' is not valid for '{1}'", "null", "filePath"), "filePath");
|
||||
throw new ArgumentException("Null is not valid for filePath", nameof(filePath));
|
||||
}
|
||||
try {
|
||||
uri = new Uri(filePath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue