C# code snippets

Jó és hasznos, használjátok 🙂

Advertisements

One Response to C# code snippets

  1. dragon says:

    A kedden felmerült egyik probléma két megoldása:
    (parancssori paraméterek lekérdezése)

    public static int Main( string[] cmdLine )
    {
    Console.WriteLine(“Command-line strings are:”);
    foreach( string s in cmdLine )
    Console.WriteLine(s);
    return 0;
    }

    public static int Main( string[] cmdLine )
    {
    // Ignore the cmdLine passed in above….
    Console.WriteLine(“Command-line is: {0}”,
    System.Environment.CommandLine);
    return 0;
    }

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: