<!DOCTYPE html>
<html>
<head runat="server">
<meta charset="utf-8">
<!-- Stylesheets -->
<link href="/css/bootstrap.css" rel="stylesheet">
<link href="/css/style.css" rel="stylesheet">
<link href="/css/responsive.css" rel="stylesheet">
<!-- Color Switcher Mockup -->
<link href="/css/color-switcher-design.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;800&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<link rel="shortcut icon" href="/images/favicon.png" type="image/x-icon">
<link rel="icon" href="/images/favicon.png" type="image/x-icon">
<!-- Responsive -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<!-- Page Intorduction Section -->
<meta name="description" content="C# (pronounced as C sharp) is a general-purpose, object-oriented programming language. Our C# programming tutorial will guide you to learn C# programming one step at a time with the help of examples.">
<link rel="canonical" href="https://c-sharptutorial.com/">
<title lang="en-us">Learn C# Programming</title>
<!--End Of Page Intorduction Section -->
<!--[if lt IE 9]><script src="~/js/respond.js"></script><![endif]-->
<style>
<!-- Logo Section -->
.logo a {
width: 60%;
height: 300px;
}
img {
width: 100%;
height: 100%;
object-fit: cover;
}
hr.new2 {
border-top: 4px dashed #660066;
}
<!-- End Logo Section -->
<!-- Code CSS Section -->
.originalCode {
position: absolute;
width: 75%;
margin: 0 auto;
padding: 1em;
background: #f5f5f5;
color: white;
height: 250px;
margin: 2px;
border: 1px solid #f5f5f5;
color: #fff;
overflow: auto;
}
#codePart, #codePartOne, #codePartTwo, #codePartThree, #codePartFour, #codePartFive, #codePartSix, #codePartSeven, #codePartEight, #codePartNine, #codePartTen, #codePartEleven, #codePartTwelve, #codePartThirteen, #codePartFourteen, #codePartFifteen, #codePartSixteen, #codePartSeventeen, #codePartEighteen {
color: white;
}
#codeSection, #codeSectionOne, #codeSectionTwo, #codeSectionThree, #codeSectionFour, #codeSectionFive, #codeSectionSix, #codeSectionSeven, #codeSectionEight, #codeSectionNine, #codeSectionTen, #codeSectionEleven, #codeSectionTwelve, #codeSectionThirteen, #codeSectionFourteen, #codeSectionFifteen, #codeSectionSixteen, #codeSectionSeventeen, #codeSectionEighteen {
z-index: 11;
background: transparent;
color: transparent;
caret-color: black;
}
.originalCode span.highlightedOne {
color: yellow;
font-weight: 600;
}
.originalCode span.highlightedTwo {
color: #66a3ff;
font-weight: 600;
}
.originalCode span.highlightedThree {
color: #80ff80;
font-weight: 600;
}
.originalCode span.highlightedFour {
color: #66a3ff;
font-weight: 600;
}
.originalCode span.highlightedFive {
color: #d19a66;
font-weight: 600;
}
.pOutputHeading{
color: #9fdf9f;
font-size: 15px;
}
.service-detail .inner-box p.pCommentLevelOne {
margin-top: 5px;
margin-bottom: 5px;
color: #ffddbe;
font-size:15px;
}
.service-detail .inner-box p.pCommentLevelTwo {
margin-top: 5px;
margin-bottom: 5px;
margin-left: 35px;
color: #ffddbe;
font-size: 15px;
}
.service-detail .inner-box p.pCommentLevelThree {
margin-top: 15px;
margin-bottom: 15px;
color: #ffddbe;
font-size: 15px;
}
.service-detail .inner-box p.pCommentLevelFour {
margin-top: 5px;
margin-bottom: 5px;
margin-left: 65px;
color: #ffddbe;
font-size: 15px;
}
.service-detail .inner-box p.pCommentLevelFive {
margin-top: 5px;
margin-bottom: 5px;
margin-left: 95px;
color: #ffddbe;
font-size: 15px;
}
.service-detail .inner-box p.pCommentLevelSix {
margin-top: 5px;
margin-bottom: 5px;
margin-left: 125px;
color: #ffddbe;
font-size: 15px;
}
.service-detail .inner-box p.pCommentLevelSixSevenOnly {
margin-top: 5px;
margin-bottom: 5px;
margin-left: 155px;
color: #ffddbe;
font-size: 15px;
}
.codeLevelOne{
margin-top: 15px;
margin-left: 35px;
}
.codeLevelTwo{
margin-top: 5px;
margin-left: 65px;
}
.codeLevelThree{
margin-top: 5px;
}
.codeLevelFour{
margin-top: 5px;
margin-left: 35px;
}
.codeLevelFive{
margin-top: 5px;
margin-left: 95px;
}
.codeLevelSix {
margin-top: 5px;
margin-left: 125px;
}
.codeLevelSixSevenOnly {
margin-top: 5px;
margin-left: 155px;
}
.codeLevelOneOpeningBracket{
margin-left: 35px;
}
.codeLevelOneClosingBracket {
margin-left: 35px;
margin-top: 5px;
}
.codeLevelTwoClosingBracket{
margin-top: 5px;
margin-left: 5px;
}
.codeLevelThreeClosingBracket{
margin-top: 5px;
margin-left: 15px;
}
.codeLevelOneKeyword{
color: yellow;
font-weight: 600;
}
.codeUserDefinedName{
color: #e0ccff;
font-weight: 600;
}
.codeProgram{
margin-top: 5px;
}
.textHighlighted{
font-weight: 600;
background-color:floralwhite;
color:mediumaquamarine
}
.textKeyWordHighlighted {
font-weight: 600;
background-color:gainsboro;
color: red;
}
.textKwywords {
font-weight: 600;
background-color:lightpink;
color: #b300b3;
font-size:16px;
}
.liHighlighted{
margin-top: 10px;
}
.liSpan{
font-weight: 600;
color: #b300b3;
}
.liTableSpan {
font-weight: 600;
color: black;
}
.liBullet {
font-weight: 600;
color: black;
margin-left: 30px;
}
.liSpansmall {
font-weight: 600;
color: #b300b3;
}
.liSpanp{
margin-top: 15px;
margin-left: 20px;
color: black;
}
.liSanptext {
margin-top: 15px;
color: black;
}
.liSpanTwo{
font-size: 16px;
font-weight: bold;
margin-right: 13px;
}
.tableheader{
font-weight: 700;
background-color: aliceblue
}
.lightthinheader{
height: 25px;
background-color: #e6f5ff;
}
.tablefristColumn{
font-weight: 600;
background-color: aliceblue;
}
.linktext{
color: crimson
}
.Outlinetext{
font-weight: 600;
background-color: lavender
}
.Outlinetextone{
font-weight: 600;
background-color: lavender;
margin-left: 30px;
}
.Outlinebody{
position: relative;
color: #555555;
margin-bottom: 15px;
font-size: 17px;
line-height: 1.8rem;
letter-spacing: .014em;
}
.Outlinebodytwo
{
font-weight: 400;
}
.Outputtext{
margin-top: -15px;
}
.Outputtext{
color: #b300b3;
}
.liDataType{
margin-left: 30px;
}
.h1Color{
color: #b300b3;
}
.liServiceListOne {
margin-top: 10px;
}
.liServiceListTwo {
margin-left: 30px;
}
.headingMinusTopMargin {
margin-top:-50px;
}
.headingPlusTopMargin {
margin-top: 50px;
}
.headingBottomMargin {
margin-top: -30px;
}
.codeBoldText
{
position: relative;
padding-left: 30px;
margin-bottom: 15px;
color: #b300b3;
font-size: 16px;
}
<!-- End Code CSS Section -->
<!-- ClipBoad Section -->
/* Extra small devices (phones, 600px and down) */
@media only screen and (min-width: 420px) {
.btnclipboard {
margin-top: -35px;
margin-left: -140px
}
}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 768px) {
.btnclipboard {
margin-top: -35px;
margin-left: 240px
}
}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 1024px) {
.btnclipboard {
margin-top: -35px;
margin-left: 340px
}
}
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 1366px) {
.btnclipboard {
margin-top: -35px;
margin-left: 440px
}
}
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1920px) {
.btnclipboard {
margin-top: -35px;
margin-left: 740px
}
}
<!-- End ClipBoad Section -->
</style>
</head>
<body class="hidden-bar-wrapper">
<div class="page-wrapper">
<!-- Preloader -->
<!-- Main Header / Header Style Five -->
<header class="main-header header-style-five">
<!--Header-Upper-->
<!--End Header Upper-->
<!-- Header Lower -->
<style>
.logo a {
width: 60%;
height: 300px;
}
img {
width: 100%;
height: 100%;
object-fit: cover;
}
hr.new2 {
border-top: 4px dashed #660066;
}
</style>
<!--Header-Upper-->
<div class="header-upper">
<div class="container-fluid">
<div class="clearfix">
<!-- Logo Box -->
<div class="pull-left logo-box">
<div class="logo"><a href="/"><img src="/images/logo-7.svg" style="width:160px; height:80px;" alt="" title=""></a></div>
</div>
</div>
</div>
</div>
<!--End Header Upper-->
<div class="header-lower">
<div class="container-fluid clearfix">
<div class="nav-outer clearfix">
<!--Mobile Navigation Toggler-->
<div class="mobile-nav-toggler"><span class="icon flaticon-menu"></span></div>
<!-- Main Menu -->
<nav class="main-menu navbar-expand-md">
<div class="navbar-header">
<!-- Toggle Button -->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<!-- Logo Box -->
<div class="navbar-collapse collapse clearfix" id="navbarSupportedContent">
<ul class="navigation clearfix">
<li class="dropdown">
<a href="#">.Net</a>
<ul>
<li><a href="/">C#</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#">Technical</a>
<ul>
<li><a href="/Technical/remote-machine-stuck-on-please-wait-screen">Technical Issues</a></li>
</ul>
</li>
<li class="dropdown" style="visibility:hidden">
<a href="#">Dot Net Technology</a>
<ul>
<li><a href="/home/ComingSoon">C#</a></li>
<li><a href="/home/ComingSoon">ADO.NET</a></li>
<li><a href="/home/ComingSoon">Entity Framwork</a></li>
<li><a href="/home/ComingSoon">WCF, WebAPI</a></li>
<li><a href="/home/ComingSoon">Asp.Net Core MVC</a></li>
<li><a href="/home/ComingSoon">LINQ</a></li>
<li><a href="/home/ComingSoon">JSON</a></li>
<li><a href="/home/ComingSoon">Web Services, RESTful</a></li>
<li><a href="/home/ComingSoon">WCF, WebAPI</a></li>
<li><a href="/home/ComingSoon">WCF</a></li>
<li><a href="/home/ComingSoon">Bootstrap</a></li>
</ul>
</li>
<li class="dropdown" style="visibility:hidden">
<a href="#">Web Technologies</a>
<ul>
<li><a href="/home/ComingSoon">HTML</a></li>
<li><a href="/home/ComingSoon">HTML 5</a></li>
<li><a href="/home/ComingSoon">CSS</a></li>
<li><a href="/home/ComingSoon">CSS 3</a></li>
<li><a href="/home/ComingSoon">JavaScript</a></li>
<li><a href="/home/ComingSoon">JQuery</a></li>
<li><a href="/home/ComingSoon">JSON</a></li>
<li><a href="/home/ComingSoon">Bootstrap</a></li>
</ul>
</li>
<li class="dropdown" style="visibility:hidden">
<a href="#">Databases</a>
<ul>
<li><a href="/home/ComingSoon">SQL</a></li>
<li><a href="/home/ComingSoon">SQL Lite</a></li>
<li><a href="/home/ComingSoon">PL/SQL</a></li>
<li><a href="/home/ComingSoon">MonogoDB</a></li>
</ul>
</li>
</ul>
</div>
</nav>
<!-- Main Menu End-->
<div class="outer-box clearfix">
<!-- Social Box -->
<ul class="social-box">
<li><a target="_blank" href="https://www.facebook.com/CSharpTutorial111" class="fab fa-facebook-f"></a></li>
<li><a target="_blank" href="http://twitter.com/CSharp92827922" class="fab fa-twitter"></a></li>
<li><a target="_blank" href="http://instagram.com/cshar_ptutorial?igsh=MXI5OWVpMDI2YnI0ZW==" class="fab fa-pinterest-p"></a></li>
<li><a target="_blank" href="https://www.linkedin.com/in/c-sharptutorial/" class="fab fa-linkedin-in"></a></li>
</ul>
<!-- Search Btn -->
<div class="search-box-btn search-box-outer"><span class="icon flaticon-search"></span></div>
</div>
</div>
</div>
</div>
<!--End Header Upper-->
<!-- Sticky Header -->
<div class="sticky-header">
<div class="auto-container clearfix">
<!--Logo-->
<div class="logo pull-left">
<a title="" href="/"><img src="/images/logo-small.svg" style="width:160px; height:80px;" alt="" title=""></a>
</div>
<!--Right Col-->
<div class="pull-right">
<!-- Main Menu -->
<nav class="main-menu">
<!--Keep This Empty / Menu will come through Javascript-->
</nav><!-- Main Menu End-->
<!-- Main Menu End-->
<div class="outer-box clearfix">
<!-- Search Btn -->
<div class="search-box-btn search-box-outer"><span class="icon flaticon-search"></span></div>
</div>
</div>
</div>
</div>
<!-- End Sticky Menu -->
<!-- Mobile Menu -->
<div class="mobile-menu">
<div class="menu-backdrop"></div>
<div class="close-btn"><span class="icon flaticon-multiply"></span></div>
<nav class="menu-box">
<div class="nav-logo"><a href="/"><img src="/images/logo.svg" style="width:160px; height:80px; margin-left:50px;" alt="" title=""></a></div>
<div class="menu-outer"><!--Here Menu Will Come Automatically Via Javascript / Same Menu as in Header--></div>
</nav>
</div>
<!-- End Mobile Menu -->
</header>
<!-- End Main Header -->
<!-- Page Title -->
<!-- Header Ad -->
<!-- End Page Title -->
<!-- Sidebar Page Container -->
<div class="sidebar-page-container">
<div class="container-fluid">
<div class="row clearfix">
<!-- Sidebar Side -->
<div class="sidebar-side left-sidebar col-lg-3 col-md-12 col-sm-12" >
<aside class="sidebar sticky-top">
<!-- Categories Widget -->
<div class="sidebar-widget categories-widget">
<div class="widget-content">
<p style="color:black;font:18px;font-weight:bold">Dot Net Framwork </p>
<ul class="blog-cat">
<li><a href="/basic/dot-net-framwork">Dot Net Framwork</a></li>
</ul>
<br />
<p style="color:black;font:18px;font-weight:bold">Basic in C# </p>
<ul class="blog-cat">
<li><a href="/basic/history-in-csharp">History in C#</a></li>
<li><a href="/basic/feature-in-csharp">Feature in C#</a></li>
<li><a href="/basic/basic-example-in-csharp">Basic Example in C#</a></li>
<li><a href="/basic/keywords-in-csharp">KeyWord in C#</a></li>
<li><a href="/basic/operator-in-csharp">Operator in C#</a></li>
<li><a href="/basic/datatype-in-csharp">Data Types in C#</a></li>
<li><a href="/basic/variable-in-csharp">Varaible in C#</a></li>
</ul>
<br />
<p style="color:black;font:18px;font-weight:bold">Control Statement in C# </p>
<ul class="blog-cat">
<li><a href="/control/if-condition-in-csharp">if Statement in C#</a></li>
<li><a href="/control/if-else-condition-in-csharp">if-else Statement in C#</a></li>
<li><a href="/control/if-else-if-condition-in-csharp">if-else-if Statement in C#</a></li>
<li><a href="/control/nested-if-in-csharp">nested if Statement in C#</a></li>
<li><a href="/control/switch-statement-in-csharp">switch Statement in C#</a></li>
<li><a href="/control/ternary-operator-in-csharp">ternary Operator in C#</a></li>
<li><a href="/control/for-loop-statement-in-csharp">for loop in C#</a></li>
<li><a href="/control/while-statement-in-csharp">while loop in C#</a></li>
<li><a href="/control/do-while-statement-in-csharp">do while loop in C#</a></li>
<li><a href="/control/foreach-statement-in-csharp">foreach loop in C#</a></li>
<li><a href="/control/break-statement-in-csharp">break Statement in C#</a></li>
<li><a href="/control/countinue-statement-in-csharp">countinue Statement in C#</a></li>
<li><a href="/control/goto-statement-in-csharp">goto Statement in C#</a></li>
</ul>
<br />
<p style="color:black;font:18px;font-weight:bold">Function in C# </p>
<ul class="blog-cat">
<li><a href="/function/simple-function-in-csharp">Function in C#</a></li>
<li><a href="/function/ref-function-in-csharp">ref Function in c#</a></li>
<li><a href="/function/out-function-in-csharp">out Function in c#</a></li>
<li><a href="/function/in-function-in-csharp">in Function in C#</a></li>
</ul>
<br />
<p style="color:black;font:18px;font-weight:bold">Array in C# </p>
<ul class="blog-cat">
<li><a href="/array/array-in-csharp">Array in C#</a></li>
<li><a href="/array/passing-array-to-function-in-csharp">Passing Array to Function in C#</a></li>
<li><a href="/array/passing-one-dimensional-array-to-function-in-csharp">Passing One Dimensional Array to Function in C#</a></li>
<li><a href="/array/passing-two-dimensional-array-to-function-in-csharp">Passing Two Dimensional Array to Function in C#</a></li>
<li><a href="/array/passing-three-dimensional-array-to-function-in-csharp">Passing Three Dimensional Array to Function in C#</a></li>
<li><a href="/array/multi-dimensional-array-in-csharp">Multidimensional Array in C#</a></li>
<li><a href="/array/jagged-array-in-csharp">Jagged Array in C#</a></li>
<li><a href="/array/params-in-csharp">Params in C#</a></li>
</ul>
<br />
<p style="color:black;font:18px;font-weight:bold">OOP in C# </p>
<ul class="blog-cat">
<li><a href="/class/class-in-csharp">Classes in C#</a></li>
<li><a href="/class/static-in-csharp">Static in C#</a></li>
<li><a href="/class/struct-in-csharp">Struct in C#</a></li>
<li><a href="/class/enum-in-csharp">Enum in C#</a></li>
<li><a href="/class/properties-in-csharp">Properties in C#</a></li>
<li><a href="/class/inheritance-in-csharp">Inheritance in C#</a></li>
<li><a href="/class/overloading-in-csharp">Overloading in C#</a></li>
<li><a href="/class/overriding-in-csharp">Overriding in C#</a></li>
<li><a href="/class/base-in-csharp">Base in C#</a></li>
<li><a href="/class/polymorphism-in-csharp">Polymorphism in C#</a></li>
<li><a href="/class/sealed-in-csharp">Sealed in C#</a></li>
<li><a href="/class/interface-in-csharp">Interface in C#</a></li>
<li><a href="/class/namespace-in-csharp">NameSpace in C#</a></li>
<li><a href="/class/accessmodifiers-in-csharp">Acces Modifiers in C#</a></li>
<li><a href="/class/encapsulation-in-csharp">Encapsulation in C#</a></li>
<li><a href="/class/abstract-in-csharp">Abstract in C#</a></li>
</ul>
<br />
<p style="color:black;font:18px;font-weight:bold">String in C# </p>
<ul class="blog-cat">
<li><a href="/string/length-in-csharp">Length in C#</a></li>
<li><a href="/string/clone-in-csharp">Clone in C#</a></li>
<li><a href="/string/compare-in-csharp">Compare in C#</a></li>
<li><a href="/string/compareto-in-csharp">CompareTo in C#</a></li>
<li><a href="/string/concat-in-csharp">Concat in C#</a></li>
<li><a href="/string/contains-in-csharp">Contains in C#</a></li>
<li><a href="/string/copy-in-csharp">Copy in C#</a></li>
<li><a href="/string/endswith-in-csharp">EndWith in C#</a></li>
<li><a href="/string/equals-in-csharp">Equals in C#</a></li>
<li><a href="/string/format-in-csharp">Format in C#</a></li>
<li><a href="/string/indexof-in-csharp">IndexOf in C#</a></li>
<li><a href="/string/insert-in-csharp">Insert in C#</a></li>
<li><a href="/string/isnullorempty-in-csharp">IsNullOrEmpty in C#</a></li>
<li><a href="/string/isnullorwhitespace-in-csharp">IsNullOrWhiteSpace in C#</a></li>
<li><a href="/string/join-in-csharp">Join in C#</a></li>
<li><a href="/string/lastindexof-in-csharp">LastIndexOf in C#</a></li>
<li><a href="/string/remove-in-csharp">Remove in C#</a></li>
<li><a href="/string/replace-in-csharp">Replace in C#</a></li>
<li><a href="/string/split-in-csharp">Split in C#</a></li>
<li><a href="/string/startswith-in-csharp">StartsWith in C#</a></li>
<li><a href="/string/substring-in-csharp">SubString in C#</a></li>
<li><a href="/string/tolower-in-csharp">ToLower in C#</a></li>
<li><a href="/string/tostring-in-csharp">ToString in C#</a></li>
<li><a href="/string/toupper-in-csharp">ToUpper in C#</a></li>
<li><a href="/string/trim-in-csharp">Trim in C#</a></li>
<li><a href="/string/trimend-in-csharp">TrimEnd in C#</a></li>
<li><a href="/string/trimstart-in-csharp">TrimStart in C#</a></li>
</ul>
<br />
<p style="color:black;font:18px;font-weight:bold">Exception in C# </p>
<ul class="blog-cat">
<li><a href="/exception/try-catch-in-csharp">Try/Catch in C#</a></li>
<li><a href="/exception/custom-exception-in-csharp">CustomException in C#</a></li>
</ul>
<br />
<p style="color:black;font:18px;font-weight:bold">Collection in C# </p>
<ul class="blog-cat">
<li><a href="/collection/list-in-csharp">List in C#</a></li>
<li><a href="/collection/hashtable-in-csharp">HashTable in C#</a></li>
<li><a href="/collection/sortedset-in-csharp">SortedSet in C#</a></li>
<li><a href="/collection/stack-in-csharp">Stack in C#</a></li>
<li><a href="/collection/queue-in-csharp">Queue in C#</a></li>
<li><a href="/collection/dictionary-in-csharp">Distionary in C#</a></li>
<li><a href="/collection/sorteddictionary-in-csharp">SortedDictionary in C#</a></li>
<li><a href="/collection/sortedlist-in-csharp">SortedList in C#</a></li>
<li><a href="/collection/linkedlist-in-csharp">LinkedList in C#</a></li>
</ul>
<br />
<p style="color:black;font:18px;font-weight:bold">DateTime in C# </p>
<ul class="blog-cat">
<li><a href="/datetime/datetime-in-csharp">DateTime in C#</a></li>
<li><a href="/datetime/timespan-in-csharp">TimeSpan in C#</a></li>
<li><a href="/datetime/dateonly-in-csharp">DateOnly in C#</a></li>
<li><a href="/datetime/timeonly-in-csharp">TimeOnly in C#</a></li>
</ul>
<br />
<p style="color:black;font:18px;font-weight:bold">File IO in C# </p>
<ul class="blog-cat">
<li><a href="/file/filestream-in-csharp">FileStream in C#</a></li>
<li><a href="/file/textwriter-in-csharp">TextWriter in C#</a></li>
<li><a href="/file/textreader-in-csharp">TextReader in C#</a></li>
<li><a href="/file/streamwriter-in-csharp">StreamWriter in C#</a></li>
<li><a href="/file/streamreader-in-csharp">StreamReader in C#</a></li>
<li><a href="/file/binarywriter-in-csharp">BinaryWriter in C#</a></li>
<li><a href="/file/binaryreader-in-csharp">BinaryReader in C#</a></li>
<li><a href="/file/fileinfo-in-csharp">FileInfo in C#</a></li>
<li><a href="/file/directoryinfo-in-csharp">DirectoryInfo in C#</a></li>
<li><a href="/file/serialization-in-csharp">Serialization in C#</a></li>
<li><a href="/file/deserialization-in-csharp">DeSerialization in C#</a></li>
<li><a href="/file/serialization-and-deserialization-with-memory-stream-in-csharp">Serialization and DeSerialization with Memory Stream in C#</a></li>
<li><a href="/file/serialization-and-deserialization-with-xml-in-csharp">Serialization and DeSerialization with XML in C#</a></li>
<li><a href="/file/serialization-and-deserialization-with-Json-in-csharp">Serialization and DeSerialization with JSON in C#</a></li>
<li><a href="/file/what-is-serialization-and-deserialization-in-csharp">What is Serialization and DeSerialization in C#</a></li>
</ul>
<br />
<p style="color:black;font:18px;font-weight:bold">Event in C#</p>
<ul class="blog-cat">
<li><a href="/event/event-in-csharp">Events In C#</a></li>
</ul>
<br />
<p style="color:black;font:18px;font-weight:bold">delegate in C#</p>
<ul class="blog-cat">
<li><a href="/delegate/delegate-in-csharp">Delegate In C#</a></li>
</ul>
<br />
<p style="color:black;font:18px;font-weight:bold">reflection in C#</p>
<ul class="blog-cat">
<li><a href="/reflection/reflection-in-csharp">Reflection In C#</a></li>
</ul>
<br />
<p style="color:black;font:18px;font-weight:bold">C# History</p>
<ul class="blog-cat">
<li><a href="/history/c-sharp-version-one-point-zero-tutorial">C# version 1.0</a></li>
</ul>
<p style="color:black;font:18px;font-weight:bold">Articles in C# </p>
<ul class="blog-cat">
<li><a href="/csharparticles/difference-between-writeline-and-write-in-csharp">Write and WrteLine in C#</a></li>
<li><a href="/csharparticles/difference-between-boxing-and-unboxing-in-csharp">Boxing and UnBoxing in C#</a></li>
<li><a href="/csharparticles/difference-between-string-and-StringBuilder-in-csharp">string and StringBuilder in C#</a></li>
<li><a href="/csharparticles/difference-between-hashtable-and-dictionery-in-csharp">HashTable and Dictionary in C#</a></li>
<li><a href="/csharparticles/difference-between-array-and-arraylist-in-csharp">Array and ArrayList in C#</a></li>
<li><a href="/csharparticles/what-is-typeof-operator-in-csharp">What is typeof Operator in C#</a></li>
<li><a href="/csharparticles/cannot-assign-null-to-an-implicitly-typed-variable">Cannot assign null to an implicitly-typed variable in C#</a></li>
<li><a href="/csharparticles/how-initialize-empty-array-in-csharp">How initialize empty array in C#</a></li>
<li><a href="/csharparticles/no-overload-for-method-ToDictionary-takes-0-arguments">No overload for method ToDictionary takes 0 arguments in C#</a></li>
<li><a href="/csharparticles/how-to-store-list-in-dictinary-in-csharp">How to store list in dictionary in C#</a></li>
<li><a href="/csharparticles/how-to-handle-null-value-in-function-in-csharp">How to manage null value in function in C#</a></li>
<li><a href="/csharparticles/how-to-convert-json-object-to-dictionary-in-csharp">how to convert json object to dictionary in C#</a></li>
<li><a href="/csharparticles/how-to-remove-numbers-and-specialcharacter-from-string-using%20Regex.Replace-in-csharp">How To Remove Numbers And SpecialCharacter From String Using Regex.Replace in C#</a></li>
<li><a href="/csharparticles/how-to-get-number-of-days-in-month-using-in-csharp">How to get Number of Days in Month Using C#</a></li>
<li><a href="/csharparticles/what-is-difference-between-var-and-dynamic-in-csharp">What is difference between var and dynamic in C#</a></li>
<li><a href="/csharparticles/what-generics-in-csharp">Generic in C#</a></li>
<li><a href="/csharparticles/partial-class-in-csharp">Partial Class in C#</a></li>
<li><a href="/csharparticles/anonymous-method-in-csharp">Anonymous Method in C#</a></li>
<li><a href="/csharparticles/Nullable-Types-in-csharp">Nullable Types in C#</a></li>
<li><a href="/csharparticles/Iterators-in-csharp">Iterators in C#</a></li>
</ul>
</div>
<!-- Brochures Widget -->
<!-- Question Widget -->
</aside>
</div>
<!-- Content Side -->
<div class="content-side col-lg-7 col-md-12 col-sm-12">
<div class="service-detail">
<div class="inner-box">
<div class="lower-content">
<h1 class="mt-3 mb-3 pt-1 pb-1 h1color">Learn C# Programming</h1>
<p>C# (pronounced "C Sharp") is a programming language that is latest, flexible. It is made by Microsoft. C# is an object-oriented programming language that support four main pillar of OOP Abstraction, Encapsulation, Inheritance, Polymorphism. It run on .NET Framework. It's history start from late 1990s.</p>
<p class="mt-3">C# has the characteristics like type safety, garbage collection, and scalability. Its reputation is built on its simplicity, adaptability, and seamless connection with the .NET environment.</p>
<p class="mt-3">C# is such type of language in which errors can be caught at compile time rather than runtime, making code more robust.</p>
<p class="mt-3">Dot NET framework in C#, providing access to a vast library of pre-built functions and tools, which can speed up development. </p>
<p class="mt-3">With .NET Core, C# can run on multiple platforms including Windows, macOS, and Linux, increasing its cross-platform compatibility.</p>
<p class="mt-3">C# has a large and active developer community, providing access to resources, tutorials, and support. C# is known for its performance, especially when optimized properly, making it suitable for building high-performance applications.</p>
<p class="mt-3">C# can be used in various domains and for different types of applications. Here are some common areas where C# is widely used</p>
<div class="row">
<div class="col-sm-6">
<div class="mt-4 mb-4 pt-4 pb-4 pl-4 pr-4" style="height:150px; width:350px; background-color:#e6e6ff; ">
<p style="color:black">
<span style="font-weight:bold">Desktop Applications:</span> Desktop application can be made with WPF (Windows Presentation Foundation) and Windows Forms.
</p>
</div>
</div>
<div class="col-sm-6">
<div class="mt-4 mb-4 pt-4 pb-4 pl-4 pr-4" style="height:150px; width:350px; background-color:#ffe6ff; ">
<p style="color:black">
<span style="font-weight:bold">Web Development:</span> Web application can be made in c# with Asp.Net Core and Asp.net MVC
</p>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="mt-4 mb-4 pt-4 pb-4 pl-4 pr-4" style="height:150px; width:350px; background-color:#e6ffe6; ">
<p style="color:black">
<span style="font-weight:bold">Mobile Application :</span> C# is used for creating mobile applications for iOS, Android, and Windows platforms with frameworks such as Xamarin.
</p>
</div>
</div>
<div class="col-sm-6">
<div class="mt-4 mb-4 pt-4 pb-4 pl-4 pr-4" style="height:150px; width:350px; background-color:#ffebe6; ">
<p style="color:black">
<span style="font-weight:bold">Game development:</span> C# is commonly used for the game development sector, especially when working with the Unity game engine.
</p>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="mt-4 mb-4 pt-4 pb-4 pl-4 pr-4" style="height:150px; width:350px; background-color:#ffffe6; ">
<p style="color:black">
<span style="font-weight:bold">Backend Services:</span> C# is used for developing backend services, APIs, and microservices with help of Asp.Net Core.
</p>
</div>
</div>
<div class="col-sm-6">
<div class="mt-4 mb-4 pt-4 pb-4 pl-4 pr-4" style="height:170px; width:350px; background-color:#e6ffff; ">
<p style="color:black">
<span style="font-weight:bold">Cloud Computing:</span> Microsoft Azure offers strong backing for C# and .NET, enabling developers to create, launch, and oversee applications in the cloud
</p>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="mt-4 mb-4 pt-4 pb-4 pl-4 pr-4" style="height:150px; width:350px; background-color:#f9f2ec; ">
<p style="color:black">
<span style="font-weight:bold">Machine Learning and Data Analysis:</span> C# can be utilized for machine learning and data analysis with tools such as ML.NET.
</p>
</div>
</div>
</div>
<h2 class="mt-3 mb-3 pt-1 pb-1 h1color">What chapters you can learn from these C# tutorial?</h2>
<p>You can learn following chapters of C# from this c-sharp tutorial website. These chapetrs are for begineers and professionals. We have explain every topic with deytail and real life examples.</p>
<ul class="service-list-one">
<li style="color:black;font:18px;font-weight:600" class="service-list-menu-one">Chapter 1 - <span class="left" style="color:#660066; font-weight:600"><a href="/basic/dot-net-framwork">Dot Net Framwork</a></span></li>
<li style="color:black;font:18px;font-weight:600" class="service-list-menu-one">Chapter 2 - <span class="left" style="color:#660066; font-weight:600"><a href="/basic/history-in-csharp">Basic in C#</a></span></li>
<li style="color:black;font:18px;font-weight:600" class="service-list-menu-one">Chapter 3 - <span class="left" style="color:#660066; font-weight:600"><a href="/control/if-condition-in-csharp">Control Statement in C#</a></span></li>
<li style="color:black;font:18px;font-weight:600" class="service-list-menu-one">Chapter 4 - <span class="left" style="color:#660066; font-weight:600"><a href="/function/simple-function-in-csharp">Function In C#</a></span></li>
<li style="color:black;font:18px;font-weight:600" class="service-list-menu-one">Chapter 5 - <span class="left" style="color:#660066; font-weight:600"><a href="/array/array-in-csharp">Array In C#</a></span></li>
<li style="color:black;font:18px;font-weight:600" class="service-list-menu-one">Chapter 6 - <span class="left" style="color:#660066; font-weight:600"><a href="/class/class-in-csharp">OOP In C#</a></span></li>
<li style="color:black;font:18px;font-weight:600" class="service-list-menu-one">Chapter 7 - <span class="left" style="color:#660066; font-weight:600"><a href="/string/length-in-csharp">String In C#</a></span></li>
<li style="color:black;font:18px;font-weight:600" class="service-list-menu-one">Chapter 8 - <span class="left" style="color:#660066; font-weight:600"><a href="/exception/try-catch-in-csharp">Exception In C#</a></span></li>
<li style="color:black;font:18px;font-weight:600" class="service-list-menu-one">Chapter 9 - <span class="left" style="color:#660066; font-weight:600"><a href="/collection/list-in-csharp">Collection In C#</a></span></li>
<li style="color:black;font:18px;font-weight:600" class="service-list-menu-one">Chapter 10 - <span class="left" style="color:#660066; font-weight:600"><a href="/datetime/datetime-in-csharp">DateTime In C#</a></span></li>
<li style="color:black;font:18px;font-weight:600" class="service-list-menu-one">Chapter 11 - <span class="left" style="color:#660066; font-weight:600"><a href="/file/filestream-in-csharp">File IO In C#</a></span></li>
<li style="color:black;font:18px;font-weight:600" class="service-list-menu-one">Chapter 12 - <span class="left" style="color:#660066; font-weight:600"><a href="/event/event-in-csharp%3E">Event In C#</a></span></li>
<li style="color:black;font:18px;font-weight:600" class="service-list-menu-one">Chapter 13 - <span class="left" style="color:#660066; font-weight:600"><a href="/delegate/delegate-in-csharp">Delegate In C#</a></span></li>
<li style="color:black;font:18px;font-weight:600" class="service-list-menu-one">Chapter 14 - <span class="left" style="color:#660066; font-weight:600"><a href="/reflection/reflection-in-csharp">Reflection In C#</a></span></li>
<li style="color:black;font:18px;font-weight:600" class="service-list-menu-one">Chapter 15 - <span class="left" style="color:#660066; font-weight:600"><a href="/history/c-sharp-version-one-point-zero-tutorial">History In C#</a></span></li>
<li style="color:black;font:18px;font-weight:600" class="service-list-menu-one">Chapter 16 - <span class="left" style="color:#660066; font-weight:600"><a href="/csharparticles/difference-between-writeline-and-write-in-csharp">Articles In C#</a></span></li>
</ul>
</div>
</div>
</div>
</div>
<!-- Main Footer -->
</div>
</div>
</div>
<!-- Footer Ad -->
<!-- Main Footer -->
<!-- Main Footer -->
<footer class="footer-style-two" style="background-image: url(~/images/background/3.jpg)">
<div class="container-fluid">
<!--Widgets Section-->
<div class="widgets-section">
<div class="row clearfix">
<!-- Footer Column -->
<div class="footer-column col-lg-3 col-md-6 col-sm-12">
<div class="footer-widget logo-widget">
<div class="logo">
<a href="/"><img src="/images/logo-4.svg" style="width:160px; height:80px;" alt="" /></a>
</div>
<div class="text">C-Sharp Tutorial is for student and prefessional who want to learn C# programming from basic to advance. We have discussed every topic of C# alonge with examples in this tutorial guide.</div>
<!-- Social Box -->
<ul class="social-box">
<li><a target="_blank" href="https://www.facebook.com/CSharpTutorial111" class="fab fa-facebook-f"></a></li>
<li><a target="_blank" href="http://twitter.com/CSharp92827922" class="fab fa-twitter"></a></li>
<li><a target="_blank" href="http://instagram.com/cshar_ptutorial?igsh=MXI5OWVpMDI2YnI0ZW==" class="fab fa-pinterest-p"></a></li>
<li><a target="_blank" href="https://www.linkedin.com/in/c-sharptutorial/" class="fab fa-linkedin-in"></a></li>
</ul>
</div>
</div>
<!-- Footer Column -->
<div class="footer-column col-lg-3 col-md-6 col-sm-12">
<div class="footer-widget links-widget">
<h4>Learn Tutorials</h4>
<ul class="list-link style-two">
<li><a href="/">Learn C#</a></li>
<li><a href="/home/ComingSoon">Learn HTML</a></li>
<li><a href="/home/ComingSoon">Learn CSS</a></li>
<li><a href="/home/ComingSoon">Learn JavaScript</a></li>
<li><a href="/home/ComingSoon">Learn JQuery</a></li>
<li><a href="/home/ComingSoon">Learn SQL</a></li>
</ul>
</div>
</div>
<!-- Footer Column -->
<div class="footer-column col-lg-3 col-md-6 col-sm-12">
<div class="footer-widget news-widget">
<h4>Latest News</h4>
<!-- Footer Column -->
<div class="widget-content">
<div class="post">
<div class="thumb"><a href="/csharparticles/how-initialize-empty-array-in-csharp"><img src="/images/resource/post-thumb-3.jpg" alt=""></a></div>
<span class="date">December 1, 2023</span>
<h5><a href="/csharparticles/how-initialize-empty-array-in-csharp">How initialize empty array in CSharp</a></h5>
</div>
<div class="post">
<div class="thumb"><a href="/csharparticles/how-initialize-empty-array-in-csharp"><img src="/images/resource/post-thumb-4.jpg" alt=""></a></div>
<span class="date">December 1, 2023</span>
<h5><a href="/csharparticles/how-to-store-list-in-dictinary-in-csharp">How to store list in dictionary in CSharp</a></h5>
</div>
</div>
</div>
</div>
<!-- Footer Column -->
<div class="footer-column col-lg-3 col-md-6 col-sm-12">
<div class="footer-widget contact-info-widget">
<h4>Learn Tutorials</h4>
<ul class="footer-info-list style-two">
<li><span class="icon flaticon-telephone-1"></span><a href="tel:+92-327-784-265-9">+92-327-784-265-9</a></li>
<li><span class="icon flaticon-email-2"></span><a href="mailto:info@c-sharptutorial.com">info@c-sharptutorial.com</a></li>
<li><span class="icon flaticon-send-1"></span>House # 18 Muslim Town Taxila, Rewalpandi</li>
<li><span class="icon flaticon-clock-1"></span>Opening Hours: 10:00 - 18:00</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- Footer Bottom -->
<div class="footer-bottom">
<div class="container-fluid">
<div class="row clearfix">
<!-- Column -->
<div class="column col-lg-6 col-md-12 col-sm-12">
<div class="copyright">© 2024 All Rights Reserved. Design & Developed By C-Sharp Tutorial</div>
</div>
<!-- Column -->
<div class="column col-lg-6 col-md-12 col-sm-12">
<ul class="footer-nav">
<li><a href="/">Home</a></li>
<li><a href="/home/about-us">About Us</a></li>
<li><a href="/home/contact-us">Contact Us</a></li>
<li><a href="/home/privacy">Privacy Policy</a></li>
<li><a href="/home/terms-conditions">Terms of Use</a></li>
</ul>
</div>
</div>
</div>
</div>
</footer>
</div>
<!--End pagewrapper-->
<!-- Color Palate / Color Switcher -->
<div class="color-palate">
<div class="color-trigger">
<i class="fas fa-cog"></i>
</div>
<div class="color-palate-head">
<h6>Choose Your Options</h6>
</div>
<h5>RTL Version</h5>
<ul class="rtl-version option-box"> <li class="rtl">RTL Version</li> <li>LTR Version</li> </ul>
<h5>Boxed Version</h5>
<ul class="box-version option-box"> <li class="box">Boxed</li> <li>Full width</li></ul>
<h5>Want Sticky Header</h5>
<ul class="header-version option-box"> <li class="box">No</li> <li>Yes</li></ul>
<h5>Dark Verion</h5>
<ul class="dark-version option-box"> <li class="box">Yes</li> <li>No</li></ul>
<a href="#" class="purchase-btn">Purchase now $17</a>
<div class="palate-foo">
<span>You will find much more options and styling in admin panel.</span>
</div>
</div>
<!-- Search Popup -->
<div class="search-popup">
<button class="close-search style-two"><span class="flaticon-multiply"></span></button>
<button class="close-search"><span class="fa fa-arrow-up"></span></button>
<form method="post" action="blog.html">
<div class="form-group">
<input type="search" name="search-field" value="" placeholder="Search Here" required="">
<button type="submit"><i class="fa fa-search"></i></button>
</div>
</form>
</div>
<!-- End Header Search -->
<!-- Scroll To Top -->
<div class="back-to-top scroll-to-target show-back-to-top" data-target="html">TOP</div>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.7.1.min.js"></script>
<script>
var highLightedWord = ["abstract", "catch", "checked", "default",
"explicit", "extern", "fixed", "foreach", "goto", "implicit",
"internal", "params", "readonly", "sizeof", "stackalloc",
"typeof", "unchecked", "unsafe", "volatile"];
var regexFromMyArray = new RegExp(highLightedWord.join("|"), 'ig');
$(document).ready(function () {
document.getElementById('codePart').innerHTML = $('#codeSection').html().replace(regexFromMyArray, function (SpanKeyword) {
return '<span class="highlightedOne">' + SpanKeyword + '</span>'
})
});
var target = $("#codePart");
$("#codeSection").scroll(function () {
target.prop("scrollTop", this.scrollTop)
.prop("scrollLeft", this.scrollLeft);
});
$(document).ready(function () {
document.getElementById('codePartOne').innerHTML = $('#codeSectionOne').html().replace(regexFromMyArray, function (SpanKeyword) {
return '<span class="highlightedOne">' + SpanKeyword + '</span>'
})
});
var target = $("#codePartOne");
$("#codeSectionOne").scroll(function () {
target.prop("scrollTop", this.scrollTop)
.prop("scrollLeft", this.scrollLeft);
});
$(document).ready(function () {
document.getElementById('codePartTwo').innerHTML = $('#codeSectionTwo').html().replace(regexFromMyArray, function (SpanKeyword) {
return '<span class="highlightedOne">' + SpanKeyword + '</span>'
})
});
var target = $("#codePartTwo");
$("#codeSectionTwo").scroll(function () {
target.prop("scrollTop", this.scrollTop)
.prop("scrollLeft", this.scrollLeft);
});
$(document).ready(function () {
document.getElementById('codePartThree').innerHTML = $('#codeSectionThree').html().replace(regexFromMyArray, function (SpanKeyword) {
return '<span class="highlightedOne">' + SpanKeyword + '</span>'
})
});
var target = $("#codePartThree");
$("#codeSectionThree").scroll(function () {
target.prop("scrollTop", this.scrollTop)
.prop("scrollLeft", this.scrollLeft);
});
$(document).ready(function () {
document.getElementById('codePartFour').innerHTML = $('#codeSectionFour').html().replace(regexFromMyArray, function (SpanKeyword) {
return '<span class="highlightedOne">' + SpanKeyword + '</span>'
})
});
var target = $("#codePartFour");
$("#codeSectionFour").scroll(function () {
target.prop("scrollTop", this.scrollTop)
.prop("scrollLeft", this.scrollLeft);
});
$(document).ready(function () {
if ($('#codeSectionFive').html()) {
document.getElementById('codePartFive').innerHTML = $('#codeSectionFive').html().replace(regexFromMyArray, function (SpanKeyword) {
return '<span class="highlightedOne">' + SpanKeyword + '</span>'
})
}
});
var target = $("#codePartFive");
$("#codeSectionFive").scroll(function () {
target.prop("scrollTop", this.scrollTop)
.prop("scrollLeft", this.scrollLeft);
});
$(document).ready(function () {
if ($('#codeSectionSix').html()) {
document.getElementById('codePartSix').innerHTML = $('#codeSectionSix').html().replace(regexFromMyArray, function (SpanKeyword) {
return '<span class="highlightedOne">' + SpanKeyword + '</span>'
})
}
});
var target = $("#codePartSix");
$("#codeSectionSix").scroll(function () {
target.prop("scrollTop", this.scrollTop)
.prop("scrollLeft", this.scrollLeft);
});
$(document).ready(function () {
if ($('#codeSectionSeven').html()) {
document.getElementById('codePartSeven').innerHTML = $('#codeSectionSeven').html().replace(regexFromMyArray, function (SpanKeyword) {
return '<span class="highlightedOne">' + SpanKeyword + '</span>'
})
}
});
var target = $("#codePartSeven");
$("#codeSectionSeven").scroll(function () {
target.prop("scrollTop", this.scrollTop)
.prop("scrollLeft", this.scrollLeft);
});
$(document).ready(function () {
if ($('#codeSectionEight').html()) {
document.getElementById('codePartEight').innerHTML = $('#codeSectionEight').html().replace(regexFromMyArray, function (SpanKeyword) {
return '<span class="highlightedOne">' + SpanKeyword + '</span>'
})
}
});
var target = $("#codePartEight");
$("#codeSectionEight").scroll(function () {
target.prop("scrollTop", this.scrollTop)
.prop("scrollLeft", this.scrollLeft);
});
$(document).ready(function () {
if ($('#codeSectionNine').html()) {
document.getElementById('codePartNine').innerHTML = $('#codeSectionNine').html().replace(regexFromMyArray, function (SpanKeyword) {
return '<span class="highlightedOne">' + SpanKeyword + '</span>'
})
}
});
var target = $("#codePartNine");
$("#codeSectionNine").scroll(function () {
target.prop("scrollTop", this.scrollTop)
.prop("scrollLeft", this.scrollLeft);
});
$(document).ready(function () {
if ($('#codeSectionTen').html()) {
document.getElementById('codePartTen').innerHTML = $('#codeSectionTen').html().replace(regexFromMyArray, function (SpanKeyword) {
return '<span class="highlightedOne">' + SpanKeyword + '</span>'
})
}
});
var target = $("#codePartTen");
$("#codeSectionTen").scroll(function () {
target.prop("scrollTop", this.scrollTop)
.prop("scrollLeft", this.scrollLeft);
});
$(document).ready(function () {
if ($('#codeSectionEleven').html()) {
document.getElementById('codePartEleven').innerHTML = $('#codeSectionEleven').html().replace(regexFromMyArray, function (SpanKeyword) {
return '<span class="highlightedOne">' + SpanKeyword + '</span>'
})
}
});
var target = $("#codePartEleven");
$("#codeSectionEleven").scroll(function () {
target.prop("scrollTop", this.scrollTop)
.prop("scrollLeft", this.scrollLeft);
});
$(document).ready(function () {
if ($('#codeSectionTwelve').html()) {
document.getElementById('codePartTwelve').innerHTML = $('#codeSectionTwelve').html().replace(regexFromMyArray, function (SpanKeyword) {
return '<span class="highlightedOne">' + SpanKeyword + '</span>'
})
}
});
var target = $("#codePartTwelve");
$("#codeSectionTwelve").scroll(function () {
target.prop("scrollTop", this.scrollTop)
.prop("scrollLeft", this.scrollLeft);
});
$(document).ready(function () {
if ($('#codeSectionThirteen').html()) {
document.getElementById('codePartThirteen').innerHTML = $('#codeSectionThirteen').html().replace(regexFromMyArray, function (SpanKeyword) {
return '<span class="highlightedOne">' + SpanKeyword + '</span>'
})
}
});
var target = $("#codePartThirteen");
$("#codeSectionThirteen").scroll(function () {
target.prop("scrollTop", this.scrollTop)
.prop("scrollLeft", this.scrollLeft);
});
$(document).ready(function () {
if ($('#codeSectionFourteen').html()) {
document.getElementById('codePartFourteen').innerHTML = $('#codeSectionFourteen').html().replace(regexFromMyArray, function (SpanKeyword) {
return '<span class="highlightedOne">' + SpanKeyword + '</span>'
})
}
});
var target = $("#codePartFourteen");
$("#codeSectionFourteen").scroll(function () {
target.prop("scrollTop", this.scrollTop)
.prop("scrollLeft", this.scrollLeft);
});
$(document).ready(function () {
if ($('#codeSectionFifteen').html()) {
document.getElementById('codePartFifteen').innerHTML = $('#codeSectionFifteen').html().replace(regexFromMyArray, function (SpanKeyword) {
return '<span class="highlightedOne">' + SpanKeyword + '</span>'
})
}
});
var target = $("#codePartFifteen");
$("#codeSectionFifteen").scroll(function () {
target.prop("scrollTop", this.scrollTop)
.prop("scrollLeft", this.scrollLeft);
});
$(document).ready(function () {
if ($('#codeSectionSixteen').html()) {
document.getElementById('codePartSixteen').innerHTML = $('#codeSectionSixteen').html().replace(regexFromMyArray, function (SpanKeyword) {
return '<span class="highlightedOne">' + SpanKeyword + '</span>'
})
}
});
var target = $("#codePartSixteen");
$("#codeSectionSixteen").scroll(function () {
target.prop("scrollTop", this.scrollTop)
.prop("scrollLeft", this.scrollLeft);
});
$(document).ready(function () {
if ($('#codeSectionSeventeen').html()) {
document.getElementById('codePartSeventeen').innerHTML = $('#codeSectionSeventeen').html().replace(regexFromMyArray, function (SpanKeyword) {
return '<span class="highlightedOne">' + SpanKeyword + '</span>'
})
}
});
var target = $("#codePartSeventeen");
$("#codeSectionSeventeen").scroll(function () {
target.prop("scrollTop", this.scrollTop)
.prop("scrollLeft", this.scrollLeft);
});
$(document).ready(function () {
if ($('#codeSectionEighteen').html()) {
document.getElementById('codePartEighteen').innerHTML = $('#codeSectionEighteen').html().replace(regexFromMyArray, function (SpanKeyword) {
return '<span class="highlightedOne">' + SpanKeyword + '</span>'
})
}
});
var target = $("#codePartEighteen");
$("#codeSectionEighteen").scroll(function () {
target.prop("scrollTop", this.scrollTop)
.prop("scrollLeft", this.scrollLeft);
});
</script>
<script>
$(document).ready(function () {
// Use jQuery to find the container and iterate over paragraphs
$('#codePart p').each(function () {
debugger;
// Check if the paragraph text contains '//'
if (this.innerText.includes('//')) {
// Remove all <span> tags within this paragraph
$(this).find('span').replaceWith(function () {
return $(this).contents(); // Replace <span> with its contents (text nodes)
});
}
});
});
$(document).ready(function () {
// Use jQuery to find the container and iterate over paragraphs
$('#codePartOne p').each(function () {
debugger;
// Check if the paragraph text contains '//'
if (this.innerText.includes('//')) {
// Remove all <span> tags within this paragraph
$(this).find('span').replaceWith(function () {
return $(this).contents(); // Replace <span> with its contents (text nodes)
});
}
});
});
$(document).ready(function () {
// Use jQuery to find the container and iterate over paragraphs
$('#codePartTwo p').each(function () {
debugger;
// Check if the paragraph text contains '//'
if (this.innerText.includes('//')) {
// Remove all <span> tags within this paragraph
$(this).find('span').replaceWith(function () {
return $(this).contents(); // Replace <span> with its contents (text nodes)
});
}
});
});
$(document).ready(function () {
// Use jQuery to find the container and iterate over paragraphs
$('#codePartThree p').each(function () {
debugger;
// Check if the paragraph text contains '//'
if (this.innerText.includes('//')) {
// Remove all <span> tags within this paragraph
$(this).find('span').replaceWith(function () {
return $(this).contents(); // Replace <span> with its contents (text nodes)
});
}
});
});
$(document).ready(function () {
// Use jQuery to find the container and iterate over paragraphs
$('#codePartFour p').each(function () {
debugger;
// Check if the paragraph text contains '//'
if (this.innerText.includes('//')) {
// Remove all <span> tags within this paragraph
$(this).find('span').replaceWith(function () {
return $(this).contents(); // Replace <span> with its contents (text nodes)
});
}
});
});
</script>
<script>
function copyFunction() {
const copyButtonLabel = "Copy Code";
var copyText = document.getElementById("codePart");
navigator.clipboard.writeText(copyText.innerText);
document.getElementById("divbtn").removeAttribute("style");
document.getElementById("divbtn").setAttribute("style", "margin-left:-107px;");
document.getElementById("btncopy").setAttribute("class", "btn btn-success");
document.getElementById("btncopy").innerText = "Code copied in clipboard";
setTimeout(() => {
document.getElementById("divbtn").removeAttribute("style");
document.getElementById("divbtn").setAttribute("style", "margin-left:-4px;");
document.getElementById("btncopy").setAttribute("class", "btn btn-danger");
document.getElementById("btncopy").innerText = copyButtonLabel;
}, 1200);
}
</script>
<script>
function copyFunctionOne() {
const copyButtonLabel = "Copy Code";
var copyText = document.getElementById("codePartOne");
navigator.clipboard.writeText(copyText.innerText);
document.getElementById("divbtnOne").removeAttribute("style");
document.getElementById("divbtnOne").setAttribute("style", "margin-left:-107px;");
document.getElementById("btncopyOne").setAttribute("class", "btn btn-success");
document.getElementById("btncopyOne").innerText = "Code copied in clipboard";
setTimeout(() => {
document.getElementById("divbtnOne").removeAttribute("style");
document.getElementById("divbtnOne").setAttribute("style", "margin-left:-4px;");
document.getElementById("btncopyOne").setAttribute("class", "btn btn-danger");
document.getElementById("btncopyOne").innerText = copyButtonLabel;
}, 1200);
}
</script>
<script>
function copyFunctionTwo() {
const copyButtonLabel = "Copy Code";
var copyText = document.getElementById("codePartTwo");
navigator.clipboard.writeText(copyText.innerText);
document.getElementById("divbtnTwo").removeAttribute("style");
document.getElementById("divbtnTwo").setAttribute("style", "margin-left:-107px;");
document.getElementById("btncopyTwo").setAttribute("class", "btn btn-success");
document.getElementById("btncopyTwo").innerText = "Code copied in clipboard";
setTimeout(() => {
document.getElementById("divbtnTwo").removeAttribute("style");
document.getElementById("divbtnTwo").setAttribute("style", "margin-left:-4px;");
document.getElementById("btncopyTwo").setAttribute("class", "btn btn-danger");
document.getElementById("btncopyTwo").innerText = copyButtonLabel;
}, 1200);
}
</script>
<script>
function copyFunctionThree() {
const copyButtonLabel = "Copy Code";
var copyText = document.getElementById("codePartThree");
navigator.clipboard.writeText(copyText.innerText);
document.getElementById("divbtnThree").removeAttribute("style");
document.getElementById("divbtnThree").setAttribute("style", "margin-left:-107px;");
document.getElementById("btncopyThree").setAttribute("class", "btn btn-success");
document.getElementById("btncopyThree").innerText = "Code copied in clipboard";
setTimeout(() => {
document.getElementById("divbtnThree").removeAttribute("style");
document.getElementById("divbtnThree").setAttribute("style", "margin-left:-4px;");
document.getElementById("btncopyThree").setAttribute("class", "btn btn-danger");
document.getElementById("btncopyThree").innerText = copyButtonLabel;
}, 1200);
}
</script>
<script>
function copyFunctionFour() {
const copyButtonLabel = "Copy Code";
var copyText = document.getElementById("codePartFour");
navigator.clipboard.writeText(copyText.innerText);
document.getElementById("divbtnFour").removeAttribute("style");
document.getElementById("divbtnFour").setAttribute("style", "margin-left:-107px;");
document.getElementById("btncopyFour").setAttribute("class", "btn btn-success");
document.getElementById("btncopyFour").innerText = "Code copied in clipboard";
setTimeout(() => {
document.getElementById("divbtnFour").removeAttribute("style");
document.getElementById("divbtnFour").setAttribute("style", "margin-left:-4px;");
document.getElementById("btncopyFour").setAttribute("class", "btn btn-danger");
document.getElementById("btncopyFour").innerText = copyButtonLabel;
}, 1200);
}
</script>
<script>
function copyFunctionFive() {
const copyButtonLabel = "Copy Code";
var copyText = document.getElementById("codePartFive");
navigator.clipboard.writeText(copyText.innerText);
document.getElementById("divbtnFive").removeAttribute("style");
document.getElementById("divbtnFive").setAttribute("style", "margin-left:-107px;");
document.getElementById("btncopyFive").setAttribute("class", "btn btn-success");
document.getElementById("btncopyFive").innerText = "Code copied in clipboard";
setTimeout(() => {
document.getElementById("divbtnFive").removeAttribute("style");
document.getElementById("divbtnFive").setAttribute("style", "margin-left:-4px;");
document.getElementById("btncopyFive").setAttribute("class", "btn btn-danger");
document.getElementById("btncopyFive").innerText = copyButtonLabel;
}, 1200);
}
</script>
<script>
function copyFunctionSix() {
const copyButtonLabel = "Copy Code";
var copyText = document.getElementById("codePartSix");
navigator.clipboard.writeText(copyText.innerText);
document.getElementById("divbtnSix").removeAttribute("style");
document.getElementById("divbtnSix").setAttribute("style", "margin-left:-107px;");
document.getElementById("btncopySix").setAttribute("class", "btn btn-success");
document.getElementById("btncopySix").innerText = "Code copied in clipboard";
setTimeout(() => {
document.getElementById("divbtnSix").removeAttribute("style");
document.getElementById("divbtnSix").setAttribute("style", "margin-left:-4px;");
document.getElementById("btncopySix").setAttribute("class", "btn btn-danger");
document.getElementById("btncopySix").innerText = copyButtonLabel;
}, 1200);
}
</script>
<script>
function copyFunctionSeven() {
const copyButtonLabel = "Copy Code";
var copyText = document.getElementById("codePartSeven");
navigator.clipboard.writeText(copyText.innerText);
document.getElementById("divbtnSeven").removeAttribute("style");
document.getElementById("divbtnSeven").setAttribute("style", "margin-left:-107px;");
document.getElementById("btncopySeven").setAttribute("class", "btn btn-success");
document.getElementById("btncopySeven").innerText = "Code copied in clipboard";
setTimeout(() => {
document.getElementById("divbtnSeven").removeAttribute("style");
document.getElementById("divbtnSeven").setAttribute("style", "margin-left:-4px;");
document.getElementById("btncopySeven").setAttribute("class", "btn btn-danger");
document.getElementById("btncopySeven").innerText = copyButtonLabel;
}, 1200);
}
</script>
<script>
function copyFunctionEight() {
const copyButtonLabel = "Copy Code";
var copyText = document.getElementById("codePartEight");
navigator.clipboard.writeText(copyText.innerText);
document.getElementById("divbtnEight").removeAttribute("style");
document.getElementById("divbtnEight").setAttribute("style", "margin-left:-107px;");
document.getElementById("btncopyEight").setAttribute("class", "btn btn-success");
document.getElementById("btncopyEight").innerText = "Code copied in clipboard";
setTimeout(() => {
document.getElementById("divbtnEight").removeAttribute("style");
document.getElementById("divbtnEight").setAttribute("style", "margin-left:-4px;");
document.getElementById("btncopyEight").setAttribute("class", "btn btn-danger");
document.getElementById("btncopyEight").innerText = copyButtonLabel;
}, 1200);
}
</script>
<script>
function copyFunctionNine() {
const copyButtonLabel = "Copy Code";
var copyText = document.getElementById("codePartNine");
navigator.clipboard.writeText(copyText.innerText);
document.getElementById("divbtnNine").removeAttribute("style");
document.getElementById("divbtnNine").setAttribute("style", "margin-left:-107px;");
document.getElementById("btncopyNine").setAttribute("class", "btn btn-success");
document.getElementById("btncopyNine").innerText = "Code copied in clipboard";
setTimeout(() => {
document.getElementById("divbtnNine").removeAttribute("style");
document.getElementById("divbtnNine").setAttribute("style", "margin-left:-4px;");
document.getElementById("btncopyNine").setAttribute("class", "btn btn-danger");
document.getElementById("btncopyNine").innerText = copyButtonLabel;
}, 1200);
}
</script>
<script>
function copyFunctionTen() {
const copyButtonLabel = "Copy Code";
var copyText = document.getElementById("codePartTen");
navigator.clipboard.writeText(copyText.innerText);
document.getElementById("divbtnTen").removeAttribute("style");
document.getElementById("divbtnTen").setAttribute("style", "margin-left:-107px;");
document.getElementById("btncopyTen").setAttribute("class", "btn btn-success");
document.getElementById("btncopyTen").innerText = "Code copied in clipboard";
setTimeout(() => {
document.getElementById("divbtnTen").removeAttribute("style");
document.getElementById("divbtnTen").setAttribute("style", "margin-left:-4px;");
document.getElementById("btncopyTen").setAttribute("class", "btn btn-danger");
document.getElementById("btncopyTen").innerText = copyButtonLabel;
}, 1200);
}
</script>
<script>
function copyFunctionEleven() {
const copyButtonLabel = "Copy Code";
var copyText = document.getElementById("codePartEleven");
navigator.clipboard.writeText(copyText.innerText);
document.getElementById("divbtnEleven").removeAttribute("style");
document.getElementById("divbtnEleven").setAttribute("style", "margin-left:-107px;");
document.getElementById("btncopyEleven").setAttribute("class", "btn btn-success");
document.getElementById("btncopyEleven").innerText = "Code copied in clipboard";
setTimeout(() => {
document.getElementById("divbtnEleven").removeAttribute("style");
document.getElementById("divbtnEleven").setAttribute("style", "margin-left:-4px;");
document.getElementById("btncopyEleven").setAttribute("class", "btn btn-danger");
document.getElementById("btncopyEleven").innerText = copyButtonLabel;
}, 1200);
}
</script>
<script>
function copyFunctionTwelve() {
const copyButtonLabel = "Copy Code";
var copyText = document.getElementById("codePartTwelve");
navigator.clipboard.writeText(copyText.innerText);
document.getElementById("divbtnTwelve").removeAttribute("style");
document.getElementById("divbtnTwelve").setAttribute("style", "margin-left:-107px;");
document.getElementById("btncopyTwelve").setAttribute("class", "btn btn-success");
document.getElementById("btncopyTwelve").innerText = "Code copied in clipboard";
setTimeout(() => {
document.getElementById("divbtnTwelve").removeAttribute("style");
document.getElementById("divbtnTwelve").setAttribute("style", "margin-left:-4px;");
document.getElementById("btncopyTwelve").setAttribute("class", "btn btn-danger");
document.getElementById("btncopyTwelve").innerText = copyButtonLabel;
}, 1200);
}
</script>
<script>
function copyFunctionThirteen() {
const copyButtonLabel = "Copy Code";
var copyText = document.getElementById("codePartThirteen");
navigator.clipboard.writeText(copyText.innerText);
document.getElementById("divbtnThirteen").removeAttribute("style");
document.getElementById("divbtnThirteen").setAttribute("style", "margin-left:-107px;");
document.getElementById("btncopyThirteen").setAttribute("class", "btn btn-success");
document.getElementById("btncopyThirteen").innerText = "Code copied in clipboard";
setTimeout(() => {
document.getElementById("divbtnThirteen").removeAttribute("style");
document.getElementById("divbtnThirteen").setAttribute("style", "margin-left:-4px;");
document.getElementById("btncopyThirteen").setAttribute("class", "btn btn-danger");
document.getElementById("btncopyThirteen").innerText = copyButtonLabel;
}, 1200);
}
</script>
<script>
function copyFunctionFourteen() {
const copyButtonLabel = "Copy Code";
var copyText = document.getElementById("codePartFourteen");
navigator.clipboard.writeText(copyText.innerText);
document.getElementById("divbtnFourteen").removeAttribute("style");
document.getElementById("divbtnFourteen").setAttribute("style", "margin-left:-107px;");
document.getElementById("btncopyFourteen").setAttribute("class", "btn btn-success");
document.getElementById("btncopyFourteen").innerText = "Code copied in clipboard";
setTimeout(() => {
document.getElementById("divbtnFourteen").removeAttribute("style");
document.getElementById("divbtnFourteen").setAttribute("style", "margin-left:-4px;");
document.getElementById("btncopyFourteen").setAttribute("class", "btn btn-danger");
document.getElementById("btncopyFourteen").innerText = copyButtonLabel;
}, 1200);
}
</script>
<script>
function copyFunctionFifteen() {
const copyButtonLabel = "Copy Code";
var copyText = document.getElementById("codePartFifteen");
navigator.clipboard.writeText(copyText.innerText);
document.getElementById("divbtnFifteen").removeAttribute("style");
document.getElementById("divbtnFifteen").setAttribute("style", "margin-left:-107px;");
document.getElementById("btncopyFifteen").setAttribute("class", "btn btn-success");
document.getElementById("btncopyFifteen").innerText = "Code copied in clipboard";
setTimeout(() => {
document.getElementById("divbtnFifteen").removeAttribute("style");
document.getElementById("divbtnFifteen").setAttribute("style", "margin-left:-4px;");
document.getElementById("btncopyFifteen").setAttribute("class", "btn btn-danger");
document.getElementById("btncopyFifteen").innerText = copyButtonLabel;
}, 1200);
}
</script>
<script>
function copyFunctionSixteen() {
const copyButtonLabel = "Copy Code";
var copyText = document.getElementById("codePartSixteen");
navigator.clipboard.writeText(copyText.innerText);
document.getElementById("divbtnSixteen").removeAttribute("style");
document.getElementById("divbtnSixteen").setAttribute("style", "margin-left:-107px;");
document.getElementById("btncopySixteen").setAttribute("class", "btn btn-success");
document.getElementById("btncopySixteen").innerText = "Code copied in clipboard";
setTimeout(() => {
document.getElementById("divbtnSixteen").removeAttribute("style");
document.getElementById("divbtnSixteen").setAttribute("style", "margin-left:-4px;");
document.getElementById("btncopySixteen").setAttribute("class", "btn btn-danger");
document.getElementById("btncopySixteen").innerText = copyButtonLabel;
}, 1200);
}
</script>
<script>
function copyFunctionSeventeen() {
const copyButtonLabel = "Copy Code";
var copyText = document.getElementById("codePartSeventeen");
navigator.clipboard.writeText(copyText.innerText);
document.getElementById("divbtnSeventeen").removeAttribute("style");
document.getElementById("divbtnSeventeen").setAttribute("style", "margin-left:-107px;");
document.getElementById("btncopySeventeen").setAttribute("class", "btn btn-success");
document.getElementById("btncopySeventeen").innerText = "Code copied in clipboard";
setTimeout(() => {
document.getElementById("divbtnSeventeen").removeAttribute("style");
document.getElementById("divbtnSeventeen").setAttribute("style", "margin-left:-4px;");
document.getElementById("btncopySeventeen").setAttribute("class", "btn btn-danger");
document.getElementById("btncopySeventeen").innerText = copyButtonLabel;
}, 1200);
}
</script>
<script>
function copyFunctionEighteen() {
const copyButtonLabel = "Copy Code";
var copyText = document.getElementById("codePartEighteen");
navigator.clipboard.writeText(copyText.innerText);
document.getElementById("divbtnEighteen").removeAttribute("style");
document.getElementById("divbtnEighteen").setAttribute("style", "margin-left:-107px;");
document.getElementById("btncopyEighteen").setAttribute("class", "btn btn-success");
document.getElementById("btncopyEighteen").innerText = "Code copied in clipboard";
setTimeout(() => {
document.getElementById("divbtnEighteen").removeAttribute("style");
document.getElementById("divbtnEighteen").setAttribute("style", "margin-left:-4px;");
document.getElementById("btncopyEighteen").setAttribute("class", "btn btn-danger");
document.getElementById("btncopyEighteen").innerText = copyButtonLabel;
}, 1200);
}
</script>
<script src="/js/jquery.js"></script>
<script src="/js/popper.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/jquery.mCustomScrollbar.concat.min.js"></script>
<script src="/js/jquery.fancybox.js"></script>
<script src="/js/appear.js"></script>
<script src="/js/parallax.min.js"></script>
<script src="/js/tilt.jquery.min.js"></script>
<script src="/js/jquery.paroller.min.js"></script>
<script src="/js/owl.js"></script>
<script src="/js/wow.js"></script>
<script src="/js/nav-tool.js"></script>
<script src="/js/jquery-ui.js"></script>
<script src="/js/script.js"></script>
<script src="/js/color-settings.js"></script>
</body>
</html>