what is reference parameter?
what is out parameters?
what is difference these two?
Answer Posted / rahul
In short ,
ref parameters needs to be initialized and can be used as
input as well as for output where as the out parameters
needs not to be initialized as there will not be any use
even if u initialize and can only be used for the the ouput
whose value to passed into the function......
for those who dont like too much reading...... it may help
| Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
What is thread life cycle in c#?
explain the features of static/shared classes.
What is private protected in c#?
What is the boxing and unboxing in c#?
What is parallel foreach in c#?
Can property be private in c#?
Why cannot you specify the accessibility modifier for methods inside the interface?
What is the difference between do and while loop?
What is a boolean c#?
What does .length do in c#?
What is different between Static Constructor and Private Constructor?
Does c# support multilevel inheritance?
Can we set image Source dynamically using C# in WPF application?
What is global namespace in c#?
What is the difference between serialization and deserialization in c#?