[C#] Shared resource?

Hi everyone, I just got back into FiveM dev and wanted to start coding in C# since it’s my main language and I was wondering, you know with Lua your resources are kinda shared, lets say a database resource is usable by any other resource, how can we achieve that in C# is that possible ? Or am I missing something ?

Thanks !

Hi,
Exports
Statebag

That way I could have a core resource with like user class and database stuff and have other resources talk to this one to access the user per say ?