tagged [parameters]
C# Difference betwen passing multiple enum values with pipe and ampersand
C# Difference betwen passing multiple enum values with pipe and ampersand C# accepts this: and this: Whats the difference?
- Modified
- 2 Feb at 23:15
"Parameter" vs "Argument"
"Parameter" vs "Argument" I got and kind of mixed up and did not really pay attention to when to use one and when to use the other. Can you please tell me?
- Modified
- 10 Dec at 06:18
How to set named argument for string.Format?
How to set named argument for string.Format? I have C# error when calling: The error is How can I fix this? I prefer to use named parameters.
- Modified
- 30 Oct at 15:56
How to alias request parameter in servicestack
How to alias request parameter in servicestack How can I alias the DTO Customer_Code property to be the {id} parameter in my route?
- Modified
- 15 Feb at 13:8
including parameters in OPENQUERY
including parameters in OPENQUERY How can I use a parameter inside sql openquery, such as:
- Modified
- 31 Jul at 14:33
How to read the query string params of a ASP.NET raw URL?
How to read the query string params of a ASP.NET raw URL? I have a variable How do I read the query string parameters for this url?
- Modified
- 26 Jul at 19:50
Skip download if files already exist in wget?
Skip download if files already exist in wget? This is simplest example running wget: but how to make wget skip download if `pic.png`is already available?
- Modified
- 13 May at 12:0
Is there a VB.NET equivalent of C# out parameters?
Is there a VB.NET equivalent of C# out parameters? Does VB.NET have a direct equivalent to C# `out` function parameters, where the variable passed into a function does not need to be initialised?
- Modified
- 29 Jun at 19:13
How do you pass a function as a parameter in C?
How do you pass a function as a parameter in C? I want to create a function that performs a function passed by parameter on a set of data. How do you pass a function as a parameter in C?
- Modified
- 29 Jul at 19:9
How does C# choose with ambiguity and params
How does C# choose with ambiguity and params Say I have the following methods: If I do this: which one gets called and why?
- Modified
- 6 Jul at 21:7
How to convert URL parameters to a JavaScript object?
How to convert URL parameters to a JavaScript object? I have a string like this: How can I convert it into a JavaScript object like this?
- Modified
- 23 May at 03:14
C# "Parameter is not valid." creating new bitmap
C# "Parameter is not valid." creating new bitmap if I try to create a bitmap bigger than 19000 px I get the error: Parameter is not valid. How can I workaround this??
- Modified
- 22 Feb at 21:55
What does it mean to decorate a class or parameter?
What does it mean to decorate a class or parameter? What does it mean to Decorate or add an attribute to a class or parameter? What's the purpose and when would I do this? Links to resources and direc...
- Modified
- 5 Apr at 05:58
what is use of out parameter in c#
what is use of out parameter in c# Can you please tell me what is the exact use of `out` parameter? > [What is the difference between ref and out? (C#)](https://stackoverflow.com/questions/516882/wha...
- Modified
- 23 May at 10:27
What is the difference between URL parameters and query strings?
What is the difference between URL parameters and query strings? I don't see much of a difference between the parameters and the query strings, in the URL. So what is the difference and when should on...
- Modified
- 22 Nov at 22:3
Named Parameters and the params keyword in C#
Named Parameters and the params keyword in C# I have a C# method with a variable length argument list declared using the `params` keyword: Is there any way of using named parameters when calling the m...
- Modified
- 23 Nov at 12:1
Determining if a parameter uses "params" using reflection in C#?
Determining if a parameter uses "params" using reflection in C#? Consider this method signature: How can I determine that the WriteLine method's "myObjects" pararameter uses the params keyword and can...
- Modified
- 9 Mar at 19:41
Difference between arguments/parameters in C#
Difference between arguments/parameters in C# > [What's the difference between an argument and a parameter?](https://stackoverflow.com/questions/156767/whats-the-difference-between-an-argument-and-a-...
- Modified
- 23 May at 11:47
How are parameters sent in an HTTP POST request?
How are parameters sent in an HTTP POST request? In an HTTP request, parameters are sent as a : In an HTTP request, the parameters are not sent along with the URI. In the request header? In the reques...
- Modified
- 17 Dec at 10:21
Passing parameter as final in C#
Passing parameter as final in C# This might be a duplicate question.But could not find it in search In java to mark a method parameter as constant we declare it as final whats the equivalent C# keywor...
- Modified
- 14 Jul at 13:43
Are multiple "params" parameters possible?
Are multiple "params" parameters possible? Is it possible to have multiple `params` parameters in C#? Something like this: But I'm not sure if that's possible. If it is, how would the compiler decide ...
- Modified
- 29 May at 05:44
One parameter or many
One parameter or many I have two methods: Is this good from a clean code point of view? Or is maybe it would be better to just use BuildThings and pass IEnumerable with only one Thing? Or use params? ...
- Modified
- 13 Apr at 07:14
Convert list to params C#
Convert list to params C# I have this following list: And this function: How can I do a conversion of the list to params when using the function? Like that:
- Modified
- 21 Mar at 09:50
Limit number of parameters per method?
Limit number of parameters per method? Assuming the parameters are all the same type, is there a rule of thumb in regards to the number of parameters for a method? Im just wondering where I should dra...
- Modified
- 3 Jun at 12:43
Assigning string[] array into a function with params string[]
Assigning string[] array into a function with params string[] I have a function `void Test(int id, params string[] strs)`. How would I pass an array of strings as the `strs` argument? When I call: It ...
- Modified
- 28 Mar at 12:59