C# generics ⁉️

  Рет қаралды 84,157

Bro Code

Bro Code

Күн бұрын

Пікірлер: 158
@BroCodez
@BroCodez 3 жыл бұрын
using System; namespace MyFirstProgram { class Program { static void Main(string[] args) { // generic = "not specific to a particular data type" // add to: classes, methods, fields, etc. // allows for code reusability for different data types int[] intArray = { 1, 2, 3 }; double[] doubleArray = { 1.0, 2.0, 3.0 }; String[] stringArray = { "1", "2", "3" }; displayElements(intArray); displayElements(doubleArray); displayElements(stringArray); Console.ReadKey(); } public static void displayElements(Thing[] array) { foreach (Thing item in array) { Console.Write(item + " "); } Console.WriteLine(); } } }
@girlkun7518
@girlkun7518 3 жыл бұрын
Hi! Could you make a video about topic "How to handle 2 keys pressed simultaneously in java"? Please... I'm Vietnamese and I'm really looking forward to this
@gaccone1.1
@gaccone1.1 Жыл бұрын
Thanks for code.
@nwerxuser6599
@nwerxuser6599 8 ай бұрын
Bro we need advanced C# videos.
@robertmanigault625
@robertmanigault625 3 жыл бұрын
I watched 2 other videos in which the presenters, although very knowledgeable, rambled on incessantly while attempting to explain generics. Your explanation is clear and concise and above all, effective. Keep up the good work, Bro.
@UmarAlFarooq
@UmarAlFarooq 2 жыл бұрын
Exactly right?? Damn, why can't they be like this guy, just get to the point and get done with it!
@omoloni
@omoloni Жыл бұрын
​​@@UmarAlFarooqi'm from Russia, i even got it, but i knew
@johansno5019
@johansno5019 Жыл бұрын
Exactly. I feel most tutorials are like that. Too much unnecessary info and jumping from thing to thing, and just skimming through what you want to know. I love when it's just straight to the point like these
@black-forest-code
@black-forest-code 2 жыл бұрын
This is the shortest but most understandable video on Generics I've found so far! Thanks very much!
@fjeanjoseph
@fjeanjoseph 6 ай бұрын
To the point. No spending 30+ min just to explain a simple concept. Thanx
@Andrew-mo9gy
@Andrew-mo9gy 2 жыл бұрын
This is the best explanation of generics I've ever heard. Made it so simple to understand. Great demo. Thanks 🙏
@codewithdalvin
@codewithdalvin 7 ай бұрын
I've watched some videos about C# in english and spanish and as far as now you are one of the best choices for learning C# because the way you explain all that thing easy. Thanks!
@davestorm6718
@davestorm6718 2 жыл бұрын
Not sure how I got away with not using generics in many years of programming, but I wish I had before. This is the most concise explanation I've seen (there are hour long videos on this topic, but this is the best).
@rasmuspennanen5823
@rasmuspennanen5823 2 жыл бұрын
Holy balls bro I'm taking my first uni course on C# and every one of your videos that I've watched has been an absolute godsend🙏
@Bear-nr9jo
@Bear-nr9jo 3 жыл бұрын
Best teacher fr
@cabbiechuck
@cabbiechuck Жыл бұрын
Clearest, most concise example of generics I have come across!
@johnspencer772
@johnspencer772 Жыл бұрын
A great simple explanation of something I had 'worried' over through the years. I can see now that a long-winded explanation is not necessary. If anything, that long-windedness begins the trip into confusion. I can see no that generics took 'overloading' a step further!! Thanks!!
@floyd666uk
@floyd666uk 2 жыл бұрын
Excellent video, always struggled with generics and you've just made me get it in 5 mins.
@rain8635
@rain8635 6 ай бұрын
this was actually such a simple yet super helpful explanation and great visualized by the example! thank you so much :)
@DamnTimCan
@DamnTimCan 2 жыл бұрын
Best clear explanation of why generics I have found. Thank you
@vikneshar139
@vikneshar139 7 ай бұрын
That's some precise explanation about generics. Nice bro!!!
@redheadrusskie
@redheadrusskie 3 жыл бұрын
A copiously underrated channel. I love your stuff, please keep it up!
@Colin_Lawlor_Audio
@Colin_Lawlor_Audio 3 ай бұрын
If only the millions of pages of documentation by major companies was only half as simple to understand as this. Thank you for speaking human, most programmers cant anymore.
@_b001
@_b001 2 жыл бұрын
🤧🤧🤧 I'm in tears, the first language that I learnt is javascript and now in my company we use c#, I have searched a number of videos and articles and they all try to confuse generics as much as possible but this video is a gold mine, I have to scroll down for this video to show up, I will share this channel so others can subscribe to this too, thank you very much bro.
@noextrasugar
@noextrasugar Жыл бұрын
Broooo I hit like after first 5 sec, and the ‘Thing’ just seal the deal 🤝 immediately subscribed! Best 5mins video series !!
@atauygur8852
@atauygur8852 Жыл бұрын
I am 👌 this close to start worshipping you. It is amasing you can make me feel confident about magical and scary words I always hear in tutorials and courses in 5 minutes.
@karlallanicsky
@karlallanicsky Жыл бұрын
Thank you! While watching this I've had realizations in which "I could have done that during my functions in xxx" Thank you so much, you explain everything so well
@luissabalaable
@luissabalaable 2 жыл бұрын
straight to the point and easy to understand. Thanks Bro Code!
@kopilkaiser8991
@kopilkaiser8991 Жыл бұрын
Bro you are the best. Thank you for teaching us about generics. I liked, commented, and shared your valuable video. It needs to he spreaded in order to teach all who are willing to learn. Definitely, a lot of wandering souls who are lost on thia topic 😊 😅
@LeonardoMolina-gr5lo
@LeonardoMolina-gr5lo 2 жыл бұрын
Great, Clear, Concise. Just amazing
@mirm0n
@mirm0n 2 ай бұрын
Easy to understand and straight to the point. Thank you!
@fredchuks7822
@fredchuks7822 2 жыл бұрын
Best explanation of generics ever! Thanks a lot.
@rehanbhojani2112
@rehanbhojani2112 2 жыл бұрын
i never comment, but i must tell u that u are the best and explain concepts straight forward
@mamabrowsss1160
@mamabrowsss1160 2 жыл бұрын
I can't even count the number of videos I've watched on Generics and it still confuses me. After watching this, and the way you kept it simple and straight to the point, I finally get it!! Thank you :)
@ag4-z4z
@ag4-z4z 10 ай бұрын
0:19 that was such a solid uhhhhhhhahhhhhhhh
@VinayKhandagale-r8i
@VinayKhandagale-r8i Жыл бұрын
So well explained! Have been confused about what the means and nobody ever explained it's just something you can name according to your choice
@fozler
@fozler Жыл бұрын
Genius explanations brother
@Yinyan662
@Yinyan662 2 жыл бұрын
thank you for these short and effective explaining videos! keep up the good work!
@FREDO-py4ti
@FREDO-py4ti Жыл бұрын
Thank you Sir for this quick and clear explaination about GENERICS...i understand it a little bit better !!!
@LuzuVlogsGamer
@LuzuVlogsGamer Жыл бұрын
This is what Perfection looks like ;o
@vidazarei3951
@vidazarei3951 2 жыл бұрын
Thank you so much, you explained Generics in the simplest way.
@John99YT
@John99YT 3 ай бұрын
Thank you ❤ not even my teacher explained this. I wonder how they got hired. However they introduced me to method overloading which you used in first place.
@daniyalahmed97
@daniyalahmed97 2 ай бұрын
Bro youre an absolute g. You make coding simple af
@DuI41093
@DuI41093 2 жыл бұрын
Bro your explanation are really simple its really easy to understand . Thank you very much
@grantwilliams9838
@grantwilliams9838 Жыл бұрын
Awesome. I've been searching everywhere for an explanation on this syntax. Finally found it in an accent I understand and with a very easy to understand example. Well done Bro !!!
@kylekyle8131
@kylekyle8131 2 жыл бұрын
Clear and straight to the point! Awesome video 👍
@SAMSTUDY-m4d
@SAMSTUDY-m4d 5 ай бұрын
Really Good man.
@nueledem3525
@nueledem3525 2 жыл бұрын
So simple! An amazing teacher!
@YuriiHonta
@YuriiHonta 2 жыл бұрын
Using THING to explain is giving us association. Genius.
@Atom-Mercury
@Atom-Mercury Жыл бұрын
You explain so well, bravo Bro.
@001marselle
@001marselle Жыл бұрын
I like your videos since you convert the difficult things to easy
@kirillberia1797
@kirillberia1797 3 жыл бұрын
Love your tutorials!
@UlisesGB.
@UlisesGB. Жыл бұрын
short, specific and great. You got a new subscriber :)
@pydzio
@pydzio 2 жыл бұрын
Awesome! This concept is actually very easy to understand.
@AbdullahAkhtar-mo7ro
@AbdullahAkhtar-mo7ro 5 ай бұрын
Brilliant explanation in less time 😇
@andywawa7227
@andywawa7227 2 жыл бұрын
clear, structured and simple, thanks bro 😉
@kylekeenan3485
@kylekeenan3485 2 жыл бұрын
Wow light bulb moment. So many times I have had code that I try to avoid duplicating and the only difference is the data type resulting in me having to duplicate the code. This is the solution! I am surprised none of the 5 senior Devs at my workplace ever mentioned using generics in the code review though!
@uweopfern
@uweopfern 2 жыл бұрын
Best generics tutorial that i have ever seen
@РахматиллаАбдукадыров-ф8щ
@РахматиллаАбдукадыров-ф8щ 2 жыл бұрын
cool video,nice explanation,thanks
@قناةالطيبالمعلوماتية
@قناةالطيبالمعلوماتية 2 жыл бұрын
ّ I learned a lot from you. Thank you so much
@suzu6165
@suzu6165 11 ай бұрын
PERFECT. thank you so much sir 🙏🙏
@hayotbahromnurdinov7409
@hayotbahromnurdinov7409 Жыл бұрын
thanks bro for your helping, I thought I never understand generic types
@glasgood9907
@glasgood9907 4 ай бұрын
Straight to the point
@givolimyerukim
@givolimyerukim 2 жыл бұрын
very straight forward, thanks bro
@manikandanu1507
@manikandanu1507 2 жыл бұрын
Thanks bro. It's very helpful ☺️👍
@GovindKumar-xj9yw
@GovindKumar-xj9yw 9 күн бұрын
Clear and concise
@rashidfarhan6223
@rashidfarhan6223 10 ай бұрын
HELL YEAH BROTHER! I'LL ALWAYS TYPE THING FROM NOW ON!
@danielam1247
@danielam1247 Жыл бұрын
Thank you it was very clear bro!
@cyrocyro7904
@cyrocyro7904 2 жыл бұрын
Man keep up the good work
@staayfan
@staayfan 2 жыл бұрын
Merci infiniment bro… simple and very precise
@FullExtension1
@FullExtension1 2 жыл бұрын
you are such a bro, bro
@redteamgarage299
@redteamgarage299 18 күн бұрын
Thank you so much for this ❤
@Siuuu-gy8ro
@Siuuu-gy8ro Жыл бұрын
I like how you only explain the subject of the video. You explained what generics are, thats it. You could also have explained sorting with generic types but that would be to much info and people might get confused. W bro code.
@ahmedel-saadany703
@ahmedel-saadany703 2 жыл бұрын
Fantastic brooo🖤
@ic_1234
@ic_1234 Жыл бұрын
why doesnt it print 1.0, 2.0, 3.0?
@enespinar9711
@enespinar9711 Жыл бұрын
Bro you taught me better than my college professor
@spartanranger
@spartanranger 3 жыл бұрын
Thanks for the video Bro.
@slashd
@slashd 2 жыл бұрын
Can we get an example how to use this with multiple add functions for Entity Framework?
@tbtmtfth
@tbtmtfth Жыл бұрын
great videoooo
@nickout99
@nickout99 2 жыл бұрын
Would be nice too see if it would show decimals and alphanumeric characters also, just to see what the limitations are
@lethokuhleNongcebo
@lethokuhleNongcebo Жыл бұрын
Omg, Thanks.. This was so helpful🙏 Why is the double display a whole number and not a decimal?Just curious
@justamovie
@justamovie 2 жыл бұрын
🤯Thanks, Bro!
@aliabouhawia1563
@aliabouhawia1563 3 жыл бұрын
Thanks Bro:)
@prathameshgaikwad7550
@prathameshgaikwad7550 2 жыл бұрын
I just want to know can we use var or object data types as parameters for methods and a var or object data type in foreach loop?
@mertkurt947
@mertkurt947 Жыл бұрын
so understandable , thanks much
@fushitensho7840
@fushitensho7840 2 жыл бұрын
my lifesaver
@chrisgille1460
@chrisgille1460 2 жыл бұрын
So you can pretty much use generics as a alternative of boxing and unboxing??
@mostafataheri4939
@mostafataheri4939 Жыл бұрын
tnx that was grate 👍👍
@Adze-yah
@Adze-yah 2 жыл бұрын
ggs, this explanation helped me well.
@vasykloepexergasia7562
@vasykloepexergasia7562 Жыл бұрын
east or west bro is the best
@trustingod0
@trustingod0 Жыл бұрын
How does this work with Generic Types?
@yushi2220
@yushi2220 Жыл бұрын
Thank you
3 жыл бұрын
Thanks Bro!
@KhaledAlhelwane
@KhaledAlhelwane Жыл бұрын
thank you 🥰
@amplifiedge
@amplifiedge Жыл бұрын
thank you bro!
@armm6437
@armm6437 2 жыл бұрын
very useful!
@UmarAlFarooq
@UmarAlFarooq 2 жыл бұрын
Bro, you are AWESOME! You explained something in such a simple and straightforward way; that Tim Corey is a JOKE compared to your content.
@TidyWaste
@TidyWaste 6 ай бұрын
Thoughts and prayers lol
@fistofjustice13
@fistofjustice13 Жыл бұрын
Thanks bro
@Lonchanick
@Lonchanick Жыл бұрын
Nice!
@MartynasCepauskas
@MartynasCepauskas 3 ай бұрын
why not use objects ? :) I made my testing using T and its running any faster..
@fisix5151
@fisix5151 10 ай бұрын
yo thank you brother
@caseyspaulding
@caseyspaulding 2 жыл бұрын
Wow nice!
@jeremiahsease5784
@jeremiahsease5784 8 ай бұрын
So it's kinda like using var in Java script ?🤔
@sanasayyad1872
@sanasayyad1872 6 ай бұрын
When he calls displayElements(doubleArray); So in output why does it shows 1, 2 ,3 why not 1.0, 2.0,3.0 thats what he defined right someone please explain
@euphoriaorphan
@euphoriaorphan Жыл бұрын
thanks bro
C# multithreading 🧶
6:59
Bro Code
Рет қаралды 169 М.
C# Generics - The complete guide
18:43
Tarodev
Рет қаралды 42 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
C# enums 🪐
7:07
Bro Code
Рет қаралды 77 М.
C# static 🚫
5:03
Bro Code
Рет қаралды 83 М.
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 318 М.
Generics In Java - Full Simple Tutorial
17:34
Coding with John
Рет қаралды 1,1 МЛН
C# Generics Tutorial: Whats and Whys | Mosh
19:57
Programming with Mosh
Рет қаралды 264 М.
What are Generics? (C# Basics)
13:48
Code Monkey
Рет қаралды 153 М.
how Google writes gorgeous C++
7:40
Low Level
Рет қаралды 991 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 850 М.
C# polymorphism 🎭
5:11
Bro Code
Рет қаралды 91 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН