C# Programming - Delegates - Discussion
Discussion Forum : Delegates - General Questions (Q.No. 14)
14.
With which of the following can the ref keyword be used?
- Static data
- Instance data
- Static function/subroutine
- Instance function/subroutine
Discussion:
2 comments Page 1 of 1.
Sridhar said:
7 years ago
No, we can use the ref keyword only instance method, not a static method.
Gloops said:
1 decade ago
Can please somebody justify why data should not be accessed by reference when a function needs to modify it.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers