Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 8th, 2003, 06:09 AM
Registered User
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default exit from a void function

Hi

Can someone tell me please what is the statement
in order to exit from a void function (without any return) ?
Thanx.

 
Old October 8th, 2003, 06:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can't you just write
Code:
return;
??? That is, if you mean without returning anything.

Jacob.
 
Old September 9th, 2012, 03:28 AM
Authorized User
 
Join Date: Sep 2012
Posts: 29
Thanks: 14
Thanked 0 Times in 0 Posts
Smile

You need not even use return keyword:
Code:
class c{

public void mey(){ Console.WriteLine("Microsoft C #");}
}
will return the string from suitable object
regards
 
Old October 16th, 2012, 09:06 AM
Registered User
 
Join Date: Oct 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

this is supprotive to work with the c#





Similar Threads
Thread Thread Starter Forum Replies Last Post
error thrown by: Void AbortInternal() prv299 ASP.NET 2.0 Professional 1 June 12th, 2008 07:48 AM
Constructors return void? AndrewH Java Basics 4 February 13th, 2007 05:59 AM
how to exit from function try.test.abc C# 2 January 11th, 2007 06:24 AM
Real Time Application of Void class pandian Java Basics 0 October 9th, 2006 05:36 PM
How do we exit from a function in JavaScrip ? MisbahAnsari Javascript 1 November 28th, 2003 07:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.