C# Fundamentals for Absolute Beginners: (22) Working with Collections

Sign in to queue

The Discussion

  • User profile image
    omar

    I can't find the source code ! please help.
    Thank you

  • User profile image
    Thaddeus

    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

  • User profile image
    Greykage

    @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.

  • User profile image
    Vibrito

    @Greykage: Thanks!

  • User profile image
    Vesper

    Buen video amigo

  • User profile image
    Vahe13

    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

  • User profile image
    purvahattek​ar92

    Hello Sir,

          There is no ZIP file. Please share the link, please.

    Thank you.

  • User profile image
    purvahattek​ar92

     

    @Greykage: Dude... Microsoft Virtual Academy's link isn't workin..!! :}

    Thank.. Anyways.

  • User profile image
    gduncan411

    @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...

  • User profile image
    Ness Hillman

    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 :)

  • User profile image
    youngcaseho

    @purvahattekar92: When you click the link, it triggers a new browser window. Make sure your pop-up blocker isn't blocking the new window.

  • User profile image
    Larry Seinfeld

    Console.WriteLine("Bob sure is a cool guy.");
    Console.ReadLine();

    ^Best application ever.

  • User profile image
    Redar

    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

  • User profile image
    ameerhamza

    thankuuuu

  • User profile image
    cubalibre227

    http://media.ch9.ms/csharpfundamentals/code/C9CS_21.zip
    this is an old link to the .zip

  • User profile image
    Scott

    The zip file can be found attached to the FIRST LESSON. The zip file there has all future lessons included.

  • User profile image
    Adnan Qazi

    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.

  • User profile image
    Adnan Qazi

    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.

  • User profile image
    Yo Daddy

    Good work m8. Keep it up!

  • User profile image
    Bob Tabor

    Can't open the zip file, we're twins.

  • User profile image
    BobTabor

    Can't open the zip file, we're twins.

  • User profile image
    RockDeng

    , 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.

    thanks a lot!Finally,I found the source files.

  • User profile image
    dobardan

    thank you bob, this is so good.

  • User profile image
    tvhong

    Anyone knows why is there no brackets "()" when Bob created new Car instances inside the list initializer at the end of the video?

  • User profile image
    BobTabor

    @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.

  • User profile image
    Chinmay​Gurjar

    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??

  • User profile image
    Aaron

    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.

  • User profile image
    gui

    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

  • User profile image
    gui

    ...forgot to mention you need to add "using System.Collections;" at the top of your code. to allow ArrayList to work on your code.

Add Your 2 Cents