Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
♡ IV ♡
Posts
Comments
C
C#
•
Created by ♡ IV ♡ on 1/19/2023 in
#help
❔ properties/constructor question
thank you! I also didnt know what the => meant i kept seeing so thats hepful as well. tysm!
30 replies
C
C#
•
Created by ♡ IV ♡ on 1/19/2023 in
#help
❔ properties/constructor question
?
30 replies
C
C#
•
Created by ♡ IV ♡ on 1/19/2023 in
#help
❔ properties/constructor question
for this example, set; in this case is just an extra layer of protection, because we're setting the value in the constructor
30 replies
C
C#
•
Created by ♡ IV ♡ on 1/19/2023 in
#help
❔ properties/constructor question
Oh, wait so
30 replies
C
C#
•
Created by ♡ IV ♡ on 1/19/2023 in
#help
❔ properties/constructor question
right right
30 replies
C
C#
•
Created by ♡ IV ♡ on 1/19/2023 in
#help
❔ properties/constructor question
I also see the set; too, but just curious why we need it if we're setting the value in the constructor? Sorry ive been trying to wrap my head around this, tyvm
30 replies
C
C#
•
Created by ♡ IV ♡ on 1/19/2023 in
#help
❔ properties/constructor question
Is this considered setting?
Model
=
modelName.
ToUpper
();
Model
=
modelName.
ToUpper
();
30 replies
C
C#
•
Created by ♡ IV ♡ on 1/19/2023 in
#help
❔ properties/constructor question
oh i see, because then you would permanently alter the value instead of just for that object, right?
30 replies