Current .Net Version: 1.1.4322
Home
Articles
Practice C# Online
C# Reference
XML Web Services
RSS Feeds
T-SQL Scripts
Valuable Links
Contact Us
C# Reference
List: Search:

return
Is a:Statement Keyword
Applies to Version:C# 1.0 and later
Namespace:N/A
Assembly:N/A (N/A)
Description:A jump statement that terminates the execution of code in the statement in which the return keyword is specified and optionally returns a value to the calling entity.
Syntax:
return;
return expression;
return object;
Example(s):// property example: public String CurrentGreeting { get { return "Hello World!"; } } // method return value example: public String GetGreeting() { return "Hello World!"; } // method void example: public void DoSomething() { return; }
 
COPYRIGHT/DISCLAIMER | CONTACT US