Click here to Skip to main content
15,894,720 members
Everything / Arguments

Arguments

arguments

Great Reads

by Illya Reznykov
How to mock & test methods with out parameters
by Yisrael Lax
.NET Library for automatically validating and casting console input parameters

Latest Articles

by Illya Reznykov
How to mock & test methods with out parameters
by Yisrael Lax
.NET Library for automatically validating and casting console input parameters

All Articles

Sort by Score

Arguments 

25 Jul 2017 by Graeme_Grant
If the VB code is in a class library, then you can reference and use it like you can a C# class library. Here is a test to show how this works: 1. Add a C# Console app to a solution 2. Add a VB class library to the solution 3. reference the VB class Library in the C# console app 4. use the...
24 Jan 2020 by Richard MacCutchan
void djecja_reduta:: number_of_groups(){ karneval karneval; karneval.number_of_groups(); } This method creates a new karneval object, and then tries to output the total number of groups it contains. But this object does not contain any values for number_home_groups or ...
25 Jul 2017 by Menci Lucio
Hi all, I've written a long time ago a long Visual Basic project, where a class has several properties with multiple arguments. Now I should implement that project in an existing solution written in C#. The only way I found to call these property getter/setter is through reflection. Do you...
16 Feb 2018 by david salaman
recently read about Out/ref keywords and i need to know how does the below method(FetchDeviceInfo) return serial number of a device, although the variable "returnValue" is string.Empty. and inside GetSerialNumber(machineNumber, out returnValue) method body there`s nothing? public string...
15 Feb 2018 by OriginalGriff
The simple answer is that there is something in the body of GetSerialNumber, but you haven't found the right code yet. Your assumption that the body of the method is empty from this:Quote: from interface: [DispId(29)] bool GetSerialNumber(int dwMachineNumber, out string dwSerialNumber);...
20 Mar 2018 by Member Hemal
As per your question I just understand that you have 2 constructors are using. 1) Default Constructor & 2) 4 Parameterized But I can not get what actual your problem is what? Your Output of above coding is : First Name : Rodney Last Name : Duncan Address : 70 Bowman St. South Windsor, CT...
22 May 2018 by lukeer
Hi forum, a bash script I wrote behaves unexpectedly (read: "There's a bug in it.") and I just don't get it. Say there's that variable PAGES which contains " page0.pdf page1.pdf page2.pdf". And there is $1 which contains "result.pdf". I want to merge all those single-page pdf files into one...
22 Aug 2018 by Dinesh Kumar Dora
Hello friends, I am wondering if we can pass different count of commandline arguments to a console application. for example: test.exe test.exe arg1 test.exe arg1 arg2 test.exe arg1 arg2 arg3 all the above 4 cmdprompt invocations must work. Is it possible? i tried the params option as shown...
22 Aug 2018 by Dave Kreskowiak
Your code doesn't make any sense. If the user doesn't pass in any args, it starts a Windows Forms app. If the user does pass in arguments, you add every argument to what appears to be a List (I have no idea because you never show the definition of mainObject!), assign the first two arguments to...
24 Jan 2020 by Member 14726049
I am trying to use int number_of_groups return and pass it into djecja_reduta function this is header file and then printing it for first karneval number_of_groups() gives out normal values but void djecja_reduta::number_of_groups() gives very crazy results and random numbers Example: I...
24 Jan 2020 by Patrice T
Quote: Passing values into another class function gives crazy values when printed Your code do not behave the way you expect, or you don't understand why ! There is an almost universal solution: Run your code on debugger step by step, inspect variables. The debugger is here to show you what...
18 Nov 2020 by Illya Reznykov
How to mock & test methods with out parameters
19 Jul 2022 by Member 15711665
I have a main function which runs with and without taking command line arguments. The given command goes to else logic and exits with value. But my query is, if user runs without command line argument then logic should not got to exit so can run...
10 Nov 2020 by Yisrael Lax
.NET Library for automatically validating and casting console input parameters
22 Aug 2018 by Richard MacCutchan
string argHTTPS = args[0]; string argCustDBName = args[1]; That will only ever work if you have two or more parameters. If you want it to be dynamic then you need check how many parameters are being passed in. Start by setting default values for all the optional parameters,...
20 Mar 2018 by Member 13677146
Add 2 constructors to the Person class. One that takes no arguments and initializes the data to all 0’s and “” (empty strings). And one constructor that takes all 4 arguments, one argument for each property and then sets the properties to these arguments that are passed in. Lastly change the...