<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>C# Basics Archives -</title>
	<atom:link href="https://mitindia.in/tag/c-basics/feed/" rel="self" type="application/rss+xml" />
	<link>https://mitindia.in/tag/c-basics/</link>
	<description></description>
	<lastBuildDate>Thu, 21 Jul 2016 11:23:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://mitindia.in/wp-content/uploads/2023/03/cropped-android-chrome-512x512-1-32x32.png</url>
	<title>C# Basics Archives -</title>
	<link>https://mitindia.in/tag/c-basics/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Basics of C#</title>
		<link>https://mitindia.in/basics-of-c/</link>
					<comments>https://mitindia.in/basics-of-c/#comments</comments>
		
		<dc:creator><![CDATA[SKB]]></dc:creator>
		<pubDate>Thu, 21 Jul 2016 05:38:06 +0000</pubDate>
				<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[C# Basics]]></category>
		<category><![CDATA[visual c#]]></category>
		<guid isPermaLink="false">http://www.mitindia.in/?p=355</guid>

					<description><![CDATA[<p>Fundamentals of C# Variables: Variables are used to store values of a particular datatype. Syntax: access_modifier datatype VariableName Constants: Constants are used to maintain a value throughout a program. Syntax: const datatype ConstantName = value; Fundamental Types Of C# C# divides data types into two fundamental categories Value Types Represent actual data Just hold a value in [&#8230;]</p>
<p>The post <a href="https://mitindia.in/basics-of-c/">Basics of C#</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3>Fundamentals of C#</h3>
<p>Variables: Variables are used to store values of a particular datatype.</p>
<p>Syntax:<br />
access_modifier datatype VariableName</p>
<p>Constants: Constants are used to maintain a value throughout a program.</p>
<p>Syntax:<br />
const datatype ConstantName = value;</p>
<h5>Fundamental Types Of C#</h5>
<p>C# divides data types into two fundamental categories</p>
<p><strong>Value Types</strong><br />
Represent actual data<br />
Just hold a value in memory<br />
Are stored in a stack<br />
int, char, structures</p>
<p><strong>Reference Types</strong><br />
Signify a pointer or a reference to the data<br />
Contains the address of the object in the heap<br />
= null means that no object has been referenced<br />
classes, interfaces, arrays, strings</p>
<h6>Data types in C#<img fetchpriority="high" decoding="async" class="aligncenter wp-image-359 size-full" src="http://www.mitindia.in/wp-content/uploads/2016/07/datatypes.jpg" alt="Data Types" width="535" height="386" srcset="https://mitindia.in/wp-content/uploads/2016/07/datatypes.jpg 535w, https://mitindia.in/wp-content/uploads/2016/07/datatypes-300x216.jpg 300w" sizes="(max-width: 535px) 100vw, 535px" /></h6>
<p><strong>Boxing &amp; Unboxing</strong><br />
Boxing is conversion of a value type into a reference type</p>
<p>Unboxing is the conversion of a reference type into a value type</p>
<p>With Boxing and unboxing one can link between value-types and reference-types by allowing any value of a value-type to be converted to and from type Object.</p>
<ul>
<li><strong>Operators in C#</strong>Arithmetic</li>
<li>Comparison</li>
<li>Ternary (Conditional)</li>
<li>Assignment</li>
<li>Logical</li>
</ul>
<p><strong>Iteration Constructs</strong><br />
To perform a set of instructions for a certain number of times or while a specific condition is true.</p>
<p><strong>Types of iteration constructs –</strong><br />
The While Loop<br />
The Do Loop<br />
The For Loop<br />
The foreach Loop<br />
<strong>Arrays</strong><br />
A group of values of similar data type<br />
Belong to reference type and hence arrays are stored on the heap<br />
The initialization or assigning of values to the array elements can be done when it is declared or at a later stage in the program.<br />
Syntax:<br />
DataType [number of elements] ArrayName;<br />
exa : int[4] array1;<br />
<strong>Structures</strong><br />
Custom data Types<br />
Can have methods defined within them<br />
Cannot implement inheritance<br />
Represent Value types</p>
<p>exa:</p>
<p>struct student<br />
{<br />
public int stud_id;<br />
public string stud_name;<br />
public float stud_marks;</p>
<p>public void show_details()<br />
{<br />
//display student details<br />
}</p>
<p><strong>Enumerators</strong><br />
Enums (abbreviation for Enumerators) are a set of named numeric constants.<br />
Used to define a data type that can have a specific set of values<br />
Enumerators are defined using the keyword enum.</p>
<p>exa:<br />
public enum WeekDays<br />
{<br />
Monday=1,<br />
Tuesday=2,<br />
Wednesday=3,<br />
Thursday=4,<br />
Friday=5<br />
}</p>
<p><a href="http://www.mitindia.in/2016/07/21/oops-with-c/">Object oriented programming with c#</a></p>
<p><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fmitindia.in%2Fbasics-of-c%2F&amp;linkname=Basics%20of%20C%23" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fmitindia.in%2Fbasics-of-c%2F&amp;linkname=Basics%20of%20C%23" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fmitindia.in%2Fbasics-of-c%2F&#038;title=Basics%20of%20C%23" data-a2a-url="https://mitindia.in/basics-of-c/" data-a2a-title="Basics of C#"><img src="https://static.addtoany.com/buttons/favicon.png" alt="Share"></a></p><p>The post <a href="https://mitindia.in/basics-of-c/">Basics of C#</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mitindia.in/basics-of-c/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
