SlideShare una empresa de Scribd logo
1 de 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' ");
}
}
}

Más contenido relacionado

La actualidad más candente

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
 

La actualidad más candente (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
 

Similar a 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
 

Similar a 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
 

Más 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
 

Más 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
 

Último

Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)amitlee9823
 
𓀤Call On 6297143586 𓀤 Ultadanga Call Girls In All Kolkata 24/7 Provide Call W...
𓀤Call On 6297143586 𓀤 Ultadanga Call Girls In All Kolkata 24/7 Provide Call W...𓀤Call On 6297143586 𓀤 Ultadanga Call Girls In All Kolkata 24/7 Provide Call W...
𓀤Call On 6297143586 𓀤 Ultadanga Call Girls In All Kolkata 24/7 Provide Call W...rahim quresi
 
Thane West \ Escort Service in Mumbai - 450+ Call Girl Cash Payment 983332523...
Thane West \ Escort Service in Mumbai - 450+ Call Girl Cash Payment 983332523...Thane West \ Escort Service in Mumbai - 450+ Call Girl Cash Payment 983332523...
Thane West \ Escort Service in Mumbai - 450+ Call Girl Cash Payment 983332523...hotbabesbook
 
Jodhpur Park ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi ...
Jodhpur Park ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi ...Jodhpur Park ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi ...
Jodhpur Park ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi ...ritikasharma
 
VIP Model Call Girls Budhwar Peth ( Pune ) Call ON 8005736733 Starting From 5...
VIP Model Call Girls Budhwar Peth ( Pune ) Call ON 8005736733 Starting From 5...VIP Model Call Girls Budhwar Peth ( Pune ) Call ON 8005736733 Starting From 5...
VIP Model Call Girls Budhwar Peth ( Pune ) Call ON 8005736733 Starting From 5...SUHANI PANDEY
 
VIP Model Call Girls Vijayawada ( Pune ) Call ON 8005736733 Starting From 5K ...
VIP Model Call Girls Vijayawada ( Pune ) Call ON 8005736733 Starting From 5K ...VIP Model Call Girls Vijayawada ( Pune ) Call ON 8005736733 Starting From 5K ...
VIP Model Call Girls Vijayawada ( Pune ) Call ON 8005736733 Starting From 5K ...SUHANI PANDEY
 
Sonagachi ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
Sonagachi ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...Sonagachi ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
Sonagachi ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...rahim quresi
 
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
 
❤Personal Whatsapp Number Mukteshwar Call Girls 8617697112 💦✅.
❤Personal Whatsapp Number Mukteshwar Call Girls 8617697112 💦✅.❤Personal Whatsapp Number Mukteshwar Call Girls 8617697112 💦✅.
❤Personal Whatsapp Number Mukteshwar Call Girls 8617697112 💦✅.Nitya salvi
 
Bhimtal ❤CALL GIRL 8617697112 ❤CALL GIRLS IN Bhimtal ESCORT SERVICE❤CALL GIRL
Bhimtal ❤CALL GIRL 8617697112 ❤CALL GIRLS IN Bhimtal ESCORT SERVICE❤CALL GIRLBhimtal ❤CALL GIRL 8617697112 ❤CALL GIRLS IN Bhimtal ESCORT SERVICE❤CALL GIRL
Bhimtal ❤CALL GIRL 8617697112 ❤CALL GIRLS IN Bhimtal ESCORT SERVICE❤CALL GIRLNitya salvi
 
Kanpur call girls 📞 8617697112 At Low Cost Cash Payment Booking
Kanpur call girls 📞 8617697112 At Low Cost Cash Payment BookingKanpur call girls 📞 8617697112 At Low Cost Cash Payment Booking
Kanpur call girls 📞 8617697112 At Low Cost Cash Payment BookingNitya salvi
 
Dum Dum ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready...
Dum Dum ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready...Dum Dum ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready...
Dum Dum ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready...ritikasharma
 
Hotel And Home Service Available Kolkata Call Girls Diamond Harbour ✔ 6297143...
Hotel And Home Service Available Kolkata Call Girls Diamond Harbour ✔ 6297143...Hotel And Home Service Available Kolkata Call Girls Diamond Harbour ✔ 6297143...
Hotel And Home Service Available Kolkata Call Girls Diamond Harbour ✔ 6297143...ritikasharma
 
College Call Girls Pune 8617697112 Short 1500 Night 6000 Best call girls Service
College Call Girls Pune 8617697112 Short 1500 Night 6000 Best call girls ServiceCollege Call Girls Pune 8617697112 Short 1500 Night 6000 Best call girls Service
College Call Girls Pune 8617697112 Short 1500 Night 6000 Best call girls ServiceNitya salvi
 
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...ritikasharma
 
Almora call girls 📞 8617697112 At Low Cost Cash Payment Booking
Almora call girls 📞 8617697112 At Low Cost Cash Payment BookingAlmora call girls 📞 8617697112 At Low Cost Cash Payment Booking
Almora call girls 📞 8617697112 At Low Cost Cash Payment BookingNitya salvi
 
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
 
Hotel And Home Service Available Kolkata Call Girls Park Street ✔ 6297143586 ...
Hotel And Home Service Available Kolkata Call Girls Park Street ✔ 6297143586 ...Hotel And Home Service Available Kolkata Call Girls Park Street ✔ 6297143586 ...
Hotel And Home Service Available Kolkata Call Girls Park Street ✔ 6297143586 ...ritikasharma
 
Call Girls Bhandara Just Call 8617697112 Top Class Call Girl Service Available
Call Girls Bhandara Just Call 8617697112 Top Class Call Girl Service AvailableCall Girls Bhandara Just Call 8617697112 Top Class Call Girl Service Available
Call Girls Bhandara Just Call 8617697112 Top Class Call Girl Service AvailableNitya salvi
 
Model Call Girls In Ariyalur WhatsApp Booking 7427069034 call girl service 24...
Model Call Girls In Ariyalur WhatsApp Booking 7427069034 call girl service 24...Model Call Girls In Ariyalur WhatsApp Booking 7427069034 call girl service 24...
Model Call Girls In Ariyalur WhatsApp Booking 7427069034 call girl service 24... Shivani Pandey
 

Último (20)

Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bellandur ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
𓀤Call On 6297143586 𓀤 Ultadanga Call Girls In All Kolkata 24/7 Provide Call W...
𓀤Call On 6297143586 𓀤 Ultadanga Call Girls In All Kolkata 24/7 Provide Call W...𓀤Call On 6297143586 𓀤 Ultadanga Call Girls In All Kolkata 24/7 Provide Call W...
𓀤Call On 6297143586 𓀤 Ultadanga Call Girls In All Kolkata 24/7 Provide Call W...
 
Thane West \ Escort Service in Mumbai - 450+ Call Girl Cash Payment 983332523...
Thane West \ Escort Service in Mumbai - 450+ Call Girl Cash Payment 983332523...Thane West \ Escort Service in Mumbai - 450+ Call Girl Cash Payment 983332523...
Thane West \ Escort Service in Mumbai - 450+ Call Girl Cash Payment 983332523...
 
Jodhpur Park ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi ...
Jodhpur Park ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi ...Jodhpur Park ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi ...
Jodhpur Park ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi ...
 
VIP Model Call Girls Budhwar Peth ( Pune ) Call ON 8005736733 Starting From 5...
VIP Model Call Girls Budhwar Peth ( Pune ) Call ON 8005736733 Starting From 5...VIP Model Call Girls Budhwar Peth ( Pune ) Call ON 8005736733 Starting From 5...
VIP Model Call Girls Budhwar Peth ( Pune ) Call ON 8005736733 Starting From 5...
 
VIP Model Call Girls Vijayawada ( Pune ) Call ON 8005736733 Starting From 5K ...
VIP Model Call Girls Vijayawada ( Pune ) Call ON 8005736733 Starting From 5K ...VIP Model Call Girls Vijayawada ( Pune ) Call ON 8005736733 Starting From 5K ...
VIP Model Call Girls Vijayawada ( Pune ) Call ON 8005736733 Starting From 5K ...
 
Sonagachi ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
Sonagachi ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...Sonagachi ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
Sonagachi ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
 
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...
 
❤Personal Whatsapp Number Mukteshwar Call Girls 8617697112 💦✅.
❤Personal Whatsapp Number Mukteshwar Call Girls 8617697112 💦✅.❤Personal Whatsapp Number Mukteshwar Call Girls 8617697112 💦✅.
❤Personal Whatsapp Number Mukteshwar Call Girls 8617697112 💦✅.
 
Bhimtal ❤CALL GIRL 8617697112 ❤CALL GIRLS IN Bhimtal ESCORT SERVICE❤CALL GIRL
Bhimtal ❤CALL GIRL 8617697112 ❤CALL GIRLS IN Bhimtal ESCORT SERVICE❤CALL GIRLBhimtal ❤CALL GIRL 8617697112 ❤CALL GIRLS IN Bhimtal ESCORT SERVICE❤CALL GIRL
Bhimtal ❤CALL GIRL 8617697112 ❤CALL GIRLS IN Bhimtal ESCORT SERVICE❤CALL GIRL
 
Kanpur call girls 📞 8617697112 At Low Cost Cash Payment Booking
Kanpur call girls 📞 8617697112 At Low Cost Cash Payment BookingKanpur call girls 📞 8617697112 At Low Cost Cash Payment Booking
Kanpur call girls 📞 8617697112 At Low Cost Cash Payment Booking
 
Dum Dum ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready...
Dum Dum ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready...Dum Dum ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready...
Dum Dum ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready...
 
Hotel And Home Service Available Kolkata Call Girls Diamond Harbour ✔ 6297143...
Hotel And Home Service Available Kolkata Call Girls Diamond Harbour ✔ 6297143...Hotel And Home Service Available Kolkata Call Girls Diamond Harbour ✔ 6297143...
Hotel And Home Service Available Kolkata Call Girls Diamond Harbour ✔ 6297143...
 
College Call Girls Pune 8617697112 Short 1500 Night 6000 Best call girls Service
College Call Girls Pune 8617697112 Short 1500 Night 6000 Best call girls ServiceCollege Call Girls Pune 8617697112 Short 1500 Night 6000 Best call girls Service
College Call Girls Pune 8617697112 Short 1500 Night 6000 Best call girls Service
 
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
 
Almora call girls 📞 8617697112 At Low Cost Cash Payment Booking
Almora call girls 📞 8617697112 At Low Cost Cash Payment BookingAlmora call girls 📞 8617697112 At Low Cost Cash Payment Booking
Almora call girls 📞 8617697112 At Low Cost Cash Payment Booking
 
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...
 
Hotel And Home Service Available Kolkata Call Girls Park Street ✔ 6297143586 ...
Hotel And Home Service Available Kolkata Call Girls Park Street ✔ 6297143586 ...Hotel And Home Service Available Kolkata Call Girls Park Street ✔ 6297143586 ...
Hotel And Home Service Available Kolkata Call Girls Park Street ✔ 6297143586 ...
 
Call Girls Bhandara Just Call 8617697112 Top Class Call Girl Service Available
Call Girls Bhandara Just Call 8617697112 Top Class Call Girl Service AvailableCall Girls Bhandara Just Call 8617697112 Top Class Call Girl Service Available
Call Girls Bhandara Just Call 8617697112 Top Class Call Girl Service Available
 
Model Call Girls In Ariyalur WhatsApp Booking 7427069034 call girl service 24...
Model Call Girls In Ariyalur WhatsApp Booking 7427069034 call girl service 24...Model Call Girls In Ariyalur WhatsApp Booking 7427069034 call girl service 24...
Model Call Girls In Ariyalur WhatsApp Booking 7427069034 call girl service 24...
 

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' "); } } }