Monthly Archives: August 2017

Story, Motivation about Life!

#Collected From a Facebook Post

Difference between Out and Ref keyword in C#

https://www.javatpoint.com/c-sharp-call-by-reference

https://www.javatpoint.com/c-sharp-out-parameter

 

 

 

.NET Components

 

http://www.developerin.net/a/39-Intro-to-.Net-FrameWork/23-Components-of-.Net-Framework

Calling Method Example in C#

code:

with object creation from class:

If we don’t want to use object we can use static keyword here:

Static method can be invoked with class name:

Can be invoked without creating objects:

 

 

 

 

Data Structure in C#

ArrayList Implementation Example:

ArrayList example:

Stack:

 

Queue:

HashMap

Dicitionary:

 

Playing with C#

 

Clean Code:

 

 

Swap without a temp variable

It’s possible with addition:

It’s also possible with multiplication:

 

 

 

Source:
http://www.geeksforgeeks.org/swap-two-numbers-without-using-temporary-variable/