Last active
December 29, 2015 01:59
-
-
Save shinriyo/7597250 to your computer and use it in GitHub Desktop.
FileInfo 拡張子なしで名前取得
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.IO; | |
public static class CSFileInfo | |
{ | |
public static string GetFileNameWithoutExtension (this FileInfo fileInfo) | |
{ | |
return System.IO.Path.GetFileNameWithoutExtension (fileInfo.Name); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment