C
C#8mo ago
WasianLuke

Variable dosent exist.

I have a bool that i declared in one class but the other classes i made cant detect it and it says that it dosent exist in the current context
7 Replies
Servator
Servator8mo ago
$modifiers
MODiX
MODiX8mo ago
protected internal new static virtual abstract unsafe ref readonly delegate* unmanaged[Stdcall]<int, float, double, byte, sbyte, ushort, short, long, ulong, uint, decimal*, char, void> Foo();
protected internal new static virtual abstract unsafe ref readonly delegate* unmanaged[Stdcall]<int, float, double, byte, sbyte, ushort, short, long, ulong, uint, decimal*, char, void> Foo();
Servator
Servator8mo ago
Access Modifiers - C# Programming Guide - C#
All types and type members in C# have an accessibility level that controls whether they can be used from other code. Review this list of access modifiers.
Servator
Servator8mo ago
Make them public Also check is class static or not
WasianLuke
WasianLukeOP8mo ago
Not static. Already Public
Servator
Servator8mo ago
How do you try to access it ?
Alen Alex
Alen Alex8mo ago
Please provide the code of what you are trying, what you are trying to explain and what we all grasping would be different, reading what you did will help us understand the context and issue much more faster
Want results from more Discord servers?
Add your server