Skip to content

Instantly share code, notes, and snippets.

@shinriyo
Last active December 29, 2015 01:59
Show Gist options
  • Save shinriyo/7597250 to your computer and use it in GitHub Desktop.
Save shinriyo/7597250 to your computer and use it in GitHub Desktop.
FileInfo 拡張子なしで名前取得
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