This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Data; | |
namespace CrtDataSet | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
//-- Instantiate the data set and table |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Reflection; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var person = new Person | |
{ Name = "Rhonda", | |
FaveShow = "Fringe, Lost", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Bicycle | |
{ | |
private int cadence; | |
private int gear; | |
private int speed; | |
public Bicycle(int startCadence, int startGear, int startSpeed) | |
{ | |
cadence = startCadence; | |
gear = startGear; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace MethodOverloading | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
MethodOverloadPlay(10, 3); | |
Console.WriteLine("+++++"); | |
MethodOverloadPlay(5, 5, 6); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Text; | |
namespace ReverseCs | |
{ | |
class RevString | |
{ | |
static void Main(string[] args) | |
{ | |
string inputString = Console.ReadLine(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading; | |
class Program | |
{ | |
static void Main() | |
{ | |
AutoResetEvent reset = new AutoResetEvent(false); | |
StatusChecker status = new StatusChecker(5); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace StripDecimal_CS | |
{ | |
class RemoveDecimal | |
{ | |
static void Main(string[] args) | |
{ | |
double testNum = 255.95; | |
string noDecimalVal = testNum.ToString().Replace(".", "").PadLeft(9, '0'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace DelegateTest | |
{ | |
public delegate void TestDelegate(string message); | |
class Program | |
{ | |
public static void Display(string message) | |
{ | |
Console.WriteLine(""); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
GETDATE() AS DefaultFormat, | |
CONVERT(nvarchar(30), GETDATE(), 101) AS US, | |
CONVERT(nvarchar(30), GETDATE(), 103) AS UK, | |
CONVERT(nvarchar(30), GETDATE(), 111) AS Japan, | |
CONVERT(nvarchar(30), GETDATE(), 104) AS German, | |
CONVERT(nvarchar(30), GETDATE(), 112) AS ISO, | |
CONVERT(nvarchar(30), GETDATE(), 109) AS Date_with_Milliseconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace ArraysInCSharp | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
SingleDim(); |
OlderNewer