Part 46 C# Tutorial Enums Example

preview_player
Показать описание
Tags
c# enum tutorial
c# enum example
c# enum int example
c# enumeration example
enum in c#.net with example
working with enums c#
how to use enum in dotnet

In this session we will learn
1. Using enum in an example
2. The advantages of using enums

Text version of the video

Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.

Slides

All C# Text Articles

All C# Slides

Complete C# tutorial

All Dot Net and SQL Server Tutorials in English

All Dot Net and SQL Server Tutorials in Arabic
Рекомендации по теме
Комментарии
Автор

One of the best teachers on youtube. Thanks

creneemugo
Автор

Great video but you forgot to mention that Enums will easily convert to strings. You can delete the "GetGender" function and instead just print customer.Gender.

crazyfox
Автор

I've learned so much from you. Thank you.

Dreadric
Автор

Your training videos were very helpful for beginners and we easily catch the concept . Thank You Venkat...

battalakhageswarrao
Автор

Always i keep in touch this channel because i have increased my language efficiency through  this channel video i am a fan of sir Kudvenkat. He is my c#.net teacher

rashedulhasan
Автор

I am restarting my career after a huge gap and your videos helped tremendously to catch up everything...thanks a lot...god bless you

varshatavade
Автор

Thank you Mr. Venkat. You are real C# guru.

nomoretechie
Автор

Hi Venkat,
I love all of your video and feel everything very easy after watching your every video..N must say u got very nice voice too.

deepthiranganathan
Автор

Great video, but we need not call a function explicitly, we can simply use - {customer.Gender}"Anyway, the whole point of this video is to teach Enum so a big thumbs up. Hope this helps someone.

karthikvyas
Автор

Hi Venkat, again amazing tutorial. Just wondering why the GetGender method was included, as the programme works without it. Not sure what the GetGender methods' purpose is here? Anyone any ideas?

Thanks Venkat

markhynes
Автор

Keep going and uploading fantastic tutorials and thank you!
== "Male", I do not think we should write switch for getting the enum text. But I believe you will tell the same in next video :-)

Trzbne
Автор

Good stuff, thank you. Bonus points for acknowledging "Mark" as a strong, manly name.

dangerass
Автор

The method is public static string GetGender(Gender gender);
it is called in the foreach statement in the main method, and the customers Gender variable is passed.

LokeshThakur
Автор

Thanks a lot Venkat. It was awesome.

dorathysandhya
Автор

Greetings from Poland, great tutorials :)

bartosz
Автор

we can do these same program like using struct ryt

vineethrathna
Автор

Interface
IComparible has a CompareTo method that allows you to compare variables of two objects and return one for sorting
AbstractClass:
Class mammal, with two abstract methods MammalType and MammalSound, there would never be any point implementing these methods or this class.
But lets say class dog, cat and whale inherit from mammal and override its methods then we can return or print the MammalType as dog, cat and whale, and MammalSound as Woof, meow and whatever sound a whale makes.

LokeshThakur
Автор

Hi venkat,

Can u please tell me real time scenario where we use interfaces and abstract class.

Thanks.

winK
Автор

Hi, venkat, is that we always give the value from enum through switch or if statements?

ryizzwell
Автор

Maybe he kept the method for the fact that he can define a default case in the event the gender is not Male, Female, or Unknown? That's the only thing I could think of or he kept it for the sake of showing how you could just replace pieces from the old example and make it work with enums.

zeroxx