+ 1
C# references
Hey community! I've got a short question regarding C# i'll demonstrate with a code: class Person { int age {get;set;} } If i would now call the getter, would I get a reference to age or a copy?
2 Antworten
+ 1
You'll get a copy of the age property for each object of class Person that you instantiate.
0
thanks, is there a way to return the reference