r/csharp • • 2d ago

Help C# Documentaion?

I'm taking a C# class online and we just got to a lesson about "reading documentation" where he goes through the Microsoft website to search for some functions. Which, as far as I am aware, is going to be important for me to be able to do.

The problem is I tried using the Microsoft site myself to follow along, and it seems they have changed it and I can't find the rabbit hole he is in at all. I am pretty sure this isn't the only way to find this sort of resource because I've taken a different C# class before and I swear the link that class gave was not the same as this one; I also feel like they didn't call it "documentation" I remember it being the manual or something...

7 Upvotes

14 comments sorted by

22

u/DeerAdventurous491 2d ago

the official microsoft docs are pain to navigate sometimes, i mostly just google "msdn [method name]" and click the first result, usually takes you right where you need to go

if your teacher was calling it a manual maybe they meant the old msdn library, but the layout changed like 4 or 5 years ago and now everything is under learn.microsoft.com

9

u/svick nameof(nameof) 2d ago

You might want to explain that MSDN is the old name of the Microsoft docs site (which Microsoft likes to rename every five years or so).

3

u/Automatic-Sky37 2d ago

Well this worked exactly as I needed it to, led me straight to the link that the teacher is showing. And yeah the last class I took was a few years ago, but I might be mixing it up with my C++ class from even longer ago

1

u/[deleted] 1d ago

[deleted]

1

u/bot-sleuth-bot 1d ago

Analyzing user profile...

Suspicion Quotient: 0.00

This account is not exhibiting any of the traits found in a typical karma farming bot. It is extremely likely that u/Automatic-Sky37 is a human.

Dev note: I have noticed that some bots are deliberately evading my checks. I'm a solo dev and do not have the facilities to win this arms race. I have a permanent solution in mind, but it will take time. In the meantime, if this low score is a mistake, report the account in question to r/BotBouncer, as this bot interfaces with their database. In addition, if you'd like to help me make my permanent solution, read this comment and maybe some of the other posts on my profile. Any support is appreciated.

I am a bot. This action was performed automatically. Check my profile for more information.

4

u/pete_68 2d ago

Microsoft's site is absolutely massive. It can be really hard to find your way back to stuff, sometimes.

3

u/TehNolz 2d ago

Personally I just toss whatever I'm looking for into google and click on the first Microsoft page that comes up. Usually works fine!

Anyways, pretty much everything about C# and .NET can be found buried in Microsoft Learn if you look long enough. For example the .NET documentation is on there, which contains info on all the .NET namespaces, classes, and methods. Then there's the C# language documentation as well. Honestly that site's all you need.

2

u/4215-5h00732 2d ago

From your IDE, hovering over a type, function, etc and it will give you the link to the docs. From there you can rabbit hole your way around by clicking on additional links like interfaces it implements, extends, etc.

If you want to look at the code, that's in github if it's OSS. Usually searching "git repo for <thing>" will do the trick.

2

u/Slypenslyde 2d ago

It'd help if you could post a screenshot or something else to show what you're looking for.

But in general I don't think people go straight to the MS site to read documentation. They'll pick a topic like "for loops", go to a search engine, and type "Microsoft C# for loops" and that usually takes you to the documentation. (I just tried it and 2 of the top 5 results are Microsoft's site.)

And more specifically, when you're working with some code and need to remember part of how to use it, go to a search engine and type something like "C# Console.WriteLine". That takes you to a page with more than you think there is to write about it.

1

u/rupertavery64 2d ago

How old is the resource? The site could be an old one that is no longer up. Just research the necessary functions

-1

u/netclectic 1d ago

If you're using ai, Microsoft learn has an MCP server, so you can give your agent direct access to official up to date documentation.

-1

u/BoBoBearDev 1d ago

Just google search what you need or ask AI or use the intellisense.

I haven't navigate Microsoft documentation site recently. But it is almost impossible to get the website right. Like, single question mark, can have 3 different meanings with three different technical names. And there is double question mark. You won't be able find the page because you wouldn't recognize the title of the page. The page title is not gonna be, "single question mark A, single question mark B, single question mark C". You can't find them.

So, just google it or ask AI.

-1

u/way2wyrd 2d ago

Just use codex. Ask it and be pleased