(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
...
Wednesday, February 12, 2014
RethrowingExceptions in C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RethrowingExceptions
{
class Program
{
static void DoSomeMath()
{
int x = 10,...
Exception Objects In C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ExceptionObject
{
class Program
{
static void Main(string[] args)
{
int x =...
Custome Exceptions iN C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CustomExceptions
{
public class NoJoesException : Exception
{
public NoJoesException() : base("We don't allow no Joes in here!")
...
Using Struct inC#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UsingStructs
{
public struct Point
{
private int xCoord;
private int yCoord;
public Point(int...
Using Interfaces In C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UsingInterfaces
{
interface ITalkative
{
void SayHello();
void SayGoodBye();
}
class myExampleClass...
Sealed Classes Representation In C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SealedClasses
{
class myExampleClass
{
public static string myMethod(int arg1)
{
...
Method Overriding In C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MethodOverriding
{
class baseClass
{
public virtual void doSomething()
{
Console.WriteLine("This...
Method Overloading In C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MethodOverloading
{
class Wine
{
public int Year;
public string Name;
public decimal price;
...
Abstract classes in C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AbstractClasses
{
abstract class myBaseClass
{
public abstract int myMethod(int arg1, int arg2);
}
class myDerivedClass...
Stack In C#(How it works)
using System;
using System.Collections; // we need to add this reference to use Files and Directory information
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Stacks
{
class Program
{
static void Main(string[]...
Tuesday, February 4, 2014
Ques in C#
using System;
using System.Collections; // we need to add this reference to use Files and Directory information
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Queues
{
class Program
{
static void Main(string[]...
Array List In C#
using System;
using System.Collections; // we need to add this reference to use Files and Directory information
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ArrayLists
{
class Program
{
static void Main(string[]...
Value And Reference Types in C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ValAndRefTypes
{
public class Point
{
public int x;
public int y;
}
class Program
...
Defining properties in C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DefiningProperties
{
class Wine
{
private string Name;
private int year;
private string Apellation;
...
Defining Class Cont.......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DefiningAClass
{
class MyClass
{
int myInteger;
string myMessage;
void myFunction()
...
Defining Class In C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DefiningAClass
{
class MyClass
{
int myInteger;
string myMessage;
public static int myStaticInt...
Variable scope
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace VariableScope
{
class Program
{
static void Main(string[] args)
{
...
Loops In C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Loops
{
class Program
{
static void Main(string[] args)
{
int myVal = 15;
...
Function And Methods
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FuncsAndMethods
{
class Program
{
static void Main(string[] args)
{
int result1;
...
TypeCasting in C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TypeCasting
{
class Program
{
static void Main(string[] args)
{
Program objProg...
Usin loops and printin Shape
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SwitchStatmnt
{
class Program
{
static void Main(string[] args)
{
for (int...
Rectangleapplication: it returns the lenght and width
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Rectangleapplication
{
class Rectangle
{
double length;
double width;
public void AcceptDetails()
...
Is Operator in C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace IsOperatorSample
{
public class Animal
{
}
public class Vehicle
{
}
public class Car : Vehicle
...
ExplicitConversion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ExplicitConversion
{
class Program
{
static void Main(string[] args)
{
double...
DoubleVsDecimal in C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DoubleVsDecimal
{
class Program
{
static void Main(string[] args)
{
float fnum1...
Const And Enums in C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConstAndEnum
{
public enum weekdays
{
sunday,
monday
}
// demonstrates how...
ArthematicOperators in C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ArthematicOperators
{
class Program
{
static void Main(string[] args)
{
int...
Multiple Cases. Falling Through!
<html>
<head>
<title></title>
</head>
<body>
<?php
$i = 5;
switch ($i) {
case 0:
echo '$i is 0.';
...