14: Structs And Enums In C# | How To Use An Enum | C# Tutorial For Beginners | C Sharp Tutorial

Поделиться
HTML-код
  • Опубликовано: 6 ноя 2024

Комментарии • 93

  • @henrychen540
    @henrychen540 4 года назад +52

    this guy is so much better than the $90 course I paid for on udemy

  • @Dani_Krossing
    @Dani_Krossing  5 лет назад +66

    My apologies if I seem tired/agitated on the video ':D
    This video was my 3rd attempt at recording this since...
    - My recordings ended up being corrupted
    - My audio got cut off short (no battery)
    - My camera ran out of power
    - I had to use an over complicated way to send my camera files to my primary PC
    Basicly everything went wrong ':D

    • @sakkakutamashi1801
      @sakkakutamashi1801 5 лет назад +7

      Just a code snippet: if you write cw and then hit tab it automatically writes Console.WriteLine("");

    • @_samirdahal
      @_samirdahal 5 лет назад +3

      @@sakkakutamashi1801 Double tab

    • @jahanzaibasgher1275
      @jahanzaibasgher1275 5 лет назад +1

      It actually made great sense to me. Thanks!

    • @sh8ma
      @sh8ma 5 лет назад +2

      Do you have any plan to complete C# courses
      i'm desperately waiting for the next episode

    • @Dani_Krossing
      @Dani_Krossing  5 лет назад +3

      @@sh8ma I'm having some technical difficulties with my equipment which is delaying any new videos. I have plans of getting everything fixed but it will be a while before I can afford replacing the broken equipment.

  • @gamedeveloper9098
    @gamedeveloper9098 4 года назад +10

    THIS GUY IS AWESOME!!! first he knows javascript and then he also knows game development in unity c#......a true PROGRAMMER!!!

    • @gameofcharging
      @gameofcharging 3 года назад

      Not Unity C#, I think, But standard C#
      Because Unity uses Mono C# to adds more functionality.

  • @d0msch326
    @d0msch326 Год назад +3

    After looking up Enums, because the description in my literature isn't quite good, I found your C# Playlist. Best thing that happened to me for getting into programming.

  • @wissalzaher4868
    @wissalzaher4868 3 года назад +10

    Some people just have that ability to teach with clarity, like this guy ! Thanks a lot :)

  • @leas6817
    @leas6817 3 года назад +3

    OMG ..I had never seen someone teaching codes this clearly and easily... thank you so much

  • @Duelweb
    @Duelweb Год назад +1

    If you stay on RUclips, you gonna hit a million subs! Clear, and to the point! Many thanks!!

  • @JonathonMcClung
    @JonathonMcClung 4 года назад +4

    Thanks, bro! This was super helpful! I watched this a few days ago when I was considering using an enum for a switch statement and couldn't imaging why I would want to convert a string into an enum in your final example. Lo and behold, that is exactly what I ended up needing to do further along in my project. I came back here and got the info I was barely paying attention to the first time. Lol

  • @senayfekadu6859
    @senayfekadu6859 5 лет назад +5

    and your video the whole playlist is amazing and doesn't leave a gap which doesn't confuse the student its cool keep it up like the details man

  • @cainothecreator8363
    @cainothecreator8363 2 года назад

    I love your setup. Actually seeing you type is just new and refreshing.

  • @shadyismad9419
    @shadyismad9419 3 года назад +3

    I felt like elon musk was teaching me c#. Lmao
    Thanks for the video , was very helpful & informative.

  • @theaalicha
    @theaalicha 2 года назад

    Youre the only guy on youtube that truly makes me understand every concept. Thank you so much for making these videos

  • @muhamadsyahrulfahmie7483
    @muhamadsyahrulfahmie7483 5 лет назад +1

    This is the best way of teaching. You deserve for more subscriber.

  • @4FrogsStacked
    @4FrogsStacked 2 года назад

    Definitely good to know structs. I've never used them but I did have a question about a struct in a pre-interview assessment test

  • @RodCast2012
    @RodCast2012 5 лет назад +1

    You are the Master! Thanks for your very valuable help!

  • @gaymerjerry
    @gaymerjerry 2 года назад

    I say a good way to describe a struct is when you make a class abunch of memory is allocated all over the place for different parts of the class and you dont know where in memory each variable is compared to eachother meanwhile a struct like this would see the 3 elements 2 strings and an int (well it would actually be 2 character pointers and an int but I wont boggle down the details here) and make sure they are in the same order in allocated memory so if you have the memory address of the first character pointer that points to the first string and move 8 bytes forward you know you are at the memory address of the second character pointer that points to the second string. This makes structs a lot better to manipulate but they should only be used when you have a small amount of variables that should be next to eachother in memory
    If none of that makes sense to you it doesnt matter for C# its more a carry over from being a C based language this stuff matters a lot more in C++ and C when you have total control over the memory

  • @bigdog3386
    @bigdog3386 5 лет назад +5

    Dear Teacher! :)
    Could you please talk about what namespace is? How to work with GUI? How can we work with different files for a software, and how make them communicate to each other, like in PHP "class extends blabla"? Please!

  • @mohammedahlam-v8f
    @mohammedahlam-v8f 7 месяцев назад +1

    superb explain ......................................!
    ☺😍

  • @mmaranta785
    @mmaranta785 2 года назад

    I like your teaching style

  • @BlackAsLight448
    @BlackAsLight448 4 года назад +29

    You look like a young Elon Musk.

    • @adzharkahar
      @adzharkahar 3 года назад +1

      he kind of sounds like elon

  • @ТимофейМахотин
    @ТимофейМахотин 8 месяцев назад

    I don't know who you're. I don't understand programming at all, but I love you

  • @turbdonkey
    @turbdonkey Год назад

    "Person" is a small thing?! Kidding, thanks for the great info.

  • @waleedbensumaidea3947
    @waleedbensumaidea3947 2 года назад

    Thank you so much, you'r amazing doing this

  • @vegetatutorials6144
    @vegetatutorials6144 5 лет назад +4

    Thank You so much, very useful, looking forward to th next one.

  • @senayfekadu6859
    @senayfekadu6859 5 лет назад +2

    when is the next episode coming out ? and how do we transform to the intermediate level ? with all the graphical design and creating an executable stand alone application

  • @Maccelerate
    @Maccelerate 5 лет назад +2

    Awesome video!

  • @hrithikgeorge4571
    @hrithikgeorge4571 5 лет назад +1

    So helpful! Thank you very much!

  • @yangwendi
    @yangwendi 2 года назад

    Thank you for the awesome video.

  • @Chhattralorenbun
    @Chhattralorenbun 5 лет назад

    thank you mmtuts you video it is really really understand with your explain and special you show the code step by step with a example also

  • @douglasposho9299
    @douglasposho9299 3 года назад

    keep up the good Work!!

  • @henrychen540
    @henrychen540 4 года назад +1

    Also question: Why use enums if you can use a readonly array. Isn't that like the same thing except with the array you can specify the data type?

  • @Case-A-Lace
    @Case-A-Lace 2 года назад

    Thanks for this!

  • @grenskrenofficial7846
    @grenskrenofficial7846 3 года назад +1

    You didn't mention this, the Enum.TryParse(string, out) when it sends 0 yes the number 0, or false, to the out variable if it is deemed false,, so you will just send the enum with the value 0 or the value 0 itself to the out variable. Idk if this is correct, i didnt read the Enum documentation

  • @nlogozzo
    @nlogozzo 5 лет назад +2

    Can you talk about async programming?

  • @nlogozzo
    @nlogozzo 5 лет назад +1

    Can you go over interfaces in c#?

  • @eaglezepplin
    @eaglezepplin 3 года назад

    Great Video. I have to know what you said at 8:44 though lol. I listened to it like 5 times and can't make sense of it. Sounds like some random dialect slipped through.

    • @katherine2209
      @katherine2209 2 года назад

      "so if we were to hover on top of var"

  • @timsem2624
    @timsem2624 4 года назад

    Thank you. I like you make performance, while you coding and then turn to the camera(spectrs), it's look like some educational tv show. About enums, its still the most confusing thing for me. Eng is not my native.

  • @nancyb1252
    @nancyb1252 4 года назад

    Good Video well done.

  • @nelsoneregil4219
    @nelsoneregil4219 5 лет назад

    cool presentation..love it

  • @travelubs
    @travelubs 4 года назад

    So helpful, thanks..

  • @trustingod0
    @trustingod0 2 года назад

    If i had a long connection string and i didnt want to always have to write it out could i use an enum ?

  • @nlogozzo
    @nlogozzo 5 лет назад +3

    Can you do a c++ series?

    • @Dani_Krossing
      @Dani_Krossing  5 лет назад +3

      I'm not planning a C++ course atm. It might be a future thing.

    • @nlogozzo
      @nlogozzo 5 лет назад +1

      @@Dani_Krossing I would like to learn c++ as I already know Java & python and I think you are a great teacher

    • @Dani_Krossing
      @Dani_Krossing  5 лет назад +1

      @@nlogozzo If you follow this C# course you will notice that C++ is an easier version of C# :) just a recommendation. It is why I decided to learn C# a few years back.

    • @nlogozzo
      @nlogozzo 5 лет назад

      @@Dani_Krossing I originally was learning c# about 4 years ago however then I switched to Linux and the c# support then wasn't good so I switched to java cause it was most similar and then I learned java. From there I went to python then c++. I like to stick to cross platform languages and c# was really made for windows

  • @Dazza_Doo
    @Dazza_Doo 2 года назад

    I came here for help with a programming book - I'm blown-away. If you had a tip jar, I would send you something :D

  • @Observ8or
    @Observ8or 4 года назад

    Dude you literally saved me

  • @verydifferentthought
    @verydifferentthought 5 лет назад +1

    Brother this is the end of tutorial or there will be another episode ? I will wait ur answer, thank u beforehand !

    • @redrey3339
      @redrey3339 5 лет назад +1

      mmtuts is having some tech issues so it'll be awhile until he replaces his equip

    • @verydifferentthought
      @verydifferentthought 5 лет назад

      @@redrey3339 ok

  • @joepsales3376
    @joepsales3376 4 года назад +4

    11:22 "Juice!"

    • @LuciSheppyLive
      @LuciSheppyLive 3 года назад

      That is the most happy "Juice" I've ever heard

  • @clo2club873
    @clo2club873 3 года назад

    what if i want to search in the entire enum for what strings it has and also know what integer its attached? like a foreach loop

  • @projectfednigeria
    @projectfednigeria 3 года назад

    Talk about enums begins 3:23

  • @zeuz3961
    @zeuz3961 4 года назад +2

    Thanks for the cursus dude. One more question! are you Elon musk twin brother? cause every time i see your video i ask myself where did i see you before!!

  • @sudharsann6784
    @sudharsann6784 2 года назад

    Can we add a space in enum?

  • @Codality
    @Codality 3 года назад

    thx a lot

  • @skintaker1949
    @skintaker1949 4 года назад

    what is the difference between Casting and Parsing?

    • @mmaranta785
      @mmaranta785 2 года назад

      Casting changes the data type. Parsing works on the data

  • @zaidsaiyed6076
    @zaidsaiyed6076 5 лет назад

    Hey , I'm from India and i like ur tutorials specially css, js, jquery...can you please make tutorials on bootstrap?

  • @henrik3098
    @henrik3098 2 года назад

    great

  • @ashutoshsingh5568
    @ashutoshsingh5568 3 года назад

    Wow, I m excited to learn c# from Elon musk. 😁

  • @abdiazizalinor473
    @abdiazizalinor473 4 года назад

    where is discription

  • @abdiazizalinor473
    @abdiazizalinor473 4 года назад

    where is link mi dear teacher

  • @justsomenamelesssoul8097
    @justsomenamelesssoul8097 4 года назад

    Elon Musk teaching C# on youtube

  • @kimcorson4458
    @kimcorson4458 3 года назад

    why is it that every time this guy looks at the camera I think for a split second: Elon Mu- oh... I could have sworn...

  • @_savage
    @_savage 3 года назад

    Dude, can you type a lil bit faster?

  • @codingwitheric6774
    @codingwitheric6774 3 года назад

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    namespace GreatVideo
    {
    class Program
    {
    static void Main(string[] args)
    {
    string message = "great Video!";
    bool videoWasAlsome = true;
    if (videoWasAlsome)
    {
    Console.WriteLine(message);
    }
    else
    {
    Console.WriteLine("This Video sucked");
    }
    }
    }
    }

  • @H2R_sahil
    @H2R_sahil 2 года назад

    elon musk ?

  • @JohnK68
    @JohnK68 Год назад

    Not well explained.

  • @guyonlead
    @guyonlead 5 лет назад

    The 1% that uses Structs for editing Binary files...

  • @user-fw3wl6rv1v
    @user-fw3wl6rv1v 2 года назад

    Enum does not contain a definition for TryParse! how do I define it?

  • @SweepAndZone
    @SweepAndZone 8 месяцев назад

    software elon musk