filmov
tv
Part 5 - C# Tutorial - Common Operators in c#.avi
Показать описание
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
All Dot Net and SQL Server Tutorials in English
All Dot Net and SQL Server Tutorials in Arabic
In this video, we will discuss the common operators that are available in c# programming language.
Assignment Operator =
Arithmetic Operators like +,-,*,/,%
Conditional Operators like &&, ||
Ternary Operator ?:
Null Coalescing Operator ??
Program without ternary Operator
using System;
class Program
{
static void Main()
{
int Number = 10;
bool IsNumber10;
if (Number == 10)
{
IsNumber10 = true;
}
else
{
IsNumber10 = false;
}
Console.WriteLine("i == 10 is {0}", IsNumber10);
}
}
Same program with ternary Operator
using System;
class Program
{
static void Main()
{
int Number = 10;
bool IsNumber10 = Number == 10 ? true : false;
Console.WriteLine("i == 10 is {0}", IsNumber10);
}
}
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
All Dot Net and SQL Server Tutorials in English
All Dot Net and SQL Server Tutorials in Arabic
In this video, we will discuss the common operators that are available in c# programming language.
Assignment Operator =
Arithmetic Operators like +,-,*,/,%
Conditional Operators like &&, ||
Ternary Operator ?:
Null Coalescing Operator ??
Program without ternary Operator
using System;
class Program
{
static void Main()
{
int Number = 10;
bool IsNumber10;
if (Number == 10)
{
IsNumber10 = true;
}
else
{
IsNumber10 = false;
}
Console.WriteLine("i == 10 is {0}", IsNumber10);
}
}
Same program with ternary Operator
using System;
class Program
{
static void Main()
{
int Number = 10;
bool IsNumber10 = Number == 10 ? true : false;
Console.WriteLine("i == 10 is {0}", IsNumber10);
}
}
Комментарии