tagged [arguments]

Endless method arguments of the same type

Endless method arguments of the same type I remember that I have red somewhere that you can create a method that takes endless arguments. The problem is that I don't remember how to do it. I remember ...

3 Jan at 20:24

Console app arguments, how arguments are passed to Main method

Console app arguments, how arguments are passed to Main method This would be question from c# beginner. When I create console application I get Main method with parameter as array string. I do not und...

26 Jan at 10:35

commandline argument parameter limitation

commandline argument parameter limitation Language: C# I have to pass a huge string array (built dynamically) as an argument to run an exe. I am thinking of acheiving it by the below 2 ways. But I am ...

Pass argument to AsyncCallback function?

Pass argument to AsyncCallback function? I'm learning socket programming and I have the following function: and this is how the callback gets set: The problem is I need to pass another argument to OnD...

8 Feb at 11:46

Why can anonymous delegates omit arguments, but lambdas can't?

Why can anonymous delegates omit arguments, but lambdas can't? Just wondered why the discrepancy really. :-/

16 Feb at 16:31

Command Line Parser with mutually exclusive required parameters

Command Line Parser with mutually exclusive required parameters I started to use the [CommandLine Parser Library](http://commandline.codeplex.com) for a tool that will have both a GUI and a command li...

Getting raw (unsplit) command line in .NET

Getting raw (unsplit) command line in .NET In .NET, we can easily access split command line arguments in a string array from the argument of `Main(string[])` or `Environment.GetCommandLineArgs()`. How...

30 May at 18:8

Passing lengthy strings (as an argument) into a console application

Passing lengthy strings (as an argument) into a console application I'm creating a console application in C# to which, at execution, it is passed a bunch of data. Three of them are short strings, such...

Declaring a python function with an array parameters and passing an array argument to the function call?

Declaring a python function with an array parameters and passing an array argument to the function call? I am a complete newbie to python and attempting to pass an array as an argument to a python fun...

12 Aug at 23:19

How do I call a specific Method from a Python Script in C#?

How do I call a specific Method from a Python Script in C#? I'm wondering if there is a possibility to call a specific Method from a Python script over a C# project. I have no code... but my idea is: ...

Downloading MySQL dump from command line

Downloading MySQL dump from command line I am moving away from Linode because I don't have the Linux sysadmin skills necessary; before I complete the transition to a more noob-friendly service, I need...

C# Process Start needs Arguments with double quotes - they disappear

C# Process Start needs Arguments with double quotes - they disappear I'm trying to run a cmd line application from c# using Process.Start(ProcessStartInfo); The problem is, the cmd line application is...

Running batch file with arguments from C#

Running batch file with arguments from C# I have a batch file like this I have my C# code as follows: ``` string MyBatchFile = @"C:\Program Files (x86)\MybatchFile.bat"; string _sourcePath = @"C:\Fold...

24 Jan at 10:5

Does C# support a variable number of arguments, and how?

Does C# support a variable number of arguments, and how? Does C# support a variable number of arguments? If yes, How does C# support variable no of arguments? What are the examples? How are variable a...

Where to put default parameter value in C++?

Where to put default parameter value in C++? What's the place for the default parameter value? Just in function definition, or declaration, or both places?

10 May at 14:2

Specify environmental variables as commandline parameter in a debug session of VisualStudio C#

Specify environmental variables as commandline parameter in a debug session of VisualStudio C# I want to use an environment variable as a commandline parameter in a debug session. So Project Propertie...

Multiple optional parameters calling function

Multiple optional parameters calling function Assume that i have a function like this below It takes 3 parameters and 2 have optional values now i want to call this function like below how possible ? ...

C# pass additional parameter to an event handler while binding the event at the run time

C# pass additional parameter to an event handler while binding the event at the run time I have a link button which have a regular click event : And I bind this event at the runtime : Now I need the f...

Arguments to main in C

Arguments to main in C I don't know what to do! I have a great understanding of C basics. Structures, file IO, strings, etc. Everything but CLA. For some reason I cant grasp the concept. Any suggestio...

Getting the last argument passed to a shell script

Getting the last argument passed to a shell script `$1` is the first argument. `$@` is all of them. How can I find the last argument passed to a shell script?

10 Feb at 15:27

Pass arguments to running application

Pass arguments to running application I am making an image uploader (upload image to image hosting website) and I'm having some issues passing an argument (image location to an already running applica...

11 Feb at 06:26

Powershell Execute remote exe with command line arguments on remote computer

Powershell Execute remote exe with command line arguments on remote computer I've searched all over and tried different variations of commands, but I am still not there yet. My goal is to run an exe t...

3 Mar at 18:27

What does -XX:MaxPermSize do?

What does -XX:MaxPermSize do? Specifically, why would it help to fix a PermGen OutOfMemoryError issue? Also, bonus points for an answer that points me to the documentation on JVM arguments...

7 May at 08:21

Netbeans how to set command line arguments in Java

Netbeans how to set command line arguments in Java I am trying to set command line arguments in a Netbeans 7.1 Java project on Windows 7 64 bit. Netbeans is not passing the arguments I give it. I go t...

27 May at 02:35

Run a string as a command within a Bash script

Run a string as a command within a Bash script I have a Bash script that builds a string to run as a command ``` #! /bin/bash matchdir="/home/joao/robocup/runner_workdir/matches/testmatch/" teamAComm=...

16 Sep at 11:37