Current .Net Version: 1.1.4322
(select below)
.Net Framework
ASP.NET/Web Forms
C#
SQL Server
Visual C#
Windows Forms
XML Web Services
C# Reference
List:
Access Keyword
Access Modifier Keyword
Attribute
Conversion Keyword
Definition
Literal Keyword
Method Parameter Keyword
Modifier Keyword
Namespace Keyword
Operator
Operator Keyword
Preprocessor Directive
Statement Keyword
Type
Type Keyword
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
return
s 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