Skip to content

Instantly share code, notes, and snippets.

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