Jiodi
Jiodi
CC#
Created by Tin on 9/25/2023 in #help
❔ Please can someone explain me the point of using Automatic Properties get; set;
You cant see it but it's there!
12 replies
CC#
Created by Tin on 9/25/2023 in #help
❔ Please can someone explain me the point of using Automatic Properties get; set;
Yup
12 replies
CC#
Created by Tin on 9/25/2023 in #help
❔ Please can someone explain me the point of using Automatic Properties get; set;
12 replies
CC#
Created by Tin on 9/25/2023 in #help
❔ Please can someone explain me the point of using Automatic Properties get; set;
kool aid man bursts through Immmmmutability
12 replies
CC#
Created by Tin on 9/25/2023 in #help
❔ Please can someone explain me the point of using Automatic Properties get; set;
Unless you require a setter for some crap serializer I would say the only important thing is get. Which is just syntactic sugar.
12 replies
CC#
Created by Darma on 4/23/2023 in #help
❔ Trouble with modifiers
Privatize ur ctors
14 replies
CC#
Created by Darma on 4/23/2023 in #help
❔ Trouble with modifiers
public static BuildingBlueprint Create(int stories, int apartments, float occupancy) => new BuildingBlueprint(stories,apartments,occupancy);
14 replies
CC#
Created by Darma on 4/23/2023 in #help
❔ Trouble with modifiers
BuildingBlueprint.Create(blueprint1.Stories, blueprint1.Apartments, [newVal])
14 replies
CC#
Created by Darma on 4/23/2023 in #help
❔ Trouble with modifiers
So you dont have to mutate at all
14 replies
CC#
Created by Darma on 4/23/2023 in #help
❔ Trouble with modifiers
Or just create a static method that returns a new BuildingBlueprint class with the desired values upon change
14 replies
CC#
Created by Darma on 4/23/2023 in #help
❔ Trouble with modifiers
Your first problem is making the class mutable in the first place
14 replies