C
C#4w ago
Faker

✅ Can we create "modules" that can be imported in C#?

Hello guys, I wanted to create a specific script where there are methods that can be imported. In order to do that, it's mandatory to create a new class? I mean since we are creating a new class, it will be mandatory to instantiate it or use the class name itself if it's static... it's not possible to just import a specific method ?
2 Replies
Pobiega
Pobiega4w ago
We do not have free methods in C#, the equivalent is static methods on a static class
Faker
FakerOP4w ago
Yep noted, thanks !

Did you find this page helpful?