public static string GetFileName(string path) { if (path == null) return null; int offset = PathInternal.FindFileNameIndex(path); int count = path.Length - offset; return path.Substring(offset, count); }
public InMemoryFile(string filePath) { Path = new Path(filePath); Name = Path.GetFileName(filePath); NameWithoutExtension = Path.GetFileNameWithoutExtension(filePath); _LastModifiedTimeUtc = null; }