This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<connectionStrings> | |
<add name="SQL_Connection="Data Source=HOME-LAPTOP; | |
Initial Catalog=XXXXXXXXX;Integrated Security=True" | |
providerName="System.Data.SqlClient"/> | |
</connectionStrings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Library | |
{ | |
struct Book | |
{ | |
public int ID; | |
public string Title; | |
public string ISBN; | |
public DateTime ReleaseDate; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Casting | |
{ | |
enum ShirtSize | |
{ | |
Small = 1, | |
Medium = 2, | |
Large = 3, | |
ExtraLarge = 4, | |
ExtraExtraLarge = 5, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace EnumCasting | |
{ | |
enum Status | |
{ | |
Unknown = 0, | |
Active = 1, | |
Inactive = 2 | |
} | |
class Program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Boxing | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
object obj = DateTime.Now; | |
DateTime datetime = (DateTime)obj; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace DataParsing | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.Write("Please enter your name: "); | |
string name = Console.ReadLine(); | |
Console.Write("Please enter your age: "); | |
string stringAge = Console.ReadLine(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace EnumParsing | |
{ | |
enum Status | |
{ | |
Unknown = 0, | |
Active = 1, | |
Inactive = 2 | |
} | |
class Program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Sales | |
{ | |
struct Order | |
{ | |
public string CustomerName; | |
public string ProductName; | |
public double RetailPrice; | |
public int Quantity; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace AddTwoIntegers | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.Write("Please enter the first number: "); | |
int firstNumber = Int32.Parse(Console.ReadLine()); | |
Console.Write("Please enter the second number: "); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace VacationDays | |
{ | |
enum Days | |
{ | |
Sunday, | |
Monday, | |
Tuesday, | |
Wednesday, | |
Thursday, | |
Friday, |
OlderNewer