hugi
hugi
CC#
Created by hugi on 8/6/2024 in #help
child/parent class, how do i 'mass define' child properties?
so instead of doing var x = data.getChild(); var y = new Parent() {age = x.age, name = x.name, score = x.score,......, MoreStuff = y} so i am looking for something cleaner like var y = new Parent() {child = x, MoreStuff = y} is there any way to do it so i don thave to define every single variable separately? since it is the child of the parent component it is obvious that i am going to name them all
8 replies
CC#
Created by hugi on 5/13/2024 in #help
How do I cast my enum to a list of custom object?
thanks it was perfect!!
11 replies
CC#
Created by hugi on 5/13/2024 in #help
How do I cast my enum to a list of custom object?
from just reading it yes is what i am looking for! thanks will test it out
11 replies
CC#
Created by hugi on 5/13/2024 in #help
How do I cast my enum to a list of custom object?
my custom object is a class id: value of enum value: the enum value i.e. enum: Spring = 4, Object id=4, value=Spring
11 replies