Home > OS >  Python Dir(**smtn**) in C#
Python Dir(**smtn**) in C#

Time:04-16

Going from Python as a first programming language I am wondering if there is anything in C# that you can do to get all available methods or parameters in a way like Dir() does in python, where if you didn't know how to use a function or if you were using a foreign library, you would type in Dir(Unknown_Thing) and it would return every method / call you can do on the single thing you placed inside Dir()

CodePudding user response:

I don't really think there's something like that in C# if you wanna know about available functions, just check out the documentation and API preference page of that lib. Also, the visual studio provides IntelliSense, and most decent libraries provide XML documentation comments on their functions and objects

CodePudding user response:

I'm not aware of anything like this. But I also believe that this "output" of information would not be very helpful. It would be much more effective to use an intelligent IDE like Visual Studio or Visual Studio Code. The "output" of this info, if it existed, would also be quite incomplete until one had added all the NuGet packages that are part of .NET.

My suggestion:

A good IDE, brain power and Google research is all it takes to write reasonably good applications.

  • Related