Top "Return-value" questions

Return value is the result of evaluation of a return statement.

Return multiple values from a C# asynchronous method

I have worked with asynchronous methods and the methods which return multiple values, separately. In this specific situation, following "GetTaskTypeAndId()" …

asynchronous async-await entity-framework-core return-value c#-7.0
Store return value of function in reference C++

Is it valid to store the return value of an object in a reference? class A { ... }; A myFunction() { A myObject; …

c++ reference return-value
Wait until jquery ajax request is done and return value

I want to wait until ajax call complete and return the value. function isFileExists(url) { var res = false; $.ajax({ type: "…

jquery ajax return-value file-exists
String or StringBuilder return values?

If I am building a string using a StringBuilder object in a method, would it make sense to: Return the …

c# string return-value stringbuilder return-type
C or C++ Return Status

What are the best practices for writing C or C++ functions that return an int that represents a status code? …

c++ c function return-value status
Return id after insert C# using SQL Server

I know this question has been on this site many times, but I can't get my code working. I have …

c# asp.net sql-server return-value scope-identity
PowerShell - script 1 calls script 2 - how to return value from script 2 to script 1

I have two PowerShell scripts. One script invokes another PowerShell script using elevated credentials, using Start-Process. But I am struggling …

powershell return-value elevated-privileges start-process
when an event has multiple subscribers, how do I get the return value for each subscriber?

The code looks like below: Clock: public class Clock { public event Func<DateTime, bool> SecondChange; public void Run() { …

c# events return-value subscription
Can I return a List from a LotusScript Function?

I want to return a List from a Function in LotusScript. eg. Function myfunc() List As Variant Dim mylist List …

return-value lotus-notes lotusscript
Is returning null after exception is caught bad design

I always come across the same problem that when an exception is caught in a function that has a non-void …

java exception return-value