blob_id large_stringlengths 40 40 | language large_stringclasses 1
value | repo_name large_stringlengths 5 119 | path large_stringlengths 4 271 | score float64 2.52 4.84 | int_score int64 3 5 | text stringlengths 26 4.09M |
|---|---|---|---|---|---|---|
d2fbd9bd846bd2745bd6c344c404ee98e6a70f1a | C# | lihini223/C-Sharp-Programming | /CRUD-APP/CRUD_APP/SignUp.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CRUD_APP
{
public partial class SignUp : Form
... |
5f9fc4e35e7077ea59df8241615488a7e1afce13 | C# | ProCodersPtyLtd/MasterDetailsDataEntry | /Platz.ObjectBuilder/Engine/FileProjectLoader.cs | 2.5625 | 3 | using Platz.ObjectBuilder;
using Platz.SqlForms;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.Json;
using System.Threading.Tasks;
namespace Platz.ObjectBuilder.Engine
{
public class FileProjectLoader : IProjectLoader
{
public List<string> GetFol... |
a0c6a0b10711f0883b6238413871dbb196de5bf0 | C# | Serpen/Serpen.Uni | /Automat/ContextFree/PDAConfig.cs | 2.59375 | 3 | namespace Serpen.Uni.Automat.ContextFree {
public class PDAConfig : IConfig {
public uint State { get; }
public string word { get; }
public char[] Stack { get; }
public PDAConfig Origin { get; }
public string OriginPath() {
var pcfg = this;
var sw = ne... |
23b195f4bf4393b4dd6ef14acbcea5f3e1e98d48 | C# | Darius-D/AllFunAndGamesMathEdition | /AllFunAndGamesMathEdition/ConsoleApp.cs | 3.71875 | 4 | using System;
using System.Runtime.InteropServices;
namespace AllFunAndGamesMathEdition
{
public static class ConsoleApp
{
public static void StartUp()
{
MainScreen();
}
private static void MainScreen()
{
Console.WriteLine("\nWelcome to All Fun a... |
0246e69f512ed10d174606ef7a37a4d3d16efa2c | C# | VitorNeilAvelino/ImpactaCSharpAcessoDados | /Roteiro/ImpactaCSharp2/CSharp2.Capitulo10.Wpf.Produtos/Converters/VisibilidadePedidoConverter.cs | 2.640625 | 3 | using System;
using System.Windows.Data;
namespace CSharp2.Capitulo10.Wpf.Produtos.Converters
{
public class VisibilidadePedidoConverter : IMultiValueConverter
{
public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
... |
a656cb86119ab3ade1ebf0f05b7a11c61c6850d2 | C# | deyantodorov/TelerikAcademy | /Object-Oriented-Programming/FinalExam2015/2. Army of Creatures_Description/Source/ArmyOfCreatures/Extended/Creatures/AncientBehemoth.cs | 3.015625 | 3 | namespace ArmyOfCreatures.Extended.Creatures
{
using ArmyOfCreatures.Logic.Creatures;
using ArmyOfCreatures.Logic.Specialties;
public class AncientBehemoth : Creature
{
private const int BaseDefense = 19;
private const int BaseAttack = 19;
private const int BaseHealthPoints = 3... |
fcca52adb6790ff8d3fd31291b96459702dd87ec | C# | jiaxy/CSharpCourse | /codes/ch03/PersonStudent/PersonStudent.cs | 3.53125 | 4 | using System;
class Person {
public string name; //ֶ
public int age;
public virtual void sayHello(){ //巽עvirtual
Console.WriteLine("Hello! My name is " + name );
}
public virtual void sayHello( Person another ){ //
Console.WriteLine("Hello," + another.name +
"! My name is " + name );
}
public bool isOld... |
e3d11e2dc5ec698251a905b8901380d5300723f0 | C# | bhrnjica/GPImplementation | /chapter4/population.cs | 2.953125 | 3 | using System;
using System.Linq;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace GPImplemenation
{
public class Population
{
//current population
internal List<Chromosome> Chromosomes { get; set; }
//offspring population
internal List<Chromosome> m_Off... |
aa7873a29b4e7a774c252b775da3646133b6377d | C# | PisalPrasad123/CrystalBox | /CITHEPLib/Converters/GreenRedConverter.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using System.Windows.Media;
namespace CITHEPLib.Converters
{
public class GreenRedConverter: IValueConverter
{
public object Convert(object value, Type targetTy... |
a38e86aca092250eb08440d4cad68cc99a0df1ce | C# | IntelliTect/EssentialCSharp | /src/Chapter15/Listing15.11.ProjectionWithSystem.Linq.Enumerable.Select.cs | 3.046875 | 3 | namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter15.Listing15_11;
using AddisonWesley.Michaelis.EssentialCSharp.Chapter15.Listing15;
#region INCLUDE
using System;
using System.Collections.Generic;
using System.Linq;
public class Program
{
public static void Main()
{
IEnumerable<Patent> patents... |
ed2e054816280f17e0ff70c8857114c89f801d0e | C# | unn-85m3/raytraysing | /Auxiliary Libraries/Auxiliary Raytracing Library/Primitive/Sphere.cs | 2.859375 | 3 | using System;
using Auxiliary.MathTools;
using Tao.OpenGl;
namespace Auxiliary.Raytracing
{
/// <summary> ''. </summary>
[Serializable]
public class Sphere : Primitive
{
#region Public Fields
/// <summary> . </summary>
public float Radius = 1.0f;
#endregion
... |
d062942d9187b6a212a62350b068d92f7da347df | C# | gerpo/Siterm | /Siterm.Substance/Models/SubstanceTreeViewItem.cs | 2.78125 | 3 | using System.Collections.Generic;
using System.IO;
using System.Linq;
using Siterm.Support.ControlModels;
using File = Siterm.Support.ControlModels.File;
namespace Siterm.Substance.Models
{
public class SubstanceTreeViewItem : GenericTreeViewItem<Domain.Models.Substance>
{
public SubstanceTreeViewItem... |
dfe52443512d3e0eae23d0cbb77cd153b12aee45 | C# | kiryl-lenchyk/SocialNetwork | /WebUi/Filters/AutorizeRolesFromConfigAttribute.cs | 2.71875 | 3 | using System;
using System.Linq;
using System.Web.Configuration;
using System.Web.Mvc;
namespace WebUi.Filters
{
/// <summary>
/// AuthorizeAttribute with role control, but roles names loaded from web.confir
/// </summary>
public class AutorizeRolesFromConfigAttribute : AuthorizeAttribute
{
... |
c08bd0b93b0fe203b1f785fe17140bec0a9cc7ce | C# | shendongnian/download4 | /first_version_download2/366103-31426503-95131584-2.cs | 2.890625 | 3 | public void populateProductList()
{
string cmdString = "SELECT * FROM PRODUCT";
StockDbConnection dbcon = new StockDbConnection();
SqlCeConnection Conn = new SqlCeConnection(dbcon.ReturnConnection("ConnString"));
SqlCeCommand c... |
5f19cea985aefd7c8a1306258ec8a4bdab24ddd1 | C# | medva1997/bmstu_sem5 | /Croc/Банников/Services/ITBridgeService/Program.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ServiceProcess;
using System.Configuration.Install;
using System.Reflection;
namespace ITBridgeService
{
/// <summary>
/// Для установки сервиса в операционной системе его надо запу... |
784b027f8a8d138192bc07103cbb400e6c48f738 | C# | ACalderwood93/Kafka | /KafkaTestConsume/JsonConsumer.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Confluent.Kafka;
using System.Threading;
namespace KafkaTestConsume {
class JsonConsumer<t3> : IAsyncConsumer<t3> {
public event Action<t3> OnMessageRecieved;
public event A... |
5a6464d0c4b1d4f3807a04c536d9f74b732ab535 | C# | skwasjer/SilentHunter | /src/SilentHunter.FileFormats/Dat/Chunks/BodyPartsChunk.cs | 3.109375 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using SilentHunter.FileFormats.Extensions;
namespace SilentHunter.FileFormats.Dat.Chunks
{
/// <summary>
///
/// </summary>
/// <remarks>
/// Probably poorly named.
/// </remarks>
public sealed class BodyPartsChunk ... |
5312d6726b9c44ab4be5edad55778ff17c142696 | C# | ihristova11/TelerikAcademyAlpha | /02. MODULE 2/[Course] DSA/JudgeProblems/TribonacciTriangle/Program.cs | 3.15625 | 3 | using System;
class Program
{
static void Main()
{
long firstNum = long.Parse(Console.ReadLine());
long secondNum = long.Parse(Console.ReadLine());
long thirdNum = long.Parse(Console.ReadLine());
long l = long.Parse(Console.ReadLine());
long prevF;
long prevS;
... |
beb40493acc7911fadc4670d797bb4089bc5071f | C# | KonstantinaLa/ArmadaV3 | /Armada.WebApp/Controllers/WebApi/EmperorController.cs | 2.546875 | 3 | using System.Collections.Generic;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Net;
using System.Web.Http;
using System.Web.Http.Description;
using ArmadaV3.Entities;
using ArmadaV3.RepositoryService;
namespace Armada.WebApp.Controllers.WebApi
{
public class EmperorController : ApiCont... |
13ac482f41dec7747ac228f7792f5b83a80725f8 | C# | lemanas/BVKKMN | /BVKMN/FinancialFunctions.cs | 2.625 | 3 | using Excel.FinancialFunctions;
namespace BVKMN
{
static class FinancialFunctions
{
public static double Pmt(double interestRate, int months, double sum)
{
return Financial.Pmt(interestRate / 12, months, sum * -1, 0, PaymentDue.BeginningOfPeriod);
}
public static d... |
0e4859a8294c6aef498ce53c3e0b0d7b8287317e | C# | zeinabkalanaki/DDD_Course-CreationalPatterns | /Pattern04.Prototype/Program.cs | 3.203125 | 3 | using System;
namespace Pattern04.Prototype
{
class Program
{
//زمانی که یک کلاس بزرگ داریم و نمونه سازی از آن سخت است
//یک بار از آن نمونه ساخته و دفعات بعد از همان یک نمونه ساخته شده کپی می کنیم
static void Main(string[] args)
{
//Method 1
//copy all ... |
b00021279d5c2d0c94f203d4a18c300c867f278e | C# | igor27g/StudentDiary | /StudentDiary/Program.cs | 3.6875 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StudentDiary
{
class Program
{
static void Main(string[] args)
{
Diary diary = new Diary();
diary.AddRating(5);
diary.AddRating(8.5f);
diary.AddRating(4.7f);
DiaryStat... |
5c8ecbd1e61dc6a360abded76f6f6116b7f1ed12 | C# | TunggNguyenn/ProgrammingCourseAPI | /ProgrammingCourse/ProgrammingCourse/Controllers/CategoriesController.cs | 2.515625 | 3 | using AutoMapper;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using ProgrammingCourse.Models;
using ProgrammingCourse.Models.ViewModels;
using ProgrammingCourse.Repositories;
using ProgrammingCourse.Services;
using System;
using System.Linq;
using System.Threading.Tasks;
namespace ProgrammingCour... |
74a52c7fae3d395f344b3cd40ea2ad9e6acde1d6 | C# | snmuppa/ninjato | /src/Ninjato.Services.Activity/Domain/Repositories/ICategoryRepository.cs | 2.6875 | 3 | using System.Collections.Generic;
using System.Threading.Tasks;
using Ninjato.Services.Activity.Domain.Models;
namespace Ninjato.Services.Activity.Domain.Repositories
{
/// <summary>
/// Category repository.
/// </summary>
public interface ICategoryRepository
{
/// <summary>
/// Fet... |
297e7e5525354874baab50bd28fed5f182575093 | C# | JJPrimm/AdventOfCode2019 | /AdventCode/Day8.cs | 3.5625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
namespace AdventCode
{
public static class Day8
{
public static void Problem1()
{
var input = Utilities.ReadStringArray(8)[0];
int layerCount = input.Length / 150;
int leastZeroes = 1000;
... |
55b71457a72b1d889579eb96571a92217212e270 | C# | unitycoder/UnityLauncherPro | /UnityLauncherPro/GetUnityUpdates.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Net;
using System.Threading.Tasks;
namespace UnityLauncherPro
{
public static class GetUnityUpdates
{
static bool isDownloadingUnityList = false;
static readonly string unityVersionsURL = @"http://symbolse... |
b3593946f774d8a6df2a7b2838743ca18240309c | C# | kaby76/Antlr4BuildTasks | /Antlr4BuildTasks/SharpCompress/Archives/IWritableArchiveExtensions.cs | 2.859375 | 3 | using System;
using System.IO;
using SharpCompress.Writers;
namespace SharpCompress.Archives
{
public static class IWritableArchiveExtensions
{
public static void AddEntry(this IWritableArchive writableArchive,
string entryPath, string filePath)
... |
1b8bf15788244f5b1165b4e4b8f86d3237023def | C# | MelihSevsay/RegexConsoleTester | /Contracts/RegexBase.cs | 3.21875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using RegexConsoleTester.Utils;
namespace Contracts
{
//How to decide when to use abstract class or interface.
//if you are creating something that provides common functionality ... |
f4cc48f7e717625ac1bffac9488b4eeb6bcc2d2e | C# | CyberBotX/sda-donation-tracker | /PrizeAssignContext.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SDA_DonationTracker
{
public class PrizeAssignContext : ConnectionContext
{
public int PrizeId
{
get;
private set;
}
public string Result
{
get;
private set;
}
public even... |
9349e888e2eeb5c82d83ac8a7e9818cc546f3514 | C# | lesha1980/ConvertInvoices | /ConverterToParamTXT/App.xaml.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using System.IO;
using System.IO.IsolatedStorage;
using System.Collections;
using System.Diagnostics;
namespace ConverterToParamTXT
{
/// <summary>
... |
4e14cee3cdea71227bf3a911e149738c6da29933 | C# | AlexandrSurkov/FlekoFramework | /FlekoFramework/UnitTests/Common/GuidReferenceTests.cs | 2.53125 | 3 | using System;
using System.ComponentModel;
using Flekosoft.Common;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Flekosoft.UnitTests.Common
{
class TestReference : GuidReference
{
public bool CheckReferenceResult { get; set; }
protected override bool CheckReference()
{
... |
c6f74290938f592481a2387f495860ace5b6d0e3 | C# | talecrafter/LudumDare32 | /HoldSpaceToFart/Assets/_Library/Framework/Actors/Target.cs | 2.515625 | 3 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using CraftingLegends.Core;
namespace CraftingLegends.Framework
{
public class Target
{
// ================================================================================
// types
// ----------------------... |
71336be8c7b39899b1e260154ecffaf36bc75873 | C# | reza-mesgaran/Console_Ex-Method | /Console_Ex-Method/Program.cs | 3.921875 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
/* Note (Ex-Method )
1. Should defines in static class
2. Should define as a static method
3. Can & Can't have a return value
4. Despite Ex-Method is Static but is accessible from instance of ... |
c1df4675d52985b8e1bc44a1a2046da5082aadc5 | C# | Trey0303/Artificial-Intelligence-for-Games | /Assets/Scenes/Djikstra/Scripts/DjikstraAlgorithm.cs | 2.90625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DjikstraAlgorithm : MonoBehaviour
{
//Tile Generation
public int gridWidth;//set grid width spawn
public int gridHeight;//set grid height spawn
public GameObject prefab;//set a gameobject to create
public... |
34ae4a4566a62300590f8b40758f9606003ad0b6 | C# | PedroNaretto/POO-grupo-5 | /Console/Bitmons1/Program.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Bitmons1
{
public class Program
{
static void Main(string[] args)
{
Random rnd = new Random();
int filas;
int columnas;
... |
36f148f16e8c5aec7f0e77e0439f0cc302a4c89e | C# | jiowchern/GameProject1 | /GameProject1-Backend.git/Regulus.Project.GameProject1.Data/Resource.cs | 2.703125 | 3 | using System;
using System.Linq;
namespace Regulus.Project.GameProject1.Data
{
public class Resource : Utility.Singleton<Resource>
{
public EntityData[] Entitys;
public SkillData[] SkillDatas;
public ItemPrototype[] Items;
public ItemFormula[] Formulas;
publi... |
a2ec569226ab7f6334594acea3b39710b7916924 | C# | denisgoriachev/eShop | /src/eShop.Domain/Entities/Purchasing/ProductPurchase.cs | 2.671875 | 3 | using eShop.Domain.ValueObjects;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace eShop.Domain.Entities.Purchasing
{
using static eShop.Domain.Events.ProductPurchaseEvents;
public class ProductPurchase : Aggregate
{
publ... |
52b5e087b5b35b11c416bcba43b97f04386db641 | C# | 103pgu2020/languages | /Вильчинский Дмитрий/20.cs | 3.453125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication20
{
class Program
{
static void Main()
{
m: Console.Write("Введите k: ");
double k = Double.Parse(Console.ReadLine());
if (k < 0)
... |
3b7d827643a44b59dcdf45a2b8c007bb65326466 | C# | sjoerdteunisse/Cinema | /Cinema/Logic/StudentDiscountCalculator.cs | 2.921875 | 3 | using System;
using Cinema.Domain;
using Microsoft.VisualBasic;
namespace Cinema.Logic
{
public class StudentDiscountCalculator : IOrderPriceCalculator
{
public double CalculatePrice(Order order)
{
double price = 0;
var ticketCount = order.MovieTicket.Count;
... |
da9f476bd740e776a183bbfdcad3da8e33b90572 | C# | YTRodi/Programacion-2-y-Lab-2 | /Ejercicios de la guía/Métodos de extensión/Solucion_MetodosExtension_ejercicio_72/Entidades/Extension.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Entidades
{
public static class Extension
{
public static string CantidadDigitos(this long digitosNumero)
{
string strCantDig = $"Número de: {digitosNumero.... |
b31e36233264e0e922c13593a938149f4a454b01 | C# | watermelonpizza/RgbTemperatureAlerter | /CorsairTemperatureAlert/Program.cs | 2.6875 | 3 | using RGB.NET.Core;
using RGB.NET.Brushes;
using RGB.NET.Devices.Corsair;
using RGB.NET.Devices.Logitech;
using System;
using System.Threading.Tasks;
using RGB.NET.Groups;
using System.Linq;
using System.IO.Pipes;
using System.IO;
using System.Reflection;
using Polly;
namespace CorsairTemperatureAlert
{
class Pr... |
55c0fed16e7c52661a49a4d93ce721c4bdf5c3f0 | C# | Shreya12345608/BookStoreApplication | /BookStoreApplication/BookStoreRepository/BookStoreRepository/BookDetailsRL.cs | 2.84375 | 3 | using BookStoreModel.BooksModel;
using BookStoreRepository.IBookStoreRepository;
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Text;
namespace BookStoreRepository.BookStoreRepository
{
public class BookDetails... |
394245d2feff25f6bd99c9171e4a7b19e8f1beff | C# | strykstaguy/pug_tools | /GomLib/Models/CodexCatByFaction.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace GomLib.Models
{
public class CodexCatByFaction: PseudoGameObject, IEquatable<CodexCatByFaction>
{
public string FactionName { get; set; }
public ... |
00ebe1df90027a34d809ee1e327d88ae4d16b612 | C# | tmatuszewski97/university-projects | /ai-programming/GraOczkoGraf/GraOczkoGraf/Wezel.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GraOczkoGraf
{
public class Wezel
{
static int _licznik = 0;
public int wartosc;
public string kto;
public int id;
public int wynik;
pu... |
1143151aa01891866196ce9637d627f2a5d31094 | C# | Oriant/TermPaper | /BLL/Services/ManagerService.cs | 2.609375 | 3 | using AutoMapper;
using BLL.DTO;
using BLL.Infrastructure;
using BLL.Interfaces;
using DAL.Entities;
using DAL.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL.Services
{
public class ManagerService : IManagerService
... |
91af5cb49ddd3d6786c54d12a0b63bce50bf6470 | C# | Spurch/ASP-.NET-WebForms | /WebFormsSampleApp/Default.aspx.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebFormsSampleApp
{
public partial class _Default : Page
{
protected void Page_Load(object sender, EventArgs e)
{
operationSubTitleLa... |
2819027a937b59c86c433883ca0ce812a33ab611 | C# | CYJB/Cyjb | /TestCyjb/Collections/ObjectModel/UnitTestReadOnlyListBase`1.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using Cyjb.Collections.ObjectModel;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace TestCyjb.Collections.ObjectModel
{
/// <summary>
/// <see cref="ReadOnlyListBase{T}"/> ĵԪԡ
/// </summary>
[TestClass]
public class UnitTe... |
fda35187071fff5c285698849cc00973e5f4f0ec | C# | siminarosioru/SQLServer_DataGridView_CSharp | /SQLServer_DataGridView_CSharp/Form1.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Configuration;
using System.Data.SqlClient;
using System.Net.Configuration;
namespace SQLSe... |
1560ac8b3f190665e8ad03f54d1f67e989609cc3 | C# | zhaoguohao/UnityEditorScripts | /Assets/Tut-5-MethodChooser/MethodChooserExample.cs | 2.71875 | 3 | using UnityEngine;
using System.Collections;
using System.Reflection;
public class MethodChooserExample : MethodChooserExampleBase {
public string strParameter;
public int intParameter;
void Start () {
callAPublicMethod();
}
public void someMethod()
{
Debug.Log("someMethod called");
}
public void someO... |
b95b1c10a6016999d1dc677d3b751a705ce85b1b | C# | maxymnaumchyk/BSD | /Program.cs | 3.265625 | 3 | using System;
using System.IO;
using System.Threading;
namespace ConsoleApplication205
{
internal class Program
{
private static void Main(string[] args)
{
Console.Write("Robot's X: ");
var x = int.Parse(Console.ReadLine());
Console.Write("Robot... |
34c97f3ebeaa0fee8ec721a6e2613fc4135e0740 | C# | Megaoski/MY-PONG | /MY_PONG/Assets/Scripts/LeftLogic.cs | 2.59375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LeftLogic : MonoBehaviour
{
Ball ball;
public bool Left1;
public bool Left2;
// Start is called before the first frame update
void Start()
{
ball = GameObject.FindGameObjectWithTag("Ball").GetCo... |
8c94b158e662091696dee788c399f37789f5bb20 | C# | ediux/tokiku2 | /Tokiku.ViewModels/Finance/PaymentTypesManageViewModel.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Tokiku.Controllers;
using Tokiku.Entity;
namespace Tokiku.ViewModels
{
public class PaymentTypesManag... |
fe961624f759d607d5724d7c9e0e9905bb9957e5 | C# | lincenses/iStudio | /Source/Studio/Configuration/ConfigurationItem.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Studio.Configuration
{
public class ConfigurationItem
{
#region 公有属性
#region 获取配置项的键
public string Key { get; private set; } = "";
#endregion
#region 获取或设置配置项的值
pub... |
9cf8224365632b563745b67ef86275b3d3900051 | C# | raulmartinezg/Link-Oracle | /Service/Repository.cs | 2.515625 | 3 | using LinkOracle.Data;
using LinkOracle.Entities;
using LinkOracle.Interfaz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace LinkOracle.Service
{
public class Repository : IRepository
{
private readonly SID_AutoCargaV3Context _context;
... |
55881d507b85fd4d1d4263a5a6744ae055fa5111 | C# | rstuannm/MVCProject | /MVCBusiness1/Repository/KhachHangRepository.cs | 2.546875 | 3 | using MVCBusiness1.DataContext;
using MVCBusiness1.IRepository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MVCBusiness1.Repository
{
public class KhachHangRepository : IKhachHangRepository
{
MVCDataContext _db = new MVC... |
82445b612d541602ecc3d26cd170c220afdd2820 | C# | hoangbd99/Project | /C#/DormitorySystem/Group2_Project/DAL/StudentDAO.cs | 2.890625 | 3 | using Group2_Project.DTL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
namespace Group2_Project.DAL
{
class StudentDAO
{
public static DataTable GetDataTable()
{
string cmd = "select * from Stu... |
4ffed3ba917e9fe2b902ea5d3c9f7873ffc454b1 | C# | yokyiii/RDIFramework.Test | /Test/ExportExcelTest.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using RDIFramework.Utilities;
namespace RDIFramework.Test
{
/// <summary>
/// RDIFramework.NET公共类型中的导出到Excel类的测试
/// </summary>
public parti... |
7a2eafd80e661ce9f12badc2cc9a48cf93f297f0 | C# | Nookiie/ComputerStore | /ComputerStore.Services/ProductItemService.cs | 2.765625 | 3 | using ComputerStore.Data.Data;
using ComputerStore.Data.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ComputerStore.Services
{
public class ProductItemService : GenericService<ProductItem>
{
public ProductItemServi... |
64ca9aead482ff3afa6b1e69501b97d9a89fcd08 | C# | yilmazuur/SmsProject | /SmsProject.App.Operation.UnitTest/CountryOperationsTest.cs | 2.734375 | 3 | using Moq;
using NUnit.Framework;
using SmsProject.App.Data.DAL.Interface;
using SmsProject.App.Model.Model.BusinessModel;
using SmsProject.App.Operation.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SmsProject.App.Operation.Un... |
396d94c7d64ab8bccd683247f99871e327bfe280 | C# | nedjoooo/High-Qulaity-Code | /22.PhonebookSystem/PhonebookSystem/PhonebookEntry.cs | 3.578125 | 4 | namespace PhonebookSystem
{
using System;
using System.Collections.Generic;
public class PhonebookEntry : IComparable<PhonebookEntry>
{
private string name;
public PhonebookEntry(string name)
{
this.Name = name;
this.PhoneNumbers = new Sorte... |
a207ea0bd5fb2bfbd4e3b4925486360f23d4a37f | C# | MyLegendLife/Bak.ThirdPlatforms | /src/Bak.ThirdPlatforms.Common/Helper/SqlHelper.cs | 2.75 | 3 | using Bak.ThirdPlatforms.Domain.Settings;
using Microsoft.Data.SqlClient;
using System;
using System.Data;
namespace Bak.ThirdPlatforms.Common.Helper
{
public class SqlHelper
{
public SqlHelper()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
/// <summary>
... |
8db4b35bf62475984afe80b9af80af8f26d37960 | C# | TanjaDobrovoljski/HCI | /BookStore/Model/Language.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BookStore.Model
{
class Language //da li da postavim mogucnost izbora vise jezika tj dodavanja???
{
private string language = "serbian";
private int id = 2;
pu... |
38ff206179fc5bdf9c57c0e2c6c3e41b11cb3130 | C# | nikolaZ/TelerikAcademy | /C#/MultidimensionalArrays/1MatrixB/MatrixB.cs | 3.8125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _1MatrixB
{
class MatrixB
{
static void Main()
{
int n =5;
int[,] matrix = new int[n, n];
int counter = 1;
for (int cols... |
56710841d85cd44a5b0df2de5b9d9ef7e531c510 | C# | JoeHakai/CybellesCykler | /DataAccess/CommonDB.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using System.Data;
namespace DataAccess
{
public class CommonDB
{
private readonly string connectionString = @"Data Source=(localdb)\MSSQLLocalDB;Initial Cat... |
79398cbaaec6442edbdfd8c3a3ddcb0ae32c4c55 | C# | NikTJ777/CSNuoHarness | /TreeLoader/DataRepository.cs | 2.71875 | 3 | using System;
using System.Data;
using System.Data.Common;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NuoTest
{
class DataRepository : AbstractRepository<Data>
{
Logger dataLog = Logger.getLogger("DataRepository");
public Da... |
5189292b0519bda8de34b251e37e73c108a6cf17 | C# | ogolikhin/blueprint | /svc/FileStore/Helpers/MultipartPartParser.cs | 2.90625 | 3 | using ServiceLibrary.Repositories.ConfigControl;
using System;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
namespace FileStore.Helpers
{
// NOTE: THIS CLASS WAS COPIED FROM http://www.codecutout.com/multipart-part-parser
/// <summary>
/// Parses a multipart/form-data stream w... |
08e2f21dafbf26dd1877465ac416fb727226633b | C# | thaynaramara28/DotnetFramework | /DotnetFrameworkMedia/Program.cs | 3.171875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DotnetFrameworkMedia
{
class Program
{
static void Main(string[] args)
{
for (int i = 1; i<=4; i++)
{
Console.WriteLine("Digite ... |
c6a0acb96b579f24c6b8c87290cfb40d7d0e1ba2 | C# | cdart1/Problem_solving_algorithm_practice | /LeetCode_problems/LeetCode_Problems _C-Sharp/GreatestNumOfCandies/GreatestNumOfCandiesProblem.cs | 4.125 | 4 | using System;
using System.Collections.Generic;
using System.Text;
namespace GreatestNumOfCandies
{
/* Steps:
* 1. Find the greatest number in the array 'candies'.
* 2. If we add three more candies to each kid's current number of candies,
* would it be 5 or greater --> T or F.
*/
class Gr... |
2f422b89de380ceeb34919d1ae9d086f00619d03 | C# | arnelambrosio/practical-Xunit | /PracticalXUnitTestProject.Test/UnitTest1.cs | 2.984375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using Xunit;
namespace ProductsApp.Tests {
public class ProductsAppShould {
// Add your test here
[Fact]
public void Return_argument_null_exception_when_product_is_null()
{
... |
82108335596f4f9c2c7d285b30c1d1db36e0789e | C# | NateGh/PeopleManager | /PeopleManager/PeopleManager.Data/Repositories/RepositoryBase.cs | 3.015625 | 3 | using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
namespace PeopleManager.Data.Repositories
{
public abstract class RepositoryBase<T> : IRepositoryBase<T> where T : class
{
... |
3599e4669f275d96e1856265641e2ec55e8526dc | C# | shendongnian/download4 | /code9/1627126-45837325-154587398-6.cs | 3.390625 | 3 | public async Task MyAsyncMethod()
{
// Do your stuff that takes a long time
}
public async Task CallMyAsyncMethod()
{
// We can await Tasks, regardless of where they come from.
await MyAsyncMethod();
}
|
ba589de69a39c7943ad4dc54c8c8d16110014073 | C# | destinygit/Web_App_.Net_Bootstraap_library | /adminlogin.aspx.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Windows.Forms;
namespace e_Library_mgmt
{
public partial class WebForm1 : System.Web.... |
1ec5fef579cf87fc58c2fa169739169033478522 | C# | KoseiYoshida/EasySlackEmojiCreator | /SlackEmojiCreator/TextImage.cs | 3.078125 | 3 | using SlackEmojiCreator.Utility;
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Media.Imaging;
namespace SlackEmojiCreator
{
/// <summary>
/// Text to be able to capture as image.
/// </summary>
public sealed class TextImage
{
... |
7fe88e9ec6a8eba1cc0f9ba978a597f298033f9d | C# | cazacov/AdventOfCode2020 | /Day_18_2/Code/Calculator.cs | 3.5 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
namespace Day_18_2
{
public class Calculator
{
private readonly List<string> tokens;
public Calculator(string str)
{
var tok = new List<string>();
var pos = 0;
do
{
... |
bd046c3f2bea5641b02d3615f0445d6a8e9fc56b | C# | fornetjob/InfinitySpace | /InfinitySpace/Assets/Game/Core/MappingAttribute.cs | 3.25 | 3 | namespace Assets.Game.Core
{
/// <summary>
/// Атрибут для кешируемых компонентов
/// </summary>
public class MappingAttribute:System.Attribute
{
#region Ctor
/// <summary>
/// Кешировать дочерний компонент по его названию
/// </summary>
public MappingAttrib... |
cba6f6b32d1479ebe84b0e730665cc07bab6e753 | C# | lvi1901/device_shop | /DeviceShop.Core/Repos/DeviceRepository.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutoMapper;
using DeviceShop.Core.Entities;
using DeviceShop.Core.Infrastructure;
namespace DeviceShop.Core.Repos
{
public class DeviceRepository : IDeviceRepository
{
private readonly AppDbContext appDbContext... |
47ade9692674b91ae057022312e3f624e42dcc48 | C# | pirahawk/bog-api | /Bog.Api.Web/Formatters/EntryContentFormatter.cs | 2.578125 | 3 | using Bog.Api.Domain.Models.Http;
using Bog.Api.Domain.Values;
using Microsoft.AspNetCore.Mvc.Formatters;
using Microsoft.Net.Http.Headers;
using System;
using System.Text;
using System.Threading.Tasks;
namespace Bog.Api.Web.Formatters
{
public class EntryContentFormatter : TextInputFormatter
{
public... |
05c3ec0af8e3e8bbe320c03005cbcf6dd62ea1db | C# | shendongnian/download4 | /first_version_download2/97815-6563572-14313330-4.cs | 2.921875 | 3 | string val;
if(dictionary.TryGetValue("mykey", out val))
{
//The key was found. The value is in val.
}
else
{
//The key was not present.
}
|
b97a045c25a9b4c4a0924bde921f1409184c0440 | C# | arslanaybars/ayb.miniprofiler.sample | /src/Data/Student.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
namespace Data
{
public class Student
{
public Student()
{
Name = Guid.NewGuid().ToString().Replace("-", string.Empty).Substring(0, 8);
Address = new StudentAddress();
}
public int Id { get; set; }... |
45de1c5942514c2ad8fa7dfd609f76b0b3ac793d | C# | Badmodo/Frameworks | /Assets/Framework/Scripts/InsertionSort/BaseSorter.cs | 2.90625 | 3 | using Sorting.Visualization;
using System.Collections;
using UnityEngine;
namespace StatsFramework
{
// Sort algorithm base class
public abstract class BaseSorter : MonoBehaviour
{
protected Visualizer visualizer;
protected Node[] nodes;
void Start()
{
visualize... |
da5c513f370465fd5ada92b79dbfc3f0b420bec9 | C# | kitofr/Cone | /Source/Expectations/BooleanExpect.cs | 2.765625 | 3 | using System;
using System.Linq.Expressions;
using System.Reflection;
using Cone.Core;
namespace Cone.Expectations
{
public interface IExpectValue
{
object Value { get; }
string ToString(IFormatter<object> formatter);
}
public class ExpectValue : IExpectValue
{
... |
79136a358e3f8399a1ca5f3c6fb73ba385c5095a | C# | piotr-wyszkowski-chr/ChrWawCodingDojo | /Coding Dojo 17/Next smaller number/KataTests.cs | 2.984375 | 3 | using FluentAssertions;
using Xunit;
namespace Next_smaller_number
{
public class KataTests
{
[Theory]
[InlineData(9, -1)]
[InlineData(111, -1)]
[InlineData(135, -1)]
[InlineData(1027, -1)]
[InlineData(1234560, 1234506)]
[InlineData(123456, -1)]
... |
2f34afba2caa95d5e11f3590eba146b3dbab19d6 | C# | s19191/APBD | /cw11/cw11/Configurations/PatientEfConfiguration.cs | 2.671875 | 3 | using cw11.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace cw11.Configurations
{
public class PatientEfConfiguration : IEntityTypeConfiguration<Patient>
... |
d80de7413ce3c8ab272725e5ea70f254ce06241c | C# | Z3nk/Jungletribes-Monogame | /Jungletribes-Common/Action/GameAction.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
namespace Jungletribes_Common
{
public class GameAction
{
public int angle;
public Vector2 speed;
public TimeSpan timer;
public bool isRotate;
public bool... |
619c1fd998681245a516fc115632f2dd0469911b | C# | Nasko3/ProgrammingBasics | /Exam - 20 November 2016 - Evening/01. House Price/HousePrice.cs | 3.4375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _01.House_Price
{
class HousePrice
{
static void Main(string[] args)
{
double smallRoomArea = double.Parse(Console.ReadLine());
double kitchenAr... |
9a00c0834e443e4d67cefdfe0ee23f8bda75b52e | C# | Bilal334409/Payroll | /PayRoll/Calculate.cs | 3.140625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PayRoll
{
class Calculate
{
public static void Salary(int BasicSalary, ref int ConvenceAllowance, ref int HouseRentAllowance, ref int MedicalAllowance)
{
... |
b3ba7daedba34b2c283e55caded1bbf23556c9ea | C# | CaveSystems/cave-io | /Cave.IO/MarshalStruct.cs | 3.34375 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
namespace Cave.IO
{
/// <summary>Provides tools for manual struct marshalling.</summary>
public static class MarshalStruct
{
#region Public Methods
/// <summary>Marshal... |
c1f92e7f0cef749094ec67eafd2456db6b85e142 | C# | yiclwh/ProblemSolving | /ProblemSolving/DAA/FindMin.cs | 3.9375 | 4 | /*
• A strict concave-up array is an array in which the numbers first strictly decrease,then the numbers strictly increases.
For example, [5,3,1,6,9,12] is a strict concave-up array. Note that, the decreasing part and/or the increasing part could be empty.
So [5,3,1] and [1,6,9,12] are both strict concave-up arra... |
dafb337f2fbb8fa61eff34e3ef785897d6439e70 | C# | twistedtwig/CustomConfigurations | /CustomConfigurations/ObjectCreationAndPopulationFactory.cs | 3.25 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
namespace CustomConfigurations.ObjectCreation
{
/// <summary>
/// Wrapper class to do some reflection creation and property initialization.
/// </summary>
public class ObjectCreatio... |
bfcfe9bae95b81e351cb668268e2ae8d9c8301d7 | C# | wetstreet/Theircraft | /client/Assets/Plugins/Behavior Designer/Runtime/Tasks/Unity/Vector2/Distance.cs | 2.515625 | 3 | using UnityEngine;
namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityVector2
{
[TaskCategory("Unity/Vector2")]
[TaskDescription("Returns the distance between two Vector2s.")]
public class Distance : Action
{
[Tooltip("The first Vector2")]
public SharedVector2 firstVector2;
[To... |
a860463c1735adf9996026b335f7f73971ea952e | C# | vives-introduction-to-programming-2020/StringObjectDemo | /StringObjectDemo/Program.cs | 3.8125 | 4 | using System;
namespace StringObjectDemo
{
class Program
{
static void Main(string[] args)
{
string hello = "Hello";
string hallo = new string("Hello");
if (hello == hallo) // INHOUDELIJKE VERGELIJKING
{
Console.WriteLine("Bo... |
f51d92236a1095110196d7e6b7d3ee517870ccf6 | C# | tjdamiwangyong20191115/blockchaindemo | /tjdamiblockchainclientdemo/JsonHepler.cs | 2.875 | 3 | using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace tjdamiblockchainclientdemo
{
public class JsonHepler
{
static public string getvaluefromjson(string p_json, str... |
65e8a29cac6320cc565c83be01f5d1167ae60859 | C# | edprado6/teste_admissao_soitic | /TesteAdmissao/Controllers/AutorController.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Contexto;
using Dominio;
namespace TesteAdmissao.Controllers
{
public class AutorController : Controller
{
/*
* A classe que representa o DB é instanciada.
*/
priv... |
76fa35fd9217e4848da12ccd503011765c43c34c | C# | jrialland/parsing | /JSourceObjectizerV1_07_CSharp/src/com/habelitz/jsobjectizer/jsom/api/statement/IfStatement.cs | 2.671875 | 3 | /*
* BSD license
*
* Copyright (c) 2007-2011 by HABELITZ Software Developments
*
* All rights reserved.
*
* http://www.habelitz.com
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* ... |
adc72f514367446a6bea33a316fa5f6b79c25932 | C# | pkradioman/MigSharp | /MigSharp/SupportedPlatforms.cs | 2.9375 | 3 | using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
namespace MigSharp
{
/// <summary>
/// Represents a collection of database versions that should be supported for all migrations. Validation of migrations is performed
/// against providers contained within t... |
deb7310882e33400fa4c3500b30a98ae5efee7e0 | C# | ealton/LDFW | /Assets/BaseInputDetector.cs | 2.5625 | 3 | using UnityEngine;
using UnityEngine.EventSystems;
using System;
using System.Collections;
/// <summary>
/// Base class for all input detectors
/// </summary>
public class BaseInputDetector : MonoBehaviour, IPointerClickHandler, IDragHandler, IPointerDownHandler, IPointerUpHandler, IPointerEnterHandler, IPointerExit... |
cda952bf88e42c54ba9faa1938e59405cea59fa5 | C# | lxq/waitan5hao | /elevator/elevator/Program.cs | 3.46875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace Example
{
using System.Net.Json;
class Program
{
const string jsonText =
"{"+
" \"FirstValue\": 1.1,"+
" \"SecondValue\": \"some text\"," +
" \"TrueValue\": tr... |
2395b88cddbc32aa2d1408b2bb5fd700d9af6189 | C# | c-eng/holbertonschool-csharp | /0x07-csharp-tdd/4-unique/Text.Tests/Text.Tests.cs | 2.890625 | 3 | using NUnit.Framework;
namespace Tests
{
public class Tests
{
[SetUp]
public void Setup()
{
}
[Test]
public void UniqueChar_Empty()
{
string s = "";
int result = Text.Str.UniqueChar(s);
Assert.That(result, Is.EqualTo(-... |
3b1acba5f93ac77e4a88b63c6cfa4f03e77c8ce6 | C# | viniciusmzo/URI | /1164/1164/Program.cs | 3.453125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _1164
{
class Program
{
static void Main(string[] args)
{
int n, x, soma = 0;
x = int.Parse(Console.ReadLine());
for (int j = 0; j... |
8f9c0c679e34fd1820e3520aab2242059c58e58e | C# | JulienAndonov/C-Advanced | /Session_3_Matrix_Jagged_Array_Ex/P08_Bombs/Program.cs | 3.4375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace P08_Bombs
{
class Program
{
static void Main(string[] args)
{
int rowsCols = int.Parse(Console.ReadLine());
int[,] matrix = new int[rowsCols, rowsCols];
int aliveCells = 0;
... |