Learn C# with CSharpFritz - Ep 3: C# Methods, Events, and Delegates for Beginners
Автор: dotnet
Загружено: 2020-08-25
Просмотров: 17170
This is episode 3 of C# with CSharpFritz and Jeff walks through methods, events, and delegates in this beginner-friendly episode.
Interactive Notebook with samples you can run IN BROWSER at: https://aka.ms/csharpfritz_notebooks_...
After the C# basics sessions are completed, which user interface framework do you want Fritz to walk through FIRST? Vote for your favorite with an emote at: https://github.com/csharpfritz/csharp...
Questions:
25:51 - Is it considered bad practice to use a nested class?
39:20 - When writing methods, is it a rule that they do one thing and one thing only?
42:15 - How do you create a method with a 'real' optional value?
44:28 - Can I write a reusable method to do that, so that all of my API calls can reuse that method?
51:49 - What's a good rule on the number of out parameters vs returning an object with those values instead?
1:00:33 - Is ref used with value types to change their value within the method?
1:06:02 - What happens when you assign a new instance of a class to a parameter inside of a method?
1:12:00 - Are delegates the same as a callback function?
1:14:40 - If data types are not specified when assigning a delegate, would it automatically infer the type?
1:25:48 - Can a list of delegates be executed?
1:30:46 - Is it possible to use a non-void-return-type delegate as the type for an event, and then process the subscriber list with GetInvocationList()?
1:47:30 - What's the difference between abstract classes and partial classes?
Background Music is Harris Heller's Streambeats - Synthwave playlist, available royalty free at https://open.spotify.com/playlist/2gj...
Source code and interactive content from the stream are available at: https://github.com/csharpfritz/csharp...
Watch live Mondays at 1300 UTC / 9a ET / 6a PT at: / visualstudio
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: