C# type casting 💱

  Рет қаралды 55,498

Bro Code

Bro Code

Күн бұрын

Пікірлер: 40
@BroCodez
@BroCodez 3 жыл бұрын
using System; namespace MyFirstProgram { class Program { static void Main(string[] args) { // type casting = Converting a value to a different data type // Useful when we accept user input (string) // Different data types can do different things double a = 3.14; int b = Convert.ToInt32(a); int c = 123; double d = Convert.ToDouble(c); int e = 321; String f = Convert.ToString(e); String g = "$"; char h = Convert.ToChar(g); String i = "true"; bool j = Convert.ToBoolean(i); Console.WriteLine(b.GetType()); Console.WriteLine(d.GetType()); Console.WriteLine(f.GetType()); Console.WriteLine(h.GetType()); Console.WriteLine(j.GetType()); Console.ReadKey(); } } }
@vagifgafar2946
@vagifgafar2946 2 жыл бұрын
Convert.ToInt32() - is not truncating, but rounding
@MTP2nd
@MTP2nd 10 ай бұрын
​@@vagifgafar2946 then use Convert.ToInt32(Decimal.Round(value, 0, MidpointRounding.ToZero)); since Visual Studio 2022 }
@Cricketstatusyt
@Cricketstatusyt 2 жыл бұрын
I Learned C# From your channel got a job in Fullstack web developer at Cognizant. Thank you Bro😍😍
@elliotradley4370
@elliotradley4370 2 жыл бұрын
I have been recommending this channel too so many people in my classes, they all love the content, keep up the great content
@NexxtMeme
@NexxtMeme Жыл бұрын
Bro i absolutely love how clear and clean your method of teaching is 🙏
@excaliburst0054
@excaliburst0054 Жыл бұрын
One best tutor around here in youtube, i watched your java form video, please can you make wpf c# tutorial as well.
@scriptles
@scriptles 7 ай бұрын
So I am a C++ programmer that still uses a little C. My work gave me an offer to go help out another department. My department sorts mail, and the other department does full stack development. They use C# and I have been dragging my feet for years to learn it. Now that I actually am going to be a step closer to my dream I am taking it serious now to learn c#.
@sangitakumari5482
@sangitakumari5482 2 жыл бұрын
Nice video 👍👍😊
@v4t0z
@v4t0z 3 жыл бұрын
Nice video
@urreallysus
@urreallysus 2 жыл бұрын
best tutorial channel
@Myotiss22
@Myotiss22 6 ай бұрын
Thank you for simplicity
@maxzzzie
@maxzzzie 2 жыл бұрын
This dude. Is a legend.
@codingdisciple3765
@codingdisciple3765 Жыл бұрын
Preciate the video fam🤗
@WickedJackThe1
@WickedJackThe1 Жыл бұрын
Is it bad practice using only the keywords, for primitive datatypes, to cast? double pi = 3.14; int a = (int)pi;
@WickedJackThe1
@WickedJackThe1 Жыл бұрын
But string is not a primitive Datatype.
@antefavour1327
@antefavour1327 2 жыл бұрын
Thank you a lot,I really gained well
@Garrettwest2025
@Garrettwest2025 3 жыл бұрын
You have any projects for c#?
@spartanranger
@spartanranger 3 жыл бұрын
Thanks for the video Bro
@lampywicks
@lampywicks Жыл бұрын
I haven't watched the video yet, but I heard that "Oh yeah", scrolled down and saw the channel avatar and name, immediately hit that subscribe button. It became clear to me at this moment, this is no ordinary channel, this is a man's channel. This is the kind of channel you go to when your masculinity is overpowering you and needs to be released through pure unadulterated logic. I already know that by watching your videos, my brain is going to be forming new connections that function as if they were created through the use of organic steroids formulated from the biological specimens of subjects that would make Arnold Schwarzenegger and Randy Savage weep tears of estrogen and pass winds of talcum powder and floral scented air sanitizer. This might sound a bit like a joke, but that's just how I put my thoughts into words. My mind and body is ready. I'll watch the video now.
@pumpkinpigamingtechnoblade7902
@pumpkinpigamingtechnoblade7902 Жыл бұрын
What
@sandarubandara4437
@sandarubandara4437 11 ай бұрын
Thank you
@simik4830
@simik4830 2 ай бұрын
comment for algorithm!!!
3 жыл бұрын
Thanks!
@ericsebhig664
@ericsebhig664 3 жыл бұрын
If the user input consist of numbers and sentences, do you have to convert it into a string ?
@gillnabiel8385
@gillnabiel8385 3 жыл бұрын
Yeah (I believe )
@irfanhakim4617
@irfanhakim4617 3 жыл бұрын
yup..
@ZeeWolfed
@ZeeWolfed 2 жыл бұрын
thanks
@K4vin60
@K4vin60 10 ай бұрын
droppin a comment for that algorithm!
@Onyvox
@Onyvox 2 жыл бұрын
Bool is Cool
@whitedinamo
@whitedinamo 2 жыл бұрын
lesson check😇
@Trashcan-Memes
@Trashcan-Memes Жыл бұрын
didnt you first use VS code now this like is this a mandela effect
@syeid_mot
@syeid_mot 10 ай бұрын
I like pizza
@QuareSAND
@QuareSAND 8 ай бұрын
Same
@budderrar5751
@budderrar5751 2 жыл бұрын
noice
@azhanisyahputra9867
@azhanisyahputra9867 2 жыл бұрын
bro code
@jayleonis1334
@jayleonis1334 8 ай бұрын
hahahahaha gString...
@sarpcanuzel7750
@sarpcanuzel7750 2 жыл бұрын
fart
C# user input ⌨️
3:35
Bro Code
Рет қаралды 58 М.
C# objects 🧍‍♂️
5:01
Bro Code
Рет қаралды 53 М.
УДИВИЛ ВСЕХ СВОИМ УХОДОМ!😳 #shorts
00:49
Type Casting | C Programming Tutorial
8:17
Portfolio Courses
Рет қаралды 33 М.
C# output 💬
4:18
Bro Code
Рет қаралды 57 М.
Casting VS Converting VS Parsing in C#: Which to choose?
8:17
tutorialsEU
Рет қаралды 10 М.
C# Lists 📃
6:46
Bro Code
Рет қаралды 111 М.
C# constructors 👷
5:44
Bro Code
Рет қаралды 89 М.
Type Conversions in C++
15:04
Neso Academy
Рет қаралды 65 М.
Всё об указателях в C++ за 20 минут
20:00
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 300 М.