-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: contact4manoj
Message 2 in Discussion

Not exactly Ramesh.   The Out Parameter model should be used, when you do not 
wish to transfer the value or object into the method, but wish to enforce the 
method to instantiate/initialize the variable, so that when the control is 
returned, the value is available to the caller.   This model is particularly 
useful, when you wish to do what is termed as "late instantiation".  This type 
of parameter is normally found in generator methods.   The concept of 
"functions" as you state, is actually a term originating from the Basic family 
of programming languages.  In VB, for example, you have Sub routines (which are 
methods that do not return any value), and you have Functions (which are 
methods that can return a value).  In C#, we only have methods.  So, if you 
want a method not to return anything, you use the "void" return type to 
indicate this.   Remember, irrespective of the programming language, we have 
methods.  There is no such thing as functions in .NET.  Every single method 
signature belongs to either a class or a structure.   Hope this clarifies your 
doubt.   Happy coding!   MANOJ KUMAR SHARMA.    

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to