interview questions and answers

Microsoft Technologies Interview Questions | C# Interview Questions

Friday, 10 September 2010
Main Menu
Home
Online Test
Contest
Search
Submit
FAQs
Testimonial
Contact Us
Login
Most Popular Category
JAVA

Microsoft Technologies
ASP, C#, DotNet, ...

Programming
C++, PHP, VB, ...

SAP

Testing

Web Technologies

Polls
Does personal networking help in job search?
 
IT Placement Papers interview questions Microsoft Technologies interview questions C#

This category contains C# Interview Questions and Answers


How do I declare inout arguments in C#?

PDF Print E-mail

The equivalent of inout in C# is ref. , as shown in the following example: public void MyMethod (ref String str1, out String str2) { ... } When calling the method, it would be called like this: String s1; String s2; s1 = "Hello"; MyMethod(ref s1, out s2); Console.WriteLine(s1); Console.WriteLine(s2); Notice that you need to specify ref when declaring the function and calling it.




Be first to comment this article

Only registered users can write comments.
Please login or register.

 
< Prev   Next >

Microsoft Technologies Interview Questions | C# Interview Questions

Top!
Top!
Copyright © 2008 InterviewDuniya.com All Rights Reserved.
Partner Site: Maheshwari Matrimony