SlideShare a Scribd company logo
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' ");
}
}
}

More Related Content

What's hot

Python postgre sql a wonderful wedding
Python postgre sql   a wonderful weddingPython postgre sql   a wonderful wedding
Python postgre sql a wonderful wedding
Stéphane Wirtel
 
An Intro To ES6
An Intro To ES6An Intro To ES6
An Intro To ES6
FITC
 
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 Version
Ian 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 @EuroPython2014
Henning Jacobs
 
ONLINE STUDENT MANAGEMENT SYSTEM
ONLINE STUDENT MANAGEMENT SYSTEMONLINE STUDENT MANAGEMENT SYSTEM
ONLINE STUDENT MANAGEMENT SYSTEM
Rohit malav
 
EcmaScript 6
EcmaScript 6 EcmaScript 6
EcmaScript 6
Manoj Kumar
 
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
Ian 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 Come
Cory Forsyth
 
Teaching Your Machine To Find Fraudsters
Teaching Your Machine To Find FraudstersTeaching Your Machine To Find Fraudsters
Teaching Your Machine To Find Fraudsters
Ian Barber
 
ZeroMQ: Messaging Made Simple
ZeroMQ: Messaging Made SimpleZeroMQ: Messaging Made Simple
ZeroMQ: Messaging Made Simple
Ian Barber
 
Why Learn Python?
Why Learn Python?Why Learn Python?
Why Learn Python?
Christine Cheung
 
ZeroMQ Is The Answer
ZeroMQ Is The AnswerZeroMQ Is The Answer
ZeroMQ Is The Answer
Ian 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 Perspective
Eleanor McHugh
 

What's hot (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 to Bodlogiin code

C# 7
C# 7C# 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
fcaindore
 
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
Kevin 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 6
Moaid Hathot
 
04. Console Input Output
04. Console Input Output 04. Console Input Output
04. Console Input Output
Intro C# Book
 
3 database-jdbc(1)
3 database-jdbc(1)3 database-jdbc(1)
3 database-jdbc(1)
hameedkhan2017
 
java experiments and programs
java experiments and programsjava experiments and programs
java experiments and programs
Karuppaiyaa123
 
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
 
Introduzione a C#
Introduzione a C#Introduzione a C#
Introduzione a C#
Lorenz Cuno Klopfenstein
 
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
Codemotion
 
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
Stas 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 databases
Paul 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 Schemas
MongoDB
 
.net progrmming part1
.net progrmming part1.net progrmming part1
.net progrmming part1
Dr.M.Karthika parthasarathy
 
Chapter04
Chapter04Chapter04
(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 locator
Alberto 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 locator
Alberto Paro
 

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

More from 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
 

More from 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
 

Recently uploaded

Scandal! Teasers June 2024 on etv Forum.co.za
Scandal! Teasers June 2024 on etv Forum.co.zaScandal! Teasers June 2024 on etv Forum.co.za
Scandal! Teasers June 2024 on etv Forum.co.za
Isaac More
 
Tom Selleck Net Worth: A Comprehensive Analysis
Tom Selleck Net Worth: A Comprehensive AnalysisTom Selleck Net Worth: A Comprehensive Analysis
Tom Selleck Net Worth: A Comprehensive Analysis
greendigital
 
The Evolution of Animation in Film - Mark Murphy Director
The Evolution of Animation in Film - Mark Murphy DirectorThe Evolution of Animation in Film - Mark Murphy Director
The Evolution of Animation in Film - Mark Murphy Director
Mark Murphy Director
 
Reimagining Classics - What Makes a Remake a Success
Reimagining Classics - What Makes a Remake a SuccessReimagining Classics - What Makes a Remake a Success
Reimagining Classics - What Makes a Remake a Success
Mark Murphy Director
 
Create a Seamless Viewing Experience with Your Own Custom OTT Player.pdf
Create a Seamless Viewing Experience with Your Own Custom OTT Player.pdfCreate a Seamless Viewing Experience with Your Own Custom OTT Player.pdf
Create a Seamless Viewing Experience with Your Own Custom OTT Player.pdf
Genny Knight
 
240529_Teleprotection Global Market Report 2024.pdf
240529_Teleprotection Global Market Report 2024.pdf240529_Teleprotection Global Market Report 2024.pdf
240529_Teleprotection Global Market Report 2024.pdf
Madhura TBRC
 
I Know Dino Trivia: Part 3. Test your dino knowledge
I Know Dino Trivia: Part 3. Test your dino knowledgeI Know Dino Trivia: Part 3. Test your dino knowledge
I Know Dino Trivia: Part 3. Test your dino knowledge
Sabrina Ricci
 
Maximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdf
Maximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdfMaximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdf
Maximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdf
Xtreame HDTV
 
Young Tom Selleck: A Journey Through His Early Years and Rise to Stardom
Young Tom Selleck: A Journey Through His Early Years and Rise to StardomYoung Tom Selleck: A Journey Through His Early Years and Rise to Stardom
Young Tom Selleck: A Journey Through His Early Years and Rise to Stardom
greendigital
 
Treasure Hunt Puzzles, Treasure Hunt Puzzles online
Treasure Hunt Puzzles, Treasure Hunt Puzzles onlineTreasure Hunt Puzzles, Treasure Hunt Puzzles online
Treasure Hunt Puzzles, Treasure Hunt Puzzles online
Hidden Treasure Hunts
 
Hollywood Actress - The 250 hottest gallery
Hollywood Actress - The 250 hottest galleryHollywood Actress - The 250 hottest gallery
Hollywood Actress - The 250 hottest gallery
Zsolt Nemeth
 
Christina's Baby Shower Game June 2024.pptx
Christina's Baby Shower Game June 2024.pptxChristina's Baby Shower Game June 2024.pptx
Christina's Baby Shower Game June 2024.pptx
madeline604788
 
From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...
From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...
From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...
Rodney Thomas Jr
 
Skeem Saam in June 2024 available on Forum
Skeem Saam in June 2024 available on ForumSkeem Saam in June 2024 available on Forum
Skeem Saam in June 2024 available on Forum
Isaac More
 
A TO Z INDIA Monthly Magazine - JUNE 2024
A TO Z INDIA Monthly Magazine - JUNE 2024A TO Z INDIA Monthly Magazine - JUNE 2024
A TO Z INDIA Monthly Magazine - JUNE 2024
Indira Srivatsa
 
This Is The First All Category Quiz That I Made
This Is The First All Category Quiz That I MadeThis Is The First All Category Quiz That I Made
This Is The First All Category Quiz That I Made
Aarush Ghate
 
Panchayat Season 3 - Official Trailer.pdf
Panchayat Season 3 - Official Trailer.pdfPanchayat Season 3 - Official Trailer.pdf
Panchayat Season 3 - Official Trailer.pdf
Suleman Rana
 
Meet Crazyjamjam - A TikTok Sensation | Blog Eternal
Meet Crazyjamjam - A TikTok Sensation | Blog EternalMeet Crazyjamjam - A TikTok Sensation | Blog Eternal
Meet Crazyjamjam - A TikTok Sensation | Blog Eternal
Blog Eternal
 
Meet Dinah Mattingly – Larry Bird’s Partner in Life and Love
Meet Dinah Mattingly – Larry Bird’s Partner in Life and LoveMeet Dinah Mattingly – Larry Bird’s Partner in Life and Love
Meet Dinah Mattingly – Larry Bird’s Partner in Life and Love
get joys
 

Recently uploaded (19)

Scandal! Teasers June 2024 on etv Forum.co.za
Scandal! Teasers June 2024 on etv Forum.co.zaScandal! Teasers June 2024 on etv Forum.co.za
Scandal! Teasers June 2024 on etv Forum.co.za
 
Tom Selleck Net Worth: A Comprehensive Analysis
Tom Selleck Net Worth: A Comprehensive AnalysisTom Selleck Net Worth: A Comprehensive Analysis
Tom Selleck Net Worth: A Comprehensive Analysis
 
The Evolution of Animation in Film - Mark Murphy Director
The Evolution of Animation in Film - Mark Murphy DirectorThe Evolution of Animation in Film - Mark Murphy Director
The Evolution of Animation in Film - Mark Murphy Director
 
Reimagining Classics - What Makes a Remake a Success
Reimagining Classics - What Makes a Remake a SuccessReimagining Classics - What Makes a Remake a Success
Reimagining Classics - What Makes a Remake a Success
 
Create a Seamless Viewing Experience with Your Own Custom OTT Player.pdf
Create a Seamless Viewing Experience with Your Own Custom OTT Player.pdfCreate a Seamless Viewing Experience with Your Own Custom OTT Player.pdf
Create a Seamless Viewing Experience with Your Own Custom OTT Player.pdf
 
240529_Teleprotection Global Market Report 2024.pdf
240529_Teleprotection Global Market Report 2024.pdf240529_Teleprotection Global Market Report 2024.pdf
240529_Teleprotection Global Market Report 2024.pdf
 
I Know Dino Trivia: Part 3. Test your dino knowledge
I Know Dino Trivia: Part 3. Test your dino knowledgeI Know Dino Trivia: Part 3. Test your dino knowledge
I Know Dino Trivia: Part 3. Test your dino knowledge
 
Maximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdf
Maximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdfMaximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdf
Maximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdf
 
Young Tom Selleck: A Journey Through His Early Years and Rise to Stardom
Young Tom Selleck: A Journey Through His Early Years and Rise to StardomYoung Tom Selleck: A Journey Through His Early Years and Rise to Stardom
Young Tom Selleck: A Journey Through His Early Years and Rise to Stardom
 
Treasure Hunt Puzzles, Treasure Hunt Puzzles online
Treasure Hunt Puzzles, Treasure Hunt Puzzles onlineTreasure Hunt Puzzles, Treasure Hunt Puzzles online
Treasure Hunt Puzzles, Treasure Hunt Puzzles online
 
Hollywood Actress - The 250 hottest gallery
Hollywood Actress - The 250 hottest galleryHollywood Actress - The 250 hottest gallery
Hollywood Actress - The 250 hottest gallery
 
Christina's Baby Shower Game June 2024.pptx
Christina's Baby Shower Game June 2024.pptxChristina's Baby Shower Game June 2024.pptx
Christina's Baby Shower Game June 2024.pptx
 
From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...
From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...
From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...
 
Skeem Saam in June 2024 available on Forum
Skeem Saam in June 2024 available on ForumSkeem Saam in June 2024 available on Forum
Skeem Saam in June 2024 available on Forum
 
A TO Z INDIA Monthly Magazine - JUNE 2024
A TO Z INDIA Monthly Magazine - JUNE 2024A TO Z INDIA Monthly Magazine - JUNE 2024
A TO Z INDIA Monthly Magazine - JUNE 2024
 
This Is The First All Category Quiz That I Made
This Is The First All Category Quiz That I MadeThis Is The First All Category Quiz That I Made
This Is The First All Category Quiz That I Made
 
Panchayat Season 3 - Official Trailer.pdf
Panchayat Season 3 - Official Trailer.pdfPanchayat Season 3 - Official Trailer.pdf
Panchayat Season 3 - Official Trailer.pdf
 
Meet Crazyjamjam - A TikTok Sensation | Blog Eternal
Meet Crazyjamjam - A TikTok Sensation | Blog EternalMeet Crazyjamjam - A TikTok Sensation | Blog Eternal
Meet Crazyjamjam - A TikTok Sensation | Blog Eternal
 
Meet Dinah Mattingly – Larry Bird’s Partner in Life and Love
Meet Dinah Mattingly – Larry Bird’s Partner in Life and LoveMeet Dinah Mattingly – Larry Bird’s Partner in Life and Love
Meet Dinah Mattingly – Larry Bird’s Partner in Life and Love
 

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