This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Diagnostics; | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int[] arrayInts = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; | |
string[] arrayStrings = { "string1", "string2", "string3", "string4", "string5", "string6", "string7", "string8", "string9" }; | |
ShuffleArray(arrayInts); |
This file contains hidden or 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
internal class Program | |
{ | |
public static void Main() | |
{ | |
string enteredText; | |
string returnedValue; | |
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>(); | |
keyValuePairs.Add("aaa", "sss"); | |
keyValuePairs.Add("bbb", "rrr"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Diagnostics; | |
internal class Program | |
{ | |
public static void Main() | |
{ | |
int companyBalance = 0; | |
Queue<int> queue = new Queue<int>(); | |
queue.Enqueue(14); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Diagnostics; | |
internal class Program | |
{ | |
public static void Main() | |
{ | |
const string CommandSum = "sum"; | |
const string CommandExit = "exit"; | |
string enteredText; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.ComponentModel.Design; | |
namespace iJuniorRefactoring | |
{ | |
internal class Program | |
{ | |
public static void Main() | |
{ | |
const string CommandAdd = "1"; | |
const string CommandShowEmployees = "2"; |
This file contains hidden or 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
//Есть два массива строк. Надо их объединить в одну коллекцию, | |
//исключив повторения, не используя Linq. Пример: {"1", "2", "1"} + {"3", "2"} => {"1", "2", "3"} | |
internal class Program | |
{ | |
public static void Main() | |
{ | |
string[] arrayNumbers = { "1", "2", "3", "4", "5", "6", "8", "8", "2" }; | |
string[] arrayOddNumbers = { "1", "3", "5", "7", "9" }; |
This file contains hidden or 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
internal class Program | |
{ | |
public static void Main() | |
{ | |
Console.WriteLine("Enter Players' name"); | |
string name = Console.ReadLine(); | |
Console.WriteLine("Enter Players' age"); | |
int age = int.Parse(Console.ReadLine()); |
This file contains hidden or 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
internal class Program | |
{ | |
public static void Main() | |
{ | |
char hero = '@'; | |
int xPosition = 20; | |
int yPosition = 20; | |
Renderer renderer = new Renderer(); | |
Player player = new Player(xPosition, yPosition); |
This file contains hidden or 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
internal class Program | |
{ | |
public static void Main() | |
{ | |
Database data = new Database(); | |
data.ShowMenu(); | |
} | |
} | |
class Database |
This file contains hidden or 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
internal class Program | |
{ | |
public static void Main() | |
{ | |
Player player = new Player(); | |
player.ShowMenu(); | |
} | |
} |