SlideShare une entreprise Scribd logo
1  sur  12
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
RefactorExtractMetod();
RefactorExtractMetod();
Console.ReadLine();
}
private static void RefactorExtractMetod()
{
Console.Title = "Application";
Console.ForegroundColor = ConsoleColor.Yellow;
Console.BackgroundColor = ConsoleColor.Blue;
Console.WriteLine("****************************************");
Console.WriteLine("*********** Welcome ********************");
Console.WriteLine("****************************************");
Console.BackgroundColor = ConsoleColor.Black;
}
}
}
namespace ConsoleApplication3
{
class Program
{
public static int Main(string[] args)
{
for (int i = 0; i < args.Length; i++)
Console.WriteLine("Arg: {0}", args[i]);
return 0;
}
}
}
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("C format: {0:C}", 99989.987);
Console.WriteLine("D6 format: {0:D6}", 99999);
Console.WriteLine("E format: {0:E}", 99999.76543);
Console.WriteLine("F3 format: {0:F3}", 99999.9999);
Console.WriteLine("N format: {0:N}", 99999);
Console.WriteLine("X format: {0:X}", 99999);
Console.WriteLine("x format: {0:x}", 99999);
Console.ReadLine();
}
}
}
namespace ConsoleApplication5
{
class StringFormat
{
static void Main(string[] args)
{
string FormatStr;
FormatStr = String.Format("Don't you wish you had {0:c} in your account?", 99989.987);
Console.WriteLine(FormatStr);
Console.ReadLine();
}
}
}
namespace ConsoleApplication7
{
class Program
{
static void Main(string[] args)
{
string[] books = { "complex algoritm", "do you remember", "C and C++" };
foreach (string s in books)
Console.WriteLine(s);
int[] myints = { 10, 20, 30, 40 };
foreach (int i in myints)
Console.WriteLine(i);
Console.ReadLine();
}
}
}
namespace ConsoleApplication8
{
class Program
{
static void Main(string[] args)
{
string userIsDone = "";
do
{
Console.Write("Are you done? [yes] [no]: ");
userIsDone = Console.ReadLine();
Console.WriteLine("In while loop");
} while (userIsDone.ToLower() != "yes");
}
}
}
namespace ConsoleApplication9
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("1 [C#], 2 [VB]");
Console.Write("please pick you language preference: ");
string langChoice = Console.ReadLine();
int n = int.Parse(langChoice);
switch (n)
{
case 1:
Console.WriteLine("Good choice, C# is a fine language");
break;
case 2:
Console.WriteLine("Good choice, VB is a fine language");
break;
default:
Console.WriteLine("will .. good luck with that ");
break;
}
Console.ReadLine();
}
}
namespace EnmiinJishee
{
class Enum1
{
enum EmpType
{
Boss=1,
Manager=2,
Ahlagch=3,
Ajilchin=4,
}
static void Main(string[] args)
{
Array obj = Enum.GetValues(typeof(EmpType));
Console.WriteLine("This enum has {0} members.", obj.Length);
foreach (EmpType e in obj)
{
Console.Write("string Name: {0},", e.ToString());
Console.Write("int: ({0}),",Enum.Format(typeof(EmpType),e,"D"));
Console.Write("hex: ({0})n,", Enum.Format(typeof(EmpType), e, "X"));
Console.ReadLine();
}
}
}
}
namespace ObjectMethods
{
class Person
{
public Person(string fname, string lname, string s, byte a)
{
firstname = fname;
lastname = lname;
SSN = s;
age = a;
}
public Person() { }
public string firstname;
public string lastname;
public string SSN;
public byte age;
static void Main(string[] args)
{
Console.WriteLine("*******Working with Object***********n");
Person fred = new Person("Fred", "Clark", "111 - 11 - 1111", 20);
Console.WriteLine("-> Fred.Tostring: {0}",fred.ToString());
Console.WriteLine("-> Fred.GetHashCode: {0}", fred.GetHashCode());
Console.WriteLine("-> Fred's base class: {0}", fred.GetType());
Person p2 = fred;
Object o = p2;
if (o.Equals(fred) && p2.Equals(o))
Console.WriteLine("fred, p2,& o are referencing the same object.");
Console.ReadLine();
}
}
}
namespace ObjectMethods
{
class Person
{
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.AppendFormat("FirstName={0}", this.firstname);
sb.AppendFormat("LastName={0}", this.lastname);
sb.AppendFormat("SSN={0}", this.SSN);
sb.AppendFormat("Age={0}", this.age);
return sb.ToString();
}
public Person(string fname, string lname, string s, byte a)
{
firstname = fname;
lastname = lname;
SSN = s;
age = a;
}
public string firstname;
public string lastname;
public string SSN;
public byte age;
static void Main(string[] args)
{
Console.WriteLine("*******Working with Object***********n");
Person fred = new Person("Fred ", "Clark ", "111 - 11 - 1111 ", 20);
Console.WriteLine("-> Fred.Tostring: {0}", fred.ToString());
Console.WriteLine("-> Fred.GetHashCode: {0}", fred.GetHashCode());
Console.WriteLine("-> Fred's base class: {0}", fred.GetType());
Person p2 = fred;
Object o = p2;
if (o.Equals(fred) && p2.Equals(o))
Console.WriteLine("fred, p2,& o are referencing the same object.");
Console.ReadLine();
}
}
}
namespace ConsoleApplication19
{
class Program
{
static void Main(string[] args)
{
string Sdate = "2010-11-10";
DateTime CurrentDate = DateTime.Now;
Console.WriteLine(Convert.ToString(DateTime.Now));
Console.WriteLine(CurrentDate.ToString());
CurrentDate = Convert.ToDateTime(Sdate);
Console.WriteLine(CurrentDate);
}
}
}
namespace ConsoleApplication28
{
class Program
{
static void Main(string[] args)
{
//string sdate = "2010-02-21";
//CurrDate = Convert.ToDateTime(sdate);
DateTime currdate = DateTime.Now;
Console.WriteLine("Date D format:"+currdate.ToString("D"));
Console.WriteLine("Date d format:" + currdate.ToString("d"));
Console.WriteLine("Date F format:" + currdate.ToString("F"));
Console.WriteLine("Date f format:" + currdate.ToString("f"));
Console.WriteLine("Date G format:" + currdate.ToString("G"));
Console.WriteLine("Date g format:" + currdate.ToString("g"));
Console.WriteLine("Date T format:" + currdate.ToString("T"));
Console.WriteLine("Date t format:" + currdate.ToString("t"));
Console.WriteLine("Date U format:" + currdate.ToString("U"));
Console.WriteLine("Date u format:" + currdate.ToString("u"));
Console.WriteLine("Date s format:" + currdate.ToString("s"));
Console.WriteLine("Date M format:" + currdate.ToString("M"));
Console.WriteLine("Date m format:" + currdate.ToString("m"));
Console.WriteLine("Date Y format:" + currdate.ToString("Y"));
Console.WriteLine("Date y format:" + currdate.ToString("y"));
Console.ReadLine();
}
}
}
namespace ConsoleApplication20
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("**********Fun with string**********");
string s = "Boy, this is taking a long time.";
Console.WriteLine("--> s contains 'oy'?: {0}",s.Contains("oy"));
Console.WriteLine("--> s contains 'Boy'?: {0}", s.Contains("Bey"));
Console.WriteLine(s.Replace('.','!'));
Console.WriteLine(s.Insert(0, "hey"));
Console.ReadLine();
}
}
}
namespace ConsoleApplication21
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Everyone loves ' Hello World' ");
Console.WriteLine("Everyone loves " Hello World" ");
Console.WriteLine("aC:progdocumentpicture ");
Console.WriteLine("Everyone loves ' Hello World' ");
}
}
}

Contenu connexe

Tendances

Python postgre sql a wonderful wedding
Python postgre sql   a wonderful weddingPython postgre sql   a wonderful wedding
Python postgre sql a wonderful weddingStéphane Wirtel
 
An Intro To ES6
An Intro To ES6An Intro To ES6
An Intro To ES6FITC
 
Making Mongo realtime - oplog tailing in Meteor
Making Mongo realtime - oplog tailing in MeteorMaking Mongo realtime - oplog tailing in Meteor
Making Mongo realtime - oplog tailing in Meteoryaliceme
 
ZeroMQ Is The Answer: DPC 11 Version
ZeroMQ Is The Answer: DPC 11 VersionZeroMQ Is The Answer: DPC 11 Version
ZeroMQ Is The Answer: DPC 11 VersionIan Barber
 
Обзор фреймворка Twisted
Обзор фреймворка TwistedОбзор фреймворка Twisted
Обзор фреймворка TwistedMaxim Kulsha
 
"PostgreSQL and Python" Lightning Talk @EuroPython2014
"PostgreSQL and Python" Lightning Talk @EuroPython2014"PostgreSQL and Python" Lightning Talk @EuroPython2014
"PostgreSQL and Python" Lightning Talk @EuroPython2014Henning Jacobs
 
ONLINE STUDENT MANAGEMENT SYSTEM
ONLINE STUDENT MANAGEMENT SYSTEMONLINE STUDENT MANAGEMENT SYSTEM
ONLINE STUDENT MANAGEMENT SYSTEMRohit malav
 
Debugging: Rules And Tools - PHPTek 11 Version
Debugging: Rules And Tools - PHPTek 11 VersionDebugging: Rules And Tools - PHPTek 11 Version
Debugging: Rules And Tools - PHPTek 11 VersionIan Barber
 
Refactoring to Macros with Clojure
Refactoring to Macros with ClojureRefactoring to Macros with Clojure
Refactoring to Macros with ClojureDmitry Buzdin
 
Explaining ES6: JavaScript History and What is to Come
Explaining ES6: JavaScript History and What is to ComeExplaining ES6: JavaScript History and What is to Come
Explaining ES6: JavaScript History and What is to ComeCory Forsyth
 
Teaching Your Machine To Find Fraudsters
Teaching Your Machine To Find FraudstersTeaching Your Machine To Find Fraudsters
Teaching Your Machine To Find FraudstersIan Barber
 
ZeroMQ: Messaging Made Simple
ZeroMQ: Messaging Made SimpleZeroMQ: Messaging Made Simple
ZeroMQ: Messaging Made SimpleIan Barber
 
ZeroMQ Is The Answer
ZeroMQ Is The AnswerZeroMQ Is The Answer
ZeroMQ Is The AnswerIan Barber
 
The Browser Environment - A Systems Programmer's Perspective
The Browser Environment - A Systems Programmer's PerspectiveThe Browser Environment - A Systems Programmer's Perspective
The Browser Environment - A Systems Programmer's PerspectiveEleanor McHugh
 

Tendances (20)

Python postgre sql a wonderful wedding
Python postgre sql   a wonderful weddingPython postgre sql   a wonderful wedding
Python postgre sql a wonderful wedding
 
An Intro To ES6
An Intro To ES6An Intro To ES6
An Intro To ES6
 
Coffee script
Coffee scriptCoffee script
Coffee script
 
Making Mongo realtime - oplog tailing in Meteor
Making Mongo realtime - oplog tailing in MeteorMaking Mongo realtime - oplog tailing in Meteor
Making Mongo realtime - oplog tailing in Meteor
 
ZeroMQ Is The Answer: DPC 11 Version
ZeroMQ Is The Answer: DPC 11 VersionZeroMQ Is The Answer: DPC 11 Version
ZeroMQ Is The Answer: DPC 11 Version
 
Обзор фреймворка Twisted
Обзор фреймворка TwistedОбзор фреймворка Twisted
Обзор фреймворка Twisted
 
"PostgreSQL and Python" Lightning Talk @EuroPython2014
"PostgreSQL and Python" Lightning Talk @EuroPython2014"PostgreSQL and Python" Lightning Talk @EuroPython2014
"PostgreSQL and Python" Lightning Talk @EuroPython2014
 
ONLINE STUDENT MANAGEMENT SYSTEM
ONLINE STUDENT MANAGEMENT SYSTEMONLINE STUDENT MANAGEMENT SYSTEM
ONLINE STUDENT MANAGEMENT SYSTEM
 
EcmaScript 6
EcmaScript 6 EcmaScript 6
EcmaScript 6
 
Debugging: Rules And Tools - PHPTek 11 Version
Debugging: Rules And Tools - PHPTek 11 VersionDebugging: Rules And Tools - PHPTek 11 Version
Debugging: Rules And Tools - PHPTek 11 Version
 
Refactoring to Macros with Clojure
Refactoring to Macros with ClojureRefactoring to Macros with Clojure
Refactoring to Macros with Clojure
 
ECMAScript 6
ECMAScript 6ECMAScript 6
ECMAScript 6
 
Pdxpugday2010 pg90
Pdxpugday2010 pg90Pdxpugday2010 pg90
Pdxpugday2010 pg90
 
Explaining ES6: JavaScript History and What is to Come
Explaining ES6: JavaScript History and What is to ComeExplaining ES6: JavaScript History and What is to Come
Explaining ES6: JavaScript History and What is to Come
 
Teaching Your Machine To Find Fraudsters
Teaching Your Machine To Find FraudstersTeaching Your Machine To Find Fraudsters
Teaching Your Machine To Find Fraudsters
 
Arp
ArpArp
Arp
 
ZeroMQ: Messaging Made Simple
ZeroMQ: Messaging Made SimpleZeroMQ: Messaging Made Simple
ZeroMQ: Messaging Made Simple
 
Why Learn Python?
Why Learn Python?Why Learn Python?
Why Learn Python?
 
ZeroMQ Is The Answer
ZeroMQ Is The AnswerZeroMQ Is The Answer
ZeroMQ Is The Answer
 
The Browser Environment - A Systems Programmer's Perspective
The Browser Environment - A Systems Programmer's PerspectiveThe Browser Environment - A Systems Programmer's Perspective
The Browser Environment - A Systems Programmer's Perspective
 

Similaire à Bodlogiin code

Modify the project so tat records are inserted into the random acess.pdf
Modify the project so tat records are inserted into the random acess.pdfModify the project so tat records are inserted into the random acess.pdf
Modify the project so tat records are inserted into the random acess.pdffcaindore
 
C# 6 and 7 and Futures 20180607
C# 6 and 7 and Futures 20180607C# 6 and 7 and Futures 20180607
C# 6 and 7 and Futures 20180607Kevin Hazzard
 
Best of build 2021 - C# 10 & .NET 6
Best of build 2021 -  C# 10 & .NET 6Best of build 2021 -  C# 10 & .NET 6
Best of build 2021 - C# 10 & .NET 6Moaid Hathot
 
04. Console Input Output
04. Console Input Output 04. Console Input Output
04. Console Input Output Intro C# Book
 
java experiments and programs
java experiments and programsjava experiments and programs
java experiments and programsKaruppaiyaa123
 
Spray Json and MongoDB Queries: Insights and Simple Tricks.
Spray Json and MongoDB Queries: Insights and Simple Tricks.Spray Json and MongoDB Queries: Insights and Simple Tricks.
Spray Json and MongoDB Queries: Insights and Simple Tricks.Andrii Lashchenko
 
Rx.NET, from the inside-out - Stas Rivkin - Codemotion Rome 2018
Rx.NET, from the inside-out - Stas Rivkin - Codemotion Rome 2018Rx.NET, from the inside-out - Stas Rivkin - Codemotion Rome 2018
Rx.NET, from the inside-out - Stas Rivkin - Codemotion Rome 2018Codemotion
 
Rx.NET, from the inside out - Codemotion 2018
Rx.NET, from the inside out - Codemotion 2018Rx.NET, from the inside out - Codemotion 2018
Rx.NET, from the inside out - Codemotion 2018Stas Rivkin
 
DConf 2016 std.database (a proposed interface & implementation)
DConf 2016 std.database (a proposed interface & implementation)DConf 2016 std.database (a proposed interface & implementation)
DConf 2016 std.database (a proposed interface & implementation)cruisercoder
 
groovy databases
groovy databasesgroovy databases
groovy databasesPaul King
 
Webinar: Strongly Typed Languages and Flexible Schemas
Webinar: Strongly Typed Languages and Flexible SchemasWebinar: Strongly Typed Languages and Flexible Schemas
Webinar: Strongly Typed Languages and Flexible SchemasMongoDB
 
(Rx).NET' way of async programming (.NET summit 2017 Belarus)
(Rx).NET' way of async programming (.NET summit 2017 Belarus)(Rx).NET' way of async programming (.NET summit 2017 Belarus)
(Rx).NET' way of async programming (.NET summit 2017 Belarus)Stas Rivkin
 
2017 02-07 - elastic & spark. building a search geo locator
2017 02-07 - elastic & spark. building a search geo locator2017 02-07 - elastic & spark. building a search geo locator
2017 02-07 - elastic & spark. building a search geo locatorAlberto Paro
 
2017 02-07 - elastic & spark. building a search geo locator
2017 02-07 - elastic & spark. building a search geo locator2017 02-07 - elastic & spark. building a search geo locator
2017 02-07 - elastic & spark. building a search geo locatorAlberto Paro
 

Similaire à Bodlogiin code (20)

Dotnet 18
Dotnet 18Dotnet 18
Dotnet 18
 
C# 7
C# 7C# 7
C# 7
 
Modify the project so tat records are inserted into the random acess.pdf
Modify the project so tat records are inserted into the random acess.pdfModify the project so tat records are inserted into the random acess.pdf
Modify the project so tat records are inserted into the random acess.pdf
 
C# 6 and 7 and Futures 20180607
C# 6 and 7 and Futures 20180607C# 6 and 7 and Futures 20180607
C# 6 and 7 and Futures 20180607
 
Best of build 2021 - C# 10 & .NET 6
Best of build 2021 -  C# 10 & .NET 6Best of build 2021 -  C# 10 & .NET 6
Best of build 2021 - C# 10 & .NET 6
 
04. Console Input Output
04. Console Input Output 04. Console Input Output
04. Console Input Output
 
3 database-jdbc(1)
3 database-jdbc(1)3 database-jdbc(1)
3 database-jdbc(1)
 
java experiments and programs
java experiments and programsjava experiments and programs
java experiments and programs
 
Spray Json and MongoDB Queries: Insights and Simple Tricks.
Spray Json and MongoDB Queries: Insights and Simple Tricks.Spray Json and MongoDB Queries: Insights and Simple Tricks.
Spray Json and MongoDB Queries: Insights and Simple Tricks.
 
Introduzione a C#
Introduzione a C#Introduzione a C#
Introduzione a C#
 
Rx.NET, from the inside-out - Stas Rivkin - Codemotion Rome 2018
Rx.NET, from the inside-out - Stas Rivkin - Codemotion Rome 2018Rx.NET, from the inside-out - Stas Rivkin - Codemotion Rome 2018
Rx.NET, from the inside-out - Stas Rivkin - Codemotion Rome 2018
 
Rx.NET, from the inside out - Codemotion 2018
Rx.NET, from the inside out - Codemotion 2018Rx.NET, from the inside out - Codemotion 2018
Rx.NET, from the inside out - Codemotion 2018
 
DConf 2016 std.database (a proposed interface & implementation)
DConf 2016 std.database (a proposed interface & implementation)DConf 2016 std.database (a proposed interface & implementation)
DConf 2016 std.database (a proposed interface & implementation)
 
groovy databases
groovy databasesgroovy databases
groovy databases
 
Webinar: Strongly Typed Languages and Flexible Schemas
Webinar: Strongly Typed Languages and Flexible SchemasWebinar: Strongly Typed Languages and Flexible Schemas
Webinar: Strongly Typed Languages and Flexible Schemas
 
.net progrmming part1
.net progrmming part1.net progrmming part1
.net progrmming part1
 
Chapter04
Chapter04Chapter04
Chapter04
 
(Rx).NET' way of async programming (.NET summit 2017 Belarus)
(Rx).NET' way of async programming (.NET summit 2017 Belarus)(Rx).NET' way of async programming (.NET summit 2017 Belarus)
(Rx).NET' way of async programming (.NET summit 2017 Belarus)
 
2017 02-07 - elastic & spark. building a search geo locator
2017 02-07 - elastic & spark. building a search geo locator2017 02-07 - elastic & spark. building a search geo locator
2017 02-07 - elastic & spark. building a search geo locator
 
2017 02-07 - elastic & spark. building a search geo locator
2017 02-07 - elastic & spark. building a search geo locator2017 02-07 - elastic & spark. building a search geo locator
2017 02-07 - elastic & spark. building a search geo locator
 

Plus de orgil

Bodlogo
BodlogoBodlogo
Bodlogoorgil
 
Its150 l3
Its150 l3Its150 l3
Its150 l3orgil
 
Its150 l2
Its150 l2Its150 l2
Its150 l2orgil
 
Its150 l1
Its150 l1Its150 l1
Its150 l1orgil
 
Test
TestTest
Testorgil
 
Example excel2007
Example excel2007Example excel2007
Example excel2007orgil
 
Test7
Test7Test7
Test7orgil
 
Test6
Test6Test6
Test6orgil
 
Bodlogo
BodlogoBodlogo
Bodlogoorgil
 
Bodlogo
BodlogoBodlogo
Bodlogoorgil
 
Bodlogo
BodlogoBodlogo
Bodlogoorgil
 
Its150 l10powerpoint2007
Its150 l10powerpoint2007Its150 l10powerpoint2007
Its150 l10powerpoint2007orgil
 
Its150 l10powerpoint2007
Its150 l10powerpoint2007Its150 l10powerpoint2007
Its150 l10powerpoint2007orgil
 
Test5
Test5Test5
Test5orgil
 
Test7
Test7Test7
Test7orgil
 
Test7
Test7Test7
Test7orgil
 
Test7
Test7Test7
Test7orgil
 
Test7
Test7Test7
Test7orgil
 
Test6
Test6Test6
Test6orgil
 

Plus de orgil (20)

Bodlogo
BodlogoBodlogo
Bodlogo
 
Its150 l3
Its150 l3Its150 l3
Its150 l3
 
Its150 l2
Its150 l2Its150 l2
Its150 l2
 
Its150 l1
Its150 l1Its150 l1
Its150 l1
 
Bd
BdBd
Bd
 
Test
TestTest
Test
 
Example excel2007
Example excel2007Example excel2007
Example excel2007
 
Test7
Test7Test7
Test7
 
Test6
Test6Test6
Test6
 
Bodlogo
BodlogoBodlogo
Bodlogo
 
Bodlogo
BodlogoBodlogo
Bodlogo
 
Bodlogo
BodlogoBodlogo
Bodlogo
 
Its150 l10powerpoint2007
Its150 l10powerpoint2007Its150 l10powerpoint2007
Its150 l10powerpoint2007
 
Its150 l10powerpoint2007
Its150 l10powerpoint2007Its150 l10powerpoint2007
Its150 l10powerpoint2007
 
Test5
Test5Test5
Test5
 
Test7
Test7Test7
Test7
 
Test7
Test7Test7
Test7
 
Test7
Test7Test7
Test7
 
Test7
Test7Test7
Test7
 
Test6
Test6Test6
Test6
 

Dernier

Top Rated Pune Call Girls Pimpri Chinchwad ⟟ 6297143586 ⟟ Call Me For Genuin...
Top Rated  Pune Call Girls Pimpri Chinchwad ⟟ 6297143586 ⟟ Call Me For Genuin...Top Rated  Pune Call Girls Pimpri Chinchwad ⟟ 6297143586 ⟟ Call Me For Genuin...
Top Rated Pune Call Girls Pimpri Chinchwad ⟟ 6297143586 ⟟ Call Me For Genuin...Call Girls in Nagpur High Profile
 
Call Girl Nashik Amaira 7001305949 Independent Escort Service Nashik
Call Girl Nashik Amaira 7001305949 Independent Escort Service NashikCall Girl Nashik Amaira 7001305949 Independent Escort Service Nashik
Call Girl Nashik Amaira 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...
Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...
Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...anamikaraghav4
 
(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...
(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...
(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...ranjana rawat
 
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur EscortsCall Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Nayabad Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Sex At ...
Nayabad Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Sex At ...Nayabad Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Sex At ...
Nayabad Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Sex At ...aamir
 
Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...
Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...
Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser... Shivani Pandey
 
Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...
Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...
Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...aamir
 
2k Shot Call girls Laxmi Nagar Delhi 9205541914
2k Shot Call girls Laxmi Nagar Delhi 92055419142k Shot Call girls Laxmi Nagar Delhi 9205541914
2k Shot Call girls Laxmi Nagar Delhi 9205541914Delhi Call girls
 
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...rahim quresi
 
Call Girls in Barasat | 7001035870 At Low Cost Cash Payment Booking
Call Girls in Barasat | 7001035870 At Low Cost Cash Payment BookingCall Girls in Barasat | 7001035870 At Low Cost Cash Payment Booking
Call Girls in Barasat | 7001035870 At Low Cost Cash Payment Bookingnoor ahmed
 
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Call Girls Agency In Goa 💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
Call Girls  Agency In Goa  💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...Call Girls  Agency In Goa  💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
Call Girls Agency In Goa 💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...russian goa call girl and escorts service
 
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...noor ahmed
 
College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...
College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...
College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...anamikaraghav4
 
Russian Escorts Agency In Goa 💚 9316020077 💚 Russian Call Girl Goa
Russian Escorts Agency In Goa  💚 9316020077 💚 Russian Call Girl GoaRussian Escorts Agency In Goa  💚 9316020077 💚 Russian Call Girl Goa
Russian Escorts Agency In Goa 💚 9316020077 💚 Russian Call Girl Goasexy call girls service in goa
 

Dernier (20)

Top Rated Pune Call Girls Pimpri Chinchwad ⟟ 6297143586 ⟟ Call Me For Genuin...
Top Rated  Pune Call Girls Pimpri Chinchwad ⟟ 6297143586 ⟟ Call Me For Genuin...Top Rated  Pune Call Girls Pimpri Chinchwad ⟟ 6297143586 ⟟ Call Me For Genuin...
Top Rated Pune Call Girls Pimpri Chinchwad ⟟ 6297143586 ⟟ Call Me For Genuin...
 
Call Girl Nashik Amaira 7001305949 Independent Escort Service Nashik
Call Girl Nashik Amaira 7001305949 Independent Escort Service NashikCall Girl Nashik Amaira 7001305949 Independent Escort Service Nashik
Call Girl Nashik Amaira 7001305949 Independent Escort Service Nashik
 
Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...
Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...
Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...
 
(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...
(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...
(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...
 
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur EscortsCall Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
 
Nayabad Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Sex At ...
Nayabad Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Sex At ...Nayabad Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Sex At ...
Nayabad Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Sex At ...
 
Call Girls South Avenue Delhi WhatsApp Number 9711199171
Call Girls South Avenue Delhi WhatsApp Number 9711199171Call Girls South Avenue Delhi WhatsApp Number 9711199171
Call Girls South Avenue Delhi WhatsApp Number 9711199171
 
Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...
Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...
Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...
 
Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...
Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...
Dakshineswar Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Se...
 
CHEAP Call Girls in Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in  Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in  Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
2k Shot Call girls Laxmi Nagar Delhi 9205541914
2k Shot Call girls Laxmi Nagar Delhi 92055419142k Shot Call girls Laxmi Nagar Delhi 9205541914
2k Shot Call girls Laxmi Nagar Delhi 9205541914
 
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
Science City Kolkata ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sex...
 
Call Girls in Barasat | 7001035870 At Low Cost Cash Payment Booking
Call Girls in Barasat | 7001035870 At Low Cost Cash Payment BookingCall Girls in Barasat | 7001035870 At Low Cost Cash Payment Booking
Call Girls in Barasat | 7001035870 At Low Cost Cash Payment Booking
 
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Goa Call Girls 9316020077 Call Girls In Goa By Russian Call Girl in goa
Goa Call Girls 9316020077 Call Girls  In Goa By Russian Call Girl in goaGoa Call Girls 9316020077 Call Girls  In Goa By Russian Call Girl in goa
Goa Call Girls 9316020077 Call Girls In Goa By Russian Call Girl in goa
 
Call Girls Agency In Goa 💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
Call Girls  Agency In Goa  💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...Call Girls  Agency In Goa  💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
Call Girls Agency In Goa 💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
 
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...
 
College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...
College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...
College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...
 
Russian Escorts Agency In Goa 💚 9316020077 💚 Russian Call Girl Goa
Russian Escorts Agency In Goa  💚 9316020077 💚 Russian Call Girl GoaRussian Escorts Agency In Goa  💚 9316020077 💚 Russian Call Girl Goa
Russian Escorts Agency In Goa 💚 9316020077 💚 Russian Call Girl Goa
 
Call Girls Chirag Delhi Delhi WhatsApp Number 9711199171
Call Girls Chirag Delhi Delhi WhatsApp Number 9711199171Call Girls Chirag Delhi Delhi WhatsApp Number 9711199171
Call Girls Chirag Delhi Delhi WhatsApp Number 9711199171
 

Bodlogiin code

  • 1. namespace ConsoleApplication1 { class Program { static void Main(string[] args) { RefactorExtractMetod(); RefactorExtractMetod(); Console.ReadLine(); } private static void RefactorExtractMetod() { Console.Title = "Application"; Console.ForegroundColor = ConsoleColor.Yellow; Console.BackgroundColor = ConsoleColor.Blue; Console.WriteLine("****************************************"); Console.WriteLine("*********** Welcome ********************"); Console.WriteLine("****************************************"); Console.BackgroundColor = ConsoleColor.Black; } } } namespace ConsoleApplication3 { class Program { public static int Main(string[] args) {
  • 2. for (int i = 0; i < args.Length; i++) Console.WriteLine("Arg: {0}", args[i]); return 0; } } } namespace ConsoleApplication4 {
  • 3. class Program { static void Main(string[] args) { Console.WriteLine("C format: {0:C}", 99989.987); Console.WriteLine("D6 format: {0:D6}", 99999); Console.WriteLine("E format: {0:E}", 99999.76543); Console.WriteLine("F3 format: {0:F3}", 99999.9999); Console.WriteLine("N format: {0:N}", 99999); Console.WriteLine("X format: {0:X}", 99999); Console.WriteLine("x format: {0:x}", 99999); Console.ReadLine(); } } } namespace ConsoleApplication5 { class StringFormat { static void Main(string[] args) { string FormatStr; FormatStr = String.Format("Don't you wish you had {0:c} in your account?", 99989.987); Console.WriteLine(FormatStr); Console.ReadLine();
  • 4. } } } namespace ConsoleApplication7 { class Program { static void Main(string[] args) { string[] books = { "complex algoritm", "do you remember", "C and C++" }; foreach (string s in books) Console.WriteLine(s); int[] myints = { 10, 20, 30, 40 }; foreach (int i in myints) Console.WriteLine(i); Console.ReadLine(); } } } namespace ConsoleApplication8 { class Program {
  • 5. static void Main(string[] args) { string userIsDone = ""; do { Console.Write("Are you done? [yes] [no]: "); userIsDone = Console.ReadLine(); Console.WriteLine("In while loop"); } while (userIsDone.ToLower() != "yes"); } } } namespace ConsoleApplication9 { class Program { static void Main(string[] args) { Console.WriteLine("1 [C#], 2 [VB]"); Console.Write("please pick you language preference: "); string langChoice = Console.ReadLine(); int n = int.Parse(langChoice); switch (n) { case 1: Console.WriteLine("Good choice, C# is a fine language"); break; case 2: Console.WriteLine("Good choice, VB is a fine language"); break;
  • 6. default: Console.WriteLine("will .. good luck with that "); break; } Console.ReadLine(); } } namespace EnmiinJishee { class Enum1 { enum EmpType { Boss=1, Manager=2, Ahlagch=3, Ajilchin=4, } static void Main(string[] args) { Array obj = Enum.GetValues(typeof(EmpType)); Console.WriteLine("This enum has {0} members.", obj.Length); foreach (EmpType e in obj) { Console.Write("string Name: {0},", e.ToString()); Console.Write("int: ({0}),",Enum.Format(typeof(EmpType),e,"D")); Console.Write("hex: ({0})n,", Enum.Format(typeof(EmpType), e, "X")); Console.ReadLine(); }
  • 7. } } } namespace ObjectMethods { class Person { public Person(string fname, string lname, string s, byte a) { firstname = fname; lastname = lname; SSN = s; age = a; } public Person() { } public string firstname; public string lastname; public string SSN; public byte age; static void Main(string[] args) { Console.WriteLine("*******Working with Object***********n"); Person fred = new Person("Fred", "Clark", "111 - 11 - 1111", 20); Console.WriteLine("-> Fred.Tostring: {0}",fred.ToString()); Console.WriteLine("-> Fred.GetHashCode: {0}", fred.GetHashCode());
  • 8. Console.WriteLine("-> Fred's base class: {0}", fred.GetType()); Person p2 = fred; Object o = p2; if (o.Equals(fred) && p2.Equals(o)) Console.WriteLine("fred, p2,& o are referencing the same object."); Console.ReadLine(); } } } namespace ObjectMethods { class Person { public override string ToString() { StringBuilder sb = new StringBuilder(); sb.AppendFormat("FirstName={0}", this.firstname); sb.AppendFormat("LastName={0}", this.lastname); sb.AppendFormat("SSN={0}", this.SSN); sb.AppendFormat("Age={0}", this.age); return sb.ToString(); } public Person(string fname, string lname, string s, byte a) { firstname = fname;
  • 9. lastname = lname; SSN = s; age = a; } public string firstname; public string lastname; public string SSN; public byte age; static void Main(string[] args) { Console.WriteLine("*******Working with Object***********n"); Person fred = new Person("Fred ", "Clark ", "111 - 11 - 1111 ", 20); Console.WriteLine("-> Fred.Tostring: {0}", fred.ToString()); Console.WriteLine("-> Fred.GetHashCode: {0}", fred.GetHashCode()); Console.WriteLine("-> Fred's base class: {0}", fred.GetType()); Person p2 = fred; Object o = p2; if (o.Equals(fred) && p2.Equals(o)) Console.WriteLine("fred, p2,& o are referencing the same object."); Console.ReadLine(); } } } namespace ConsoleApplication19 { class Program
  • 10. { static void Main(string[] args) { string Sdate = "2010-11-10"; DateTime CurrentDate = DateTime.Now; Console.WriteLine(Convert.ToString(DateTime.Now)); Console.WriteLine(CurrentDate.ToString()); CurrentDate = Convert.ToDateTime(Sdate); Console.WriteLine(CurrentDate); } } } namespace ConsoleApplication28 { class Program { static void Main(string[] args) { //string sdate = "2010-02-21"; //CurrDate = Convert.ToDateTime(sdate); DateTime currdate = DateTime.Now; Console.WriteLine("Date D format:"+currdate.ToString("D")); Console.WriteLine("Date d format:" + currdate.ToString("d")); Console.WriteLine("Date F format:" + currdate.ToString("F")); Console.WriteLine("Date f format:" + currdate.ToString("f")); Console.WriteLine("Date G format:" + currdate.ToString("G")); Console.WriteLine("Date g format:" + currdate.ToString("g")); Console.WriteLine("Date T format:" + currdate.ToString("T"));
  • 11. Console.WriteLine("Date t format:" + currdate.ToString("t")); Console.WriteLine("Date U format:" + currdate.ToString("U")); Console.WriteLine("Date u format:" + currdate.ToString("u")); Console.WriteLine("Date s format:" + currdate.ToString("s")); Console.WriteLine("Date M format:" + currdate.ToString("M")); Console.WriteLine("Date m format:" + currdate.ToString("m")); Console.WriteLine("Date Y format:" + currdate.ToString("Y")); Console.WriteLine("Date y format:" + currdate.ToString("y")); Console.ReadLine(); } } } namespace ConsoleApplication20 { class Program { static void Main(string[] args) { Console.WriteLine("**********Fun with string**********"); string s = "Boy, this is taking a long time."; Console.WriteLine("--> s contains 'oy'?: {0}",s.Contains("oy")); Console.WriteLine("--> s contains 'Boy'?: {0}", s.Contains("Bey")); Console.WriteLine(s.Replace('.','!'));
  • 12. Console.WriteLine(s.Insert(0, "hey")); Console.ReadLine(); } } } namespace ConsoleApplication21 { class Program { static void Main(string[] args) { Console.WriteLine("Everyone loves ' Hello World' "); Console.WriteLine("Everyone loves " Hello World" "); Console.WriteLine("aC:progdocumentpicture "); Console.WriteLine("Everyone loves ' Hello World' "); } } }