records m,ake me weant to CRY
io ahjve this . I NEED to make a type of referencetype.constant which i can do but thats WAYY Too generic becz i want to point to constanttype.stringa nd not just constanttype
PLS ignore the enums and the referencetype<T> because theyre both just markings for me rn so i can remember they dont do anything :)
id have to INHERIT constanttype in that record type which i dont know how ? ?? and also what about the other non class types :(
17 Replies
i hate records :((
SHOUDL I EVEN USE RECORDS?? ?? they makewriting it beautiful
ITS NOT EVEN BROKE
the types are just HELL
c# WHY
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
if i point
a type
referencetype.constant
that works
but thats pointing to the abstract base constanttype
and i want to be able to point to
a referencetype.constant where the constant is constanttype.string
but that would mean
referencetype.constant would have to be an actual constanttype
and not just a record
but i cant inherit it
do you want like
i would have to manually make another record inside the referencetype
for a refernece constant that is a constant string
public record Constant<C> : ReferenceType<C> where C : ConstantType;
?
though that would suck to use, since you have to repeat the type twiceim going to try to implement something like this and if it works i love you
trying to make these types is like
trying to write a god damn orchestra i have to become a creative genius
i would just have different records for each type of constant, probably
wait no way
so i could just do
for something
and it would work
no
because it's on a generic type
ignore the referencetype generic
if you moved the inner records to a different type, it would work
act like it dont exist
then sure
well that seems like it would be a good solution
the compiler will not act like it doesn't exist though
i didnt knwo you could
implement a generic inside a record like that
well ya
i just need way to
add a custom type for the record
that acc works
i think
@Aaron all my love and prayers
ily