C# DirectoryInfo Extension
Description
DirectoryInfo Extension
Gets the string representing
the extension part of the file.
Syntax
DirectoryInfo.Extension
has the following syntax.
public string Extension { get; }
Example
Gets the string representing the extension part of the file.
//from w w w. j a v a 2s .c o m
using System;
using System.IO;
class Class1
{
public static void Main(){
DirectoryInfo target = new DirectoryInfo("c:/abc");
Console.WriteLine(target.Extension);
}
}