error ♡
Generics, Constraints and a simple question
@cathei thanks for getting back, so basically the reason, i'm working with this interface, is to limit the alllowed types in my generic class
Param<T>
T should only be either String, bool, int64, specific classes etc.
for this reason, I had made IParameterDataType, and wrote wrappers for these primitivies,
Param<T> : where T : IParameterDataType
now, I want to be able to have a List<Param<IParameterDataType>>
9 replies
How do I make a good DTO of lot's of classes.
problem is, rn, while i'm parsing this List<Geometry>
I have specific function on my service, which takes Line,Point(Primitive) class as input, which is basically present inside the geometry class, but I can't specify it correct. Does this make sense?
16 replies
How do I make a good DTO of lot's of classes.
let's say, u have bunch of classes like, point, line, curve
and I want to have a Geometry class, which would be the DTO that interacts with my client,
and the geometry class can have any one of those primitive types
16 replies