What is "out" parameter how it is used in methods?

Answer Posted / bharani

A out parameter is a parameter option to pass value to the
calling function. If a function needs to return multiple
values to the calling function the it is best to use out
parameter whereas return parameter can be used for
returning only one value.

An out parameter should be marked with an out keyword, and
the parameter should be initialized inside the function.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In Server how to check whether model has error or not in ASP.Net MVC

623


How we can call a JavaScript function on the change of a Dropdown List in ASP.Net MVC?

560


Can I add asp.net mvc testcases in visual studio express?

595


What are the major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?

532


i have done enough testing in life but now stated developing intereset in development work,Can i think of entering into development work that too in >Net after more then 4 years of testing experiece?

1748






What is session state management?

564


Explain the advantages of dependency injection (di) in asp.net mvc?

567


Is .net framework backwards compatible?

607


How can you return string result from Action in ASP.Net MVC?

557


What are the levels at which filters can be applied in an asp.net mvc application?

588


What is entitycontainer? : Entity framework

583


What is the benefit of entity framework?

537


What “beforFilter()”,“beforeRender” and “afterFilter” functions do in Controller?

545


What is MVVM design pattern?

603


What is entityset? : Entity framework

575