Home
C-Sharp
Interview FAQs

Show

FAQs of level

It is a process which executes independently.
using the statement - System.Diagnostics.Process.Start("IExplore.exe",http://www.faqpanel.com);
System.Collections.ArrayList listA = new System.Collections.ArrayList();
System.Collections.ArrayList listB = new System.Collections.ArrayList();

listA.Add("1");
listA.Add("2");

listB.Add("3");
listB.Add("4");

listA.AddRange(listB);

Try this:
string path = System.Reflection.Assembly.GetExecutingAssembly().Location.ToString();

It will return the full path and the name of the executable.

To get only the full path, you can use:
string pathOnly = Application.StartupPath.ToString();

This looks at all files ending in ".cs"

using System;
using System.IO;

public class Temp
{
public static void Main(string[] args) {
DirectoryInfo di = new DirectoryInfo(".");
foreach(FileInfo fi in di.GetFiles("*.cs")) {
Console.WriteLine("Looking at file \""+fi.FullName+"\""); }
}
}

Type safety is about increasing the opportunities for the compiler to detect your coding errors. If you use interfaces instead of delegates the compiler will have more opportunities to detect your coding errors.
PreviousDisplaying 2 of 25Next
Need Help? Contact Us.

Log in

*
*

Forgot password?

*

New User

*
*
*
*