C# program to demonstrate the use of FullName property

Syntax:

string DirectoryInfo.FullName

Program:

using System;
using System.IO;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main()
        {
            DirectoryInfo d = new DirectoryInfo("mydir");

            Console.WriteLine("FullName of directory:");
            Console.WriteLine(d.FullName);
           
        }
    }
}

Program:

FullName of directory:
C:\Users\Arvind\Documents\Visual Studio 2010\Projects\ihelp\ConsoleApplication1\
ConsoleApplication1\bin\Debug\mydir

Leave a Comment

error: Alert: Content is protected!!