C
C#•4mo ago
Frite

Version error

Resolve errors related to language version and features - C# reference
Several compiler errors indicate that your configured language version doesn't support a feature you're using. This article shows how to fix those errors and warnings.
No description
10 Replies
Jimmacle
Jimmacle•4mo ago
what exactly are you trying to do?
Frite
FriteOP•4mo ago
i want to get the ref of an object
Jimmacle
Jimmacle•4mo ago
objects are reference types already please explain your end goal in more detail so i can understand what help you need
Frite
FriteOP•4mo ago
its a user class by me
Jimmacle
Jimmacle•4mo ago
there are not many reasons to use ref especially in the context of what you posted
Frite
FriteOP•4mo ago
i want to access to a same variable in 2 different ways
Jimmacle
Jimmacle•4mo ago
when you assign a class object to a variable, you are assigning a reference already this isn't a language version issue, it's a you don't know what you want issue 😛
Frite
FriteOP•4mo ago
oh you're right so should i Upadte C# ? i have 9.0
Jimmacle
Jimmacle•4mo ago
no, you should write the correct code you don't need ref
Frite
FriteOP•4mo ago
thanks
Want results from more Discord servers?
Add your server