C# Fundamentals for Absolute Beginners: (21) Gracefully Handling Exceptions

Collections are a more powerful form of arrays. In this lesson, we demonstrate an "old style" collection (pointing out its limitations), along with several of the newer, strongly typed generic collections (List<T> and Dictionary<T1, T2>) utilizing the generics syntax.
Full course outline:
I can't find the source code ! please help.
Thank you
Just stumbled onto your older 2011 series. Love your walkthroughs and examples, might subscribe to your site. I just stumbled onto your new videos today. Also I agree with omar the ex. are not there. Also not to sound
@omar and @Thaddeus - I found the source files at the Microsoft Virtual Academy page for this series. Expand Module 1 "Series Introduction" and the link to the source files are at the bottom.
@Greykage: Thanks!
Buen video amigo
Can I create some method like
public static object TypePrinter <object> () {}
witch for example will be print type of object, car, book, int, string, etc. ..
?
Thank you
Hello Sir,
There is no ZIP file. Please share the link, please.
Thank you.
@purvahattekar92: Just wondering, how is the MVA link not working for you?
When I click on it, I get the MVA page for this course (http://www.microsoftvirtualacademy.com/training-courses/c-fundamentals-for-absolute-beginners). Expanding Module 1 I then see the Source Code link, which when I click on it downloads the zip.
So in my case at least, it seems to work okay...
I have really enjoyed learning with you Bob, your array of colourful t-shirs and your sense of humour has made quite a dry subject for me enjoyable to learn :)
@purvahattekar92: When you click the link, it triggers a new browser window. Make sure your pop-up blocker isn't blocking the new window.
Console.WriteLine("Bob sure is a cool guy.");
Console.ReadLine();
^Best application ever.
Thank you so much ... You make stuff so much easy ... I learn a lot ...
This is the link to the source
https://channel9.msdn.com/Series/C-Sharp-Fundamentals-Development-for-Absolute-Beginners/Working-with-Collections-21
thankuuuu
http://media.ch9.ms/csharpfundamentals/code/C9CS_21.zip
this is an old link to the .zip
The zip file can be found attached to the FIRST LESSON. The zip file there has all future lessons included.
Sir,
you have made my way easy into beginner development of apps because you have inspected every line of code and explained the syntax.You taught as a teacher good for a child(I am a teenager).Thanks a lot and I am good to learn online in such a way that I might not understand by my personal teacher.
Sir,
Can u give a reference to some links of app development(particularly game development) after I finish learning these fundamentals as I have only its 3 modules to watch.
Good work m8. Keep it up!
Can't open the zip file, we're twins.
Can't open the zip file, we're twins.
thanks a lot!Finally,I found the source files.Mar 22, 2014 at 2:41AM, Greykage wrote
@omar and @Thaddeus - I found the source files at the Microsoft Virtual Academy page for this series. Expand Module 1 "Series Introduction" and the link to the source files are at the bottom.
thank you bob, this is so good.
Anyone knows why is there no brackets "()" when Bob created new Car instances inside the list initializer at the end of the video?
@tvhong: Remember the parenthesis ( ) are used as a method invocation operator. When creating a new instance of a class, you use ( ) to indicate you want to call the constructor of that class (at least, that's how I always understood their purpose).
Now look at this from the MSDN help at: https://msdn.microsoft.com/en-us/library/bb384062.aspx
"The object initializer syntax enables you to specify arguments for a constructor or omit the arguments (and parentheses syntax)."
So, first, the syntax allows you to omit it. However, it also allows you to use parenthesis IF you want to pass arguments into the constructor.
I wanted to ask how can we ask the user to give us values.
For example if i want to to ask 100 numbers for user,so how should i ask it??
So, I was just wondering if the following would be the most efficient way to initialize a Dictionary of the Car objects that were created in the final example of code you provided in this video (initializing a List<Car> all at once with shorthand format...
In order to store those into a Dictionary, I assume we would code a for-loop to get Make (as key) and Car object for each member of myList, then store into Dictionary as so..
myDictionary.add(myList[i].Make, myList[i]);
Is this the best way to do so? I'll look for answers elsewhere, too.
Just FYI... you don't need to download a file. all the file does is load the data, which you can type from the screen at around 4min into the video.he just creates 2 simple classes.
he is just saving time... but it's ok if you want to re-type to learn more
...forgot to mention you need to add "using System.Collections;" at the top of your code. to allow ArrayList to work on your code.
Hi Bob,
Can you please explain how to add elements to the collection using loops