I am not familiar with Eclipse, but I will try to answer anyway ...
- Import packages (Ctrl + Shift + O in Eclipse).
There is no concept of a package in .NET. There are assemblies that contain classes, and these classes are organized in namespaces. To add a link to the assembly, right-click on the project and select "Add Link". If you want to automatically import the namespace that contains the class you are using, place the cursor on the class name and type Ctrl + . . He will suggest to import a namespace.
- Automatically create some methods (e.g. equals () et toString ()).
Just enter override and hit Space , it will offer a list of methods to override (including Equals and ToString )
- Generate the necessary try / catch automatically with the correct exception thrown (no need to write it and look in MSDN for the correct exception)
Type try and press Tab , it will populate the try / catch block (this is called a code snippet ). There is no way to automatically catch the correct exception, because, unlike Java, C # methods do not declare which exceptions they can throw.
Secondly, is there any Java-Api-Like documentation for the .NET framework, the MSDN is really confusing, and it is very difficult for me to find what I'm looking for.
You can find the link for all .NET Framework classes here (here is the Object class ). IMHO is much more convenient than Java API documentation, but I think itโs a matter of taste and habit ... You can also download standalone documentation that provides an index of classes, members, keywords, etc.
source share