PDF Preview:
PDF Title : | Head First C# |
---|---|
PDF edition : | 2nd edition |
Total Page : | 840 Pages |
Author: | Andrew Stellman |
PDF Size : | 18.6 MB |
Language : | English |
Rights : | oreilly.com |
PDF Link : | Available |
Summary
Here on this page, we have provided the latest download link for Head First C# (2nd edition) PDF. Please feel free to download it on your computer/mobile. For further reference, you can go to oreilly.com
Head First C# (2nd edition) – Book
One thing you’ve seen over and over again is that every time you pass an int, double, struct, or any other value type into a method, you’re passing a copy of that value to that method. There’s a name for that: pass-by value, which means that the entire value of the argument is copied. But there’s another way to pass arguments into methods, and it’s called pass by reference.
You can use the ref keyword to allow a method to work directly with the argument that’s passed to it. Just like the out modifier, you need to use ref when you declare the method and also when you call it. It doesn’t matter if it’s a value type or a reference type, either—any variable that you pass to a method’s ref parameter will be directly altered by that method.
Head First C# (2nd edition) PDF
Know more about our initiative
[yasr_visitor_votes size=”medium”]