C# Tutorial 2 Looping Arrays StringBuilder

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 2024
  • Get the Code Here : goo.gl/KEDHBW
    Best C# Book : amzn.to/2iMArkU
    Support me on Patreon : / derekbanas
    In this part of my C# tutorial I cover Implicit Typing, Casting, For, For Each and Arrays and StringBuilder in vast detail. For best results take notes on the cheat sheet provided above as you watch and leave any questions you have.
    Thank you to Patreon supporters like the following for helping me make this video
    cottageindustriesbuild/
    jaryd remillard : instagram: @distant_admiration
    bugreplay.com
    @kyleaisho
    @thetwistedhat
    vjFaLk
    jaryd remillard : github.com/Yea...

ความคิดเห็น • 208

  • @ramsyrama
    @ramsyrama 7 ปีที่แล้ว +202

    Hey Banas thank you so much ,here in Africa I am able to get quality tutorials from you without having to go to expensive Universities. I am NOW working at a company as a backend developer being paid enough to school my sister and live comfortably.YOU PULLED ME OUT OF POVERTY.Thank you we love you here from Africa,Kenya

    • @badmuskaybee5111
      @badmuskaybee5111 7 ปีที่แล้ว +3

      Also an African. Up Derek

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +65

      Thank you for the very kind compliment and I'm extremely grateful if I was able to help in any small way :) I am positive that your hard work is the reason why you succeeded to such a great extent and I wish you and your family all of the best in life.

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +67

      I will never stop being amazed that people all over the world watch my videos! It is a very humbling experience for a farm boy that has basically never traveled :)

    • @larssonk22
      @larssonk22 7 ปีที่แล้ว +2

      Amazing! Well done Ramsy! Where in Africa are you from, I was born in TZ

    • @larssonk22
      @larssonk22 7 ปีที่แล้ว +5

      Derek, no better excuse to take a vacation to a foreign land

  • @beebstergames7348
    @beebstergames7348 5 ปีที่แล้ว

    Just an excellent video for someone coming from 35 years as a C coder to C#. It was of great help when I was trying to define a simple grid for a match game in Unity. Thank you for taking the time to create and share this video with the rest of the programming community. Well done!

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว

      Thank you very much :) I'm happy I could help

    • @beebstergames7348
      @beebstergames7348 5 ปีที่แล้ว

      @@derekbanas You bet brother, us coders have to stick together!!

  • @goncalodumas
    @goncalodumas 3 ปีที่แล้ว

    Undoubtedly the most complete tutorial on C# I've seen so far. Thanks!

    • @derekbanas
      @derekbanas  3 ปีที่แล้ว

      Thank you very much :)

  • @KingKilleer96
    @KingKilleer96 7 ปีที่แล้ว +4

    for ppl that tried out the FindAll function and console printed System.Int32[], its because Console.WriteLine doesnt have an overload for int[], so its using the object overload which calls the ToString() method. ToString on int[] prints out System.Int32[].
    it works with join method:
    Console.WriteLine("> 10 : {0}", string.Join(", ", Array.FindAll(numArray, GT10)));

    • @pastrie42
      @pastrie42 5 ปีที่แล้ว

      @Werse Varsity That's what I figured, I just didn't have any idea what the solution was. Thank you guys for makign this easier! I was having issues googling it.
      So, I assume from reading the definition that string.join takes the data from the array and formats it to a string with a comma as the string separator?

  • @Yazidn
    @Yazidn 7 ปีที่แล้ว +1

    Great serie! while i was getting confused a little, and you saying that i don't have to memorize all of this stuff made me smile and feel comfortable again! thank you so much :'D i'm following till the end.

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +1

      Thank you :) Yes the goal is to get good at solving problems with C#. Write a lot of code while referring to the cheat sheet and you'll remember naturally.

  • @ProjectInitiative
    @ProjectInitiative 7 ปีที่แล้ว +18

    Gold as always! Great tutorial! I personally have grown to like C# more than Java.

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +5

      Thank you for the Gold :) Yes I love C#. Oracle is really dropping the ball with Java in my opinion

    • @larssonk22
      @larssonk22 7 ปีที่แล้ว +1

      Same here, I'm really liking C# I just hate Visual Studio coming from Android Studio and Eclipse.

  • @TypeZ3R0
    @TypeZ3R0 3 ปีที่แล้ว

    The simplicity in your voice makes my whole brain work.

  • @yako668
    @yako668 ปีที่แล้ว

    Thank you so much for these amazing videos, I'm binge watching your videos to prepare for my upcoming CodinGame interview in January 3rd (in a week exactly) in order to apply for a AR/VR developer job using C#. If I nailed it ( though I doubt it), it will be all thanks to your great content that I will be always grateful for!! Thanks a million!

  • @peponderat92
    @peponderat92 7 ปีที่แล้ว

    I am learning C# for a couple of months now. Accidently landed on your chanel and couldn't be more happy.
    Thanks for the great work and effort. The simplicity of the your explanations and the speed with which you are covering so many topics in such a little time is tremendous. Keep up with the good work. Planning on watching every single video about C# and Python .
    Greetings from Bulgaria. :)

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you for the nice compliment :) I plan on making many more C# videos

    • @peponderat92
      @peponderat92 7 ปีที่แล้ว +1

      Derek Banas Good plan ! :D

  • @abbys4346
    @abbys4346 7 ปีที่แล้ว

    Thank you so much for these tutorials. After my freshman year of highschool taking a c++ class i lost all interest in programming due to an unmotivated/bad teacher (even though i got an A-) I think it had to due with me not understanding how much work you actually need to put into programming if you want to see progress, as well as, truly understanding code. Now 2 years later, programming is almost all i do. your python tutorials helped me create things i never thought i could grasp my head around! In addition to helping me think like a programmer!!! you are part of the reason why i got accepted into digipen institute of technology next fall to take the freshman computer science and game programming courses a year early as a highschool senior(: KEEP IT UP YOU'RE ONE OF MY INSPIRATIONS. I CANT THANK YOU ENOUGH!`

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +1

      Thank you very much for taking the time to tell me I helped :) That makes what I do so worth while and I can't tell you how much I appreciate it! I wish you all the best!

  • @antoniogutierrez7218
    @antoniogutierrez7218 7 ปีที่แล้ว

    Hi Derek, I found your fast pace style, it's great for recorded tutorials so we can abuse the pause button, also your transitions from topic to topic are very smooth, so thank you very much for the work you put into these videos, you rock!

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you for the compliment :) I'm glad they help

  • @mmroberts07
    @mmroberts07 7 ปีที่แล้ว +1

    you must have been reading my mind. this is exactly what I was working on last night and I needed a little help with it. thanks man great job!

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +1

      Thank you :) I'm glad I could help

  • @faet37
    @faet37 7 ปีที่แล้ว

    You are a golden soul Mr. Banas! Thank you for sharing your knowledge! Best of wishes to you and yours, I'm excited to follow the rest of the series! Cheers me hearty!

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +2

      Thank you for the nice compliment :) I'm very happy that you enjoy the videos

  • @johanellis9981
    @johanellis9981 7 ปีที่แล้ว

    I cannot get enough from your videos! It really is so inspiring and informative. I also really like how you bring humor into the videos. Keep up the amazing work!!

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you very much :) I do my best. I need to work on making them more fun

  • @christophethomas5718
    @christophethomas5718 7 ปีที่แล้ว

    i just changed from VB to c# because i had too and this tutorial is awesome and helps a lot!! keep up the good work ur a huge inspiration :)

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you for the nice compliment :) I hope the tutorial helps

    • @christophethomas5718
      @christophethomas5718 7 ปีที่แล้ว

      yes they do i'm goin through all of them right now :) i use you're code overrun with the tut and experiment with it. u know so much and the tutorials are well explained and easy to understand. there are even teachers i had from high scool referring to you're tutorials so that said it all

  • @umairhussain6078
    @umairhussain6078 7 ปีที่แล้ว

    Gotta say this C# is neater then java, and your teaching is GOLD
    thanku sir :)

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +1

      Thank you :) Yes I agree that C# is crushing it right now

    • @dustbinsavesyou8283
      @dustbinsavesyou8283 6 ปีที่แล้ว

      C++ is easier than C#

  • @DarrenColeAmsterdaz
    @DarrenColeAmsterdaz 6 ปีที่แล้ว

    GOLD. No getting bored at this rate!

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      Thank you :) I try not to waste time

  • @russhillman9391
    @russhillman9391 5 ปีที่แล้ว

    Thank you very much for all the effort and time you have taken to provide so much quality content.

  • @reziik6904
    @reziik6904 7 ปีที่แล้ว

    Thanks for making this guide! I'll for sure check the whole series out when I'm done my c++ book.

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +1

      I hope that it helps. I can't wait to get into the fun stuff :)

  • @ashutoshsingh5568
    @ashutoshsingh5568 6 ปีที่แล้ว

    Finally, I got my confusion about array off. Thanks Guru JI

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      I'm happy I could help :)

  • @AbhishekChauhan-ci1nb
    @AbhishekChauhan-ci1nb 7 ปีที่แล้ว

    I really appreciate you ... for making these informative videoss... very much useful for newbie's like me.... waiting for your next video....!!!

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you very much. Thank you for watching :) The next part goes up on Saturday

  • @JohanKermitBoback7204
    @JohanKermitBoback7204 7 ปีที่แล้ว +1

    Thank you soooo much Derek for being an awesome teacher!

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +1

      Thank you :) It is my pleasure

  • @2271masoud
    @2271masoud 7 ปีที่แล้ว

    Unbeleivable
    That's what I've been waiting for
    Thanks Derek

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      I'm very happy that you liked it :)

  • @mahranbaker4379
    @mahranbaker4379 6 ปีที่แล้ว

    I Love you man, really thank you for all the hard work you do. I'm working to get my C# Exam 70-483 do you have any tutorials for that, if not can you make. Finally I would like say that I was following you since 2014 and now I'm working as system-developer in good company. Wishing you all the best.

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      That's awesome :) I'm glad I could help and congratulations. I cover many of those topics aside from security and parsing JSON

  • @kasufert
    @kasufert 3 ปีที่แล้ว

    "Casting is just a fancy word for converting"
    I wish someone had told me this when I started programming. That, and typing having nothing to do with pressing keys!

  • @jeffmerlin2580
    @jeffmerlin2580 7 ปีที่แล้ว

    Great stuff! Thanks Derek. Just a little knitpicking: At 13:25 you say "manipulate". One of my first problems with C# and foreach was that I thought I could change an array in the foreach loop. Well, that is of course not true. Trap for young players. :-)
    Now, "manipulate" may be interpreted as kind of read-only. I'm not an English teacher... ;-)

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +1

      Sorry for not stating that better. I get tongue tied some times and I appreciate it when people point it out :)

    • @jeffmerlin2580
      @jeffmerlin2580 7 ปีที่แล้ว

      You're doing great! It's hard to get to all the little culprits.

  • @sujithamurugesan1379
    @sujithamurugesan1379 7 ปีที่แล้ว

    in case of 3D array, arrNums[2,2,3] ----> IS it 2 times of [2,3] array. OR as you told, 3 times of [2,2] array? I tried it and if I am not wrong, it is 2 times of [2,3] array. Thanks in advance!! Your tutorials are awesome :) Keep teaching us.

  • @michaeltoogood7399
    @michaeltoogood7399 6 ปีที่แล้ว

    Really good - love the accent - will use your course as a refresher ...

  • @raizaalves4914
    @raizaalves4914 4 ปีที่แล้ว

    Here from Portugal :) Thank you so much for yours tutorial

  • @Coroshia
    @Coroshia 5 ปีที่แล้ว

    Great video the only thing I wasn't able to get was the "CultureInfo" thing, I didn't get the utility of it or what it does. Cause when printed the array was just showing what would appear if he just added "Best Customer : {0}", BestCust to the array and then print it

  • @trey7473
    @trey7473 5 ปีที่แล้ว +1

    Hi! I'm really enjoying these tutorials, they're great. I also took the advice to get the #C 6.0 and .NET 4.6 Framework book.
    My question here, is as a complete noob to programming, what could be made using C#? Would I be primarily focused on games through unity, or could I possibly transfer this over to web development? Thanks :)

  • @skarmarri3555
    @skarmarri3555 7 ปีที่แล้ว +2

    Hey Derek, I know this video came out in January but I'm watching it now and I still don't understand very well the difference between strings and string builders. For example if you have string hello = "Hello Everyone", if you change "Hello Everyone" to "Hello Mike", how exactly are you creating a new string. I might just be being dumb I don't know. I would appreciate if you could answer me on this topic. Thank you and Keep up the good work bro! :)

    • @anuragtripathi1744
      @anuragtripathi1744 6 ปีที่แล้ว

      The data of the string hello is only changing it is very simple

    • @k42p3r
      @k42p3r 6 ปีที่แล้ว +2

      I know this is an old comment but I dare to answer it anyway.
      It is all about resource consumption.
      When you change the value to “Hello Mike” a new string object will be instantiated, even though it may look like it will overwrite the existing content “Hello Everyone” - this is because a String is immutable.
      On the other hand, a StringBuilder object can change - this is because a StringBuilder is mutable.

  • @ahmadaskar3360
    @ahmadaskar3360 2 ปีที่แล้ว

    as I Came from c++ background, what does the word new mean here> and why we are using it? is that mean we are creating the pointer by ourself?

  • @lawrencex5745
    @lawrencex5745 7 ปีที่แล้ว

    Hey David. Really great videos, keep up the good work.
    I'm a part time music teacher my knowledge of computers is not vast for a self-taught person. I have taught myself to use Excel and over a period of time and lots of you tubes have made quite a complicated set of pages that link to each other with various
    calculations like a database, and use this to keep my records up to date. I am
    trying to create a visual Studio program in C# with customer information,
    times, dates that you can input, edit and save, which can also be displayed on
    various pages and be able to print to a printer certain pages.
    Are you likely to be doing anything like this in the near future?
    As I can see for me this being quite a long project.

  • @darkyolks
    @darkyolks 7 ปีที่แล้ว

    Quality gold! I just have a quick noob question. At 7:00 why add the i++ at the end of that line? I'm sure I missed something in your last video about what ++ does but I figured I would ask if anyone feels like replying.

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you :) That is how for loops work. You give an initial value, define how long the loop loops and then how much it increments each time through the loop

  • @aacolive
    @aacolive 4 ปีที่แล้ว

    malloc(sizeof(int) * 10) from C language at 27:50 hehe

  • @saadtariq3632
    @saadtariq3632 7 ปีที่แล้ว

    Amazing video again !,
    How do you prepare for these videos? like for how long do you program in c# prior making these videos?
    What's your approach? do you read a book? then practice? then make a video? or how does it work ! how are you so good :p

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +1

      Thank you very much :) I have been using C# a lot for 1.5 years. For these tutorials I write down a list of things I want to cover and then just write code out of my head. Before I start a new series I always read the newest book to make sure I'm up to date.

  • @ankitgupta8797
    @ankitgupta8797 6 ปีที่แล้ว +2

    20:11 GT10 is a function having a parameter, but no parameter is passed while calling it. why?

    • @94D33M
      @94D33M 5 ปีที่แล้ว

      Because Array.Find, expects a predicate which is like a function which contains a condition. It knows you have to take in numbers from the array you passed in. You could have also done the same using lamda expression:
      int[] newintegers = { 1, 3, 40, 50, 6 };
      int foundint = Array.Find(newintegers, i => i > 10);
      Console.WriteLine(foundint);

  • @SalYourPalChencho
    @SalYourPalChencho 6 ปีที่แล้ว

    Thanks Sir! i appreciate you! it seems hard, but trying to learn!

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      Always feel free to ask questions. I'm here to help :)

  • @psychedelarte7257
    @psychedelarte7257 7 ปีที่แล้ว

    From Belgium Thanks for this

  • @YeetusEliteus
    @YeetusEliteus 6 ปีที่แล้ว +1

    the CC at 20:54
    x,D "so what we have available to us in Steve sharp"

  • @alaazarnaji6602
    @alaazarnaji6602 7 ปีที่แล้ว

    Hello Derek . such an amazing video but would u do a video or Explanation about multidimensional Array or jagged Array !
    cuz all the methods work fine on the simple Array but once i try on the MD Array or Jagged it gets crazy . thanks

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you :) I cover arrays in detail using Java here th-cam.com/video/f5OD9CKrZEw/w-d-xo.html

  • @samuelhwang1368
    @samuelhwang1368 7 ปีที่แล้ว +1

    Hi! Thanks for the video, informative as always. A quick question: What's the point of culture specific formatting starting at 23:09? It looked like you just appended text to sb2 with the CultureInfo functions not doing anything unless I missed something. Can you please elaborate? Thanks again!

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +1

      Thank you :) Different countries structure things like dates and currency different and this provides a way to change those depending on the user.

  • @confidential303
    @confidential303 6 ปีที่แล้ว

    This maybe offtopic, but I am stuck with Stringbuilder.Insert(index,character).
    Stringbuilder pass = new Stringbuilder();
    pass.Insert(2,"c"); \\throws an error out of index- - -
    I want to write randomly a character for say a string of 8 characters and I want to chooce randomly my index. Through a method It passes indirect the index value..then it magically works , but If I hardcoded the indexnumber then it says out of range?! (this was for testing purpose). I really dont understand this, why this happened. Can someone explain this.

  • @darkman237
    @darkman237 7 ปีที่แล้ว

    What if you wanted to Append a string with the contents of a list? How would that be done?

  • @pfdinc
    @pfdinc 5 ปีที่แล้ว

    Hey Derek, Great Videos. I was looking for a great tutorial/book help me understand collections in dept.. and suggestions?

  • @MemoirsOfADrainCleaner
    @MemoirsOfADrainCleaner 5 ปีที่แล้ว

    I am in need of assistance with a project dealing with StringBuilder in c#, more specifically, I need to find out how to loop through an array of strings, then for each array in the string use the Append () function of the String Builder to append the first letter of each string to the stringbuilder instance. Finally I have to return the stringbuilder instance from this function. Can you offer some assistance as I am currently stuck. Thank you very much:
    StringBuilder Q = new StringBuilder (5);
    for (int i = 1; i < Q.Length; i++)
    {
    }

  • @NovakGoran
    @NovakGoran 7 ปีที่แล้ว

    I have a question for you, Derek: Do you actually use all of these programs, which you covered in your extensive tutorials, or do you just learn about them, so you can teach people ?
    Great job btw, I've been messing around with C# for a couple of months now and it's freaking awesome!

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +6

      Thank you :) I have used everything I make tutorials on well before I made tutorials on the topic. Very often though I haven't used the language recently and in that situation I'll read up to make sure my tutorials are up to date. For example I used Prolog about a decade prior to making a tutorial on it. So I had to get reacquainted with it prior to making the tutorial. I also often also help college students with projects. As college students like to do, they often decide to use a specialized language I haven't used for a while and have to relearn it. Then since I put in that effort of learning it I often decide to make a tutorial. I did that for Lisp. For my consulting work what I use all of the time is JavaScript, PHP, Java and C#. Laravel is my favorite framework to work with and the reason I haven't made a tutorial on it is because I use it constantly and these tutorials give me a break from looking at Laravel :) I have a love hate relationship with Laravel, but don't tell here.

    • @NovakGoran
      @NovakGoran 7 ปีที่แล้ว

      Interesting! Thanks for the reply !

  • @forouhar4600
    @forouhar4600 6 ปีที่แล้ว

    Great tutorial

  • @jackblack3581
    @jackblack3581 6 ปีที่แล้ว

    How can i do this in C# while using an array. A program that reads in 5 names and prints out "Hello name" for all the name entered

  • @SunnyApples
    @SunnyApples 7 ปีที่แล้ว

    Thanks for the video.
    Looking forward to the next one!!!

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you :) It will be up tomorrow

  • @exzm2580
    @exzm2580 7 ปีที่แล้ว

    Hello Derek, Nice video thanks soo much. So like I said before. When you upload a video let's say learn in one video or any video doesn't matter. I start copying what you do. And I start memorizing the commanda and stuff. But the thing is I don't know how to develop on my own I just know what you're doing in the video. Please help. Thanks in advance.

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      What you are missing is the development of your problem solving abilities and object oriented design skills. I have a Learn to Program series th-cam.com/video/nwjAHQERL08/w-d-xo.html and an OOD series that should help with those th-cam.com/video/fJW65Wo7IHI/w-d-xo.html

    • @exzm2580
      @exzm2580 7 ปีที่แล้ว

      +Derek Banas Ohhhhh okayy thank you soooo much Derek really appreciate it a lottt:). I should watch the whole 24 parts of learn to program right?

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      It should help a lot. Object Oriented Design actually better explains how to turn thoughts into actual code. It may be hard to understand though if you don't know Java. It's free though so check it out.

    • @exzm2580
      @exzm2580 7 ปีที่แล้ว

      +Derek Banas Alright thank you so much Derek. You really put a lot of hard work and effort into this. Thank you so much, wish you the best of luck of whatever you're doing :) Cheers!

  • @kareemjeiroudi1964
    @kareemjeiroudi1964 6 ปีที่แล้ว

    I liked this tutorial more the similar one of JAVA.
    Thanks anyway for your efforts.

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      Thank you very much :)

  • @lawrencex5745
    @lawrencex5745 7 ปีที่แล้ว

    Apologies Derek for getting your name wrong. Which would be
    the better language to use for the program I am trying to make, Visual Basic or
    C#?

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Everyone messes up my name. Don't worry about it. C# is my favorite language period

  • @zkfdsldfjsdjfl1
    @zkfdsldfjsdjfl1 7 ปีที่แล้ว

    can you have a series on API Frameworks Algorithm Discrete Math Programming Paradigms some sort of the under the hood stuff to help us understand codding better

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +1

      I'll see what I can do. I was going to cover discrete math at one point, but I thought the Kahn Academy had already done it

  • @eitzhadas
    @eitzhadas 7 ปีที่แล้ว

    Great video! One question, why don't you use the dollar sign ($) to write strings instead of the more tedious {0}, {1}, etc. method you're showing?

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      I cover both ways as the tutorial continues

    • @eitzhadas
      @eitzhadas 7 ปีที่แล้ว

      Aha, but you still prefer the String.Format style method?

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      I use both depending on the situation

  • @pastrie42
    @pastrie42 5 ปีที่แล้ว

    I know this is old, but you mention at 20:20 that you can use Array.FindAll instead of Array.find to retrieve all of the values that match the GT10 conditions, but when I type Array.FindAll instead of Array.Find it shows "System.Int32[]"
    I'm having issues googling the solution, and I feel a little dense. Can someone point me in the right direction to understand this? It looks like the string can not write the array it's returning?

    • @pastrie42
      @pastrie42 5 ปีที่แล้ว

      Someone above had the solution! Using string.Join
      Console.WriteLine("All > 10 : {0}", string.Join(",", Array.FindAll(numArray, GT10));

    • @rodmanunderhilliii8198
      @rodmanunderhilliii8198 3 ปีที่แล้ว

      @@pastrie42 thanks a lot, I spent an hour trying to work out, how to get this to work.
      and a heads up; missing a parenthesis ) at the end, there is 3 of them ....GT10 )));
      to 'FindAll' the amount, of elements that are greater than 10
      Console.WriteLine("All > 10 : {0}", Array.FindAll(numArray, GT10).Length);

  • @the.nthaaaa
    @the.nthaaaa 3 ปีที่แล้ว

    Hi can you please do these videos using visual basic😪😪

  • @wilbertraymundrayos4175
    @wilbertraymundrayos4175 3 ปีที่แล้ว

    Quick question: What's the very first programming language you learned??

    • @derekbanas
      @derekbanas  3 ปีที่แล้ว +1

      Over 30 years ago my first language was Basic soon followed by Pascal, Assembly and then C++

  • @Emi-jh7gf
    @Emi-jh7gf 6 ปีที่แล้ว

    Doesn't custNames[i,j] do the same thing as custNames.GetValue(i,j).Can someone please tell me the difference between these two?

  • @jeremybrews2521
    @jeremybrews2521 7 ปีที่แล้ว

    For the multi arrays section I was playing with the for loop and for the inner for I was wondering what is a preferred method Console.Write(" {0}", custNames.GetValue(i, j)); or Console.Write(" {0}", custNames[i, j]); They both work. Just curious Thanks.

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      You can do either. I always default to what ever makes the code easier to read

    • @jeremybrews2521
      @jeremybrews2521 7 ปีที่แล้ว

      Gotcha. Thanks for the quick reply

  • @ivanpavlov1905
    @ivanpavlov1905 7 ปีที่แล้ว

    Hello Derek!. I'd like to ask you, which plug-in or option did you use for the vertical dash lines that connect your curly brackets, i get confused without it so i think it would be of help.
    Thanks in advance ! :)

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Hello Ivan, I'm using the default version of VS 2017 RC. I'm not sure what you set if it is turned off in your version

  • @MaggotNr9
    @MaggotNr9 7 ปีที่แล้ว +1

    how about sockets and async, I would love to see it

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +3

      This will be a very long series and I'll do my best t cover most things

  • @machiavelidx7269
    @machiavelidx7269 6 ปีที่แล้ว

    Help Derek, can't figure out how to work with 3D arrays, can you give an example please.

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      I've been told I did a good job of explaining them here th-cam.com/video/f5OD9CKrZEw/w-d-xo.html

  • @skrabmir
    @skrabmir 7 ปีที่แล้ว

    Can someone please explain to me, how looping through a MD array works? I can't undestand it.
    I want to print out all the elements of [2,2] array - that means all those positions 0,0/0,1/1,0/1,1. As shown in the video i need to incement i and j AND THIS is the part i don't understant. In the first looping I print out this position 0,0 but then comes the incremention and suddenly I'm stuck with 1,1 position - at least in my head. Can someone explain to mehow it actually works and point out what am I doint wrong?

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      I was told I explained multi-dimensional arrays well in this video. It is Java, but Java is very similar to C# th-cam.com/video/f5OD9CKrZEw/w-d-xo.html

    • @skrabmir
      @skrabmir 7 ปีที่แล้ว

      Thanks for the fast response, I will definitely chceck out the video you mentioned.

  • @VenterPlayGames
    @VenterPlayGames 5 ปีที่แล้ว

    Excellent!!!

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว

      Thank you :) I'm happy I could help

  • @andresbeltranmendez7927
    @andresbeltranmendez7927 7 ปีที่แล้ว

    Hi Derek... Is there any chance you do a PowerShell scripting tutorial? :D

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Hi, Yes it is on the list

  • @Procyon58
    @Procyon58 7 ปีที่แล้ว

    Hey derek thanks for all the lessons! You got any plans for react?

    • @badmuskaybee5111
      @badmuskaybee5111 7 ปีที่แล้ว

      Please let Mr Derek focus on C# till febuary then we will go to JavaScript framework. 1 step at a time

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      I'll see if I can make a learn in one for it

  • @ivanmah7551
    @ivanmah7551 7 ปีที่แล้ว

    In visual studio, do you prefer WinForm or WPF? and why

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      WPF definitely because it is way more flexible

    • @ivanmah7551
      @ivanmah7551 7 ปีที่แล้ว

      what is the difference of this video compare to your visual studio video since both are using c#

    • @badmuskaybee5111
      @badmuskaybee5111 7 ปีที่แล้ว +1

      Windows form is use when u dont want to design ur controls and UI while Windows Presentation From is use with xaml to easily re design ur controls and UI

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      This tutorial will go into much more detail

  • @rockmetalband
    @rockmetalband 7 ปีที่แล้ว

    c sharp gui? will you post?

  • @burnburn14
    @burnburn14 7 ปีที่แล้ว +2

    Hey Derek! Are you going to start going to ASP.net? I would LOOOVEEE to learn web application dev from you. :D

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +5

      Yes it is on the list

    • @martinnoah9716
      @martinnoah9716 7 ปีที่แล้ว +3

      +1 for ASP.net and MVC

    • @gaullin8689
      @gaullin8689 6 ปีที่แล้ว

      Let's see it when you have the time. You're doing awesome work!

  • @enkiimuto1041
    @enkiimuto1041 6 ปีที่แล้ว

    Coming here after giving a look on C++
    God, this is way easier to read.

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว +1

      Yes C# is my favorite language

  • @keviballa9033
    @keviballa9033 7 ปีที่แล้ว

    Please tell me what language should i learn for ios app development please tell me the easiest

    • @chicadeePopper
      @chicadeePopper 7 ปีที่แล้ว

      Swift. Derek has a video.

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you for helping :)

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Yes Swift and here is a tutorial th-cam.com/video/6Zf79Ns8_oY/w-d-xo.html

    • @keviballa9033
      @keviballa9033 7 ปีที่แล้ว

      Thank you both

    • @turnen69
      @turnen69 7 ปีที่แล้ว

      Derek Banas aint ios development c++ and c based?

  • @dillon1977
    @dillon1977 6 ปีที่แล้ว

    is private method the same of C++?

  • @CodeFrog
    @CodeFrog 7 ปีที่แล้ว

    loved it!

  • @olafferguson6993
    @olafferguson6993 4 ปีที่แล้ว

    Gold

  • @mycodeevolution2555
    @mycodeevolution2555 7 ปีที่แล้ว

    Hey Derek, I'm reading the c# book and in chapter 2 it says you can modify members in the Class Diagram. Do I really need to mess with this or leave it at default?

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      What do you mean by modify members? Can you give me an example?

    • @mycodeevolution2555
      @mycodeevolution2555 7 ปีที่แล้ว

      Here's the steps it gives. I'm not quite sure what it's referring to yet so please bare with me lol.
      The Class Designer utility works in conjunction with two other aspects of Visual Studio: the class details window (activated using the View > Other Windows menu and the Class Designer Toolbox (activated using the View > Toolbox menu item. The Class Details window not only shows you the details of the currently selected item in the diagram but also allows you to modify existing members and insert new members on the fly

    • @mycodeevolution2555
      @mycodeevolution2555 7 ปีที่แล้ว

      it shows the modifier changing from public, private, internal, protected internal..

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      I never use that. I tend to design my programs using UML like that on paper and then write the code. It provides a way to design graphically, but I never cared for that.

    • @mycodeevolution2555
      @mycodeevolution2555 7 ปีที่แล้ว

      Thanks for the tip!

  • @swatisen8507
    @swatisen8507 6 ปีที่แล้ว

    how did you know all this about c#

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      I study a lot. It is basically all I do and have been doing my whole life. I'll make a video about what I do soon

    • @swatisen8507
      @swatisen8507 6 ปีที่แล้ว

      till which age are you learning c#

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      I'm not learning the language at this time. I have been using it for so long it is easy for me now

  • @TheGamer-sq7st
    @TheGamer-sq7st 6 ปีที่แล้ว

    I can't find system.globalization

  • @noahfreeman3164
    @noahfreeman3164 7 ปีที่แล้ว

    hey Derek what recorder do you use?

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Camtasia 2, but I'm having trouble with it lately as you can see with the double cursor issue

    • @noahfreeman3164
      @noahfreeman3164 7 ปีที่แล้ว

      +Derek Banas thx

    • @Zen-jw5dy
      @Zen-jw5dy 7 ปีที่แล้ว

      +Derek Banas try using Bandicam. Its my preferred recorder, it does cost some money but I believe its a one time purchase. Records smoothly and is a bit wonky in the settings department, but it is pretty nice when you get the hang of it.

    • @applejack77778
      @applejack77778 7 ปีที่แล้ว

      Try OBS, it's free and open source.

  • @NubPaws
    @NubPaws 7 ปีที่แล้ว

    13:27 forgot to edit this out?

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Sorry about that. I'm still getting used to my new software.

    • @NubPaws
      @NubPaws 7 ปีที่แล้ว

      To which program have you moved?

  • @robinpoulose8017
    @robinpoulose8017 7 ปีที่แล้ว

    sharepoint online videos pls

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      I'll see what I can do

    • @robinpoulose8017
      @robinpoulose8017 7 ปีที่แล้ว

      thanks for prompt reply... any help is appreciated. Good luck ! :)

  • @tehpson
    @tehpson 7 ปีที่แล้ว

    holly sh*t that was fast

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +1

      I try not to waste time :)

  • @PixelBr
    @PixelBr 7 ปีที่แล้ว

    Gold!!!

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you for doing that :)

  • @aychtooo3981
    @aychtooo3981 7 ปีที่แล้ว +1

    Why and why shouldn't I be a game dev or programmer? Pros and cons.

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +29

      Your course of study shouldn't be based on my beliefs or anyones aside from your own. I know for myself that there was a job that I was meant to do that would be both fulfilling emotionally and financially. You should look for the same for yourself. It may take many years, but keep at it. There is nothing worse then spending the majority of your life doing something you hate.

  • @dimemarkoski3001
    @dimemarkoski3001 7 ปีที่แล้ว

    Gold

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you for that :)