C# FAQ: Does CSharp have global methods
Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| CSharp-Online.NET:FAQs |
| edit |
[edit]
Does C# have global methods?
C# methods must be part of a class—either as member or static methods. It is the same in the Java language. Of the three languages, only C++ has global methods.