error ♡
error ♡
CC#
Created by error ♡ on 2/12/2025 in #help
Generics, Constraints and a simple question
wow, that fixed it, thanks! i don't get it why it isn't supported in classes tho, but thanks
9 replies
CC#
Created by error ♡ on 2/12/2025 in #help
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
CC#
Created by error ♡ on 2/12/2025 in #help
Generics, Constraints and a simple question
generic covaraince, is a keyword that might explain this
9 replies
CC#
Created by error ♡ on 9/25/2024 in #help
How do I make a good DTO of lot's of classes.
thanks for this, It might be what i'm looking for
16 replies
CC#
Created by error ♡ on 9/25/2024 in #help
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
CC#
Created by error ♡ on 9/25/2024 in #help
How do I make a good DTO of lot's of classes.
not sure, if that's a thing
16 replies
CC#
Created by error ♡ on 9/25/2024 in #help
How do I make a good DTO of lot's of classes.
i am looking for something like, enum of classes , and that field can be set by only one class
16 replies
CC#
Created by error ♡ on 9/25/2024 in #help
How do I make a good DTO of lot's of classes.
i want my API to be language agnostic
16 replies
CC#
Created by error ♡ on 9/25/2024 in #help
How do I make a good DTO of lot's of classes.
I have a bunch of C# classes, If i combined them into one class, I can use it, So that Swagger can Autogen my C# classes into python and other stuff
16 replies
CC#
Created by error ♡ on 9/25/2024 in #help
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
CC#
Created by error ♡ on 9/25/2024 in #help
How do I make a good DTO of lot's of classes.
these can't that's the problem
16 replies
CC#
Created by error ♡ on 9/25/2024 in #help
How do I make a good DTO of lot's of classes.
yes, kinda it accepts an array of king, which each king having a single field only set
16 replies
CC#
Created by error ♡ on 9/25/2024 in #help
How do I make a good DTO of lot's of classes.
yes King is a DTO for my endpoint
16 replies