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
int armySize = 10; | |
int coins = 10; | |
string name = "Vladislav"; |
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
class Weapon2 | |
{ | |
private readonly int _bulletsReducePerShoot; | |
private int _bullets; | |
public Weapon2(int bulletsReducePerShoot) | |
{ | |
_bulletsReducePerShoot = bulletsReducePerShoot; | |
} |
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; | |
using System.Data; | |
using System.Reflection; | |
public interface IView | |
{ | |
void ShowBox(string message); | |
void ShowText(string message); | |
} |
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; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
namespace HomeWork | |
{ | |
public class Program | |
{ | |
static void Main() |
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; | |
using System.Linq; | |
namespace SecurityLibrary | |
{ | |
public class Program | |
{ | |
private static void Main() | |
{ | |
new Coin().StartAddCoins(); |
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
public class Weapon | |
{ | |
private int _damage; | |
private int _bullets; | |
public void Fire(Player player) | |
{ | |
if(_bullets <= 0) | |
return; | |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace HomeWork | |
{ | |
public class Program | |
{ | |
private static void Main() | |
{ |
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; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
namespace AuthenticationLab4 | |
{ | |
public class Program | |
{ | |
private static void Main() |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
//Есть 2 списка в солдатами. | |
//Всех бойцов из отряда 1, у которых фамилия начинается на букву Б, требуется перевести в отряд 2. | |
namespace HomeWork | |
{ | |
class Program |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
//Существует класс солдата. В нём есть поля: имя, вооружение, звание, срок службы(в месяцах). | |
//Написать запрос, при помощи которого получить набор данных состоящий из имени и звания. | |
//Вывести все полученные данные в консоль. | |
//(Не менее 5 записей) | |
namespace HomeWork |