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 |
|---|---|---|---|---|---|---|
887ba32f088bcfcbefa4667d120643516a6b0beb | C# | CaseMonster/SyncTool | /SyncTool/Hash.cs | 3.015625 | 3 | using System;
using System.Text;
using System.IO;
using System.Security.Cryptography;
namespace SyncTool
{
class HashGenerator
{
public static string GetHash(string filePath)
{
using (var md5 = MD5.Create())
{
using (var stream = File.OpenRead(filePath))... |
262e9d52b0743a4a36b1a07975f53ac60f303ac5 | C# | ZohrehAnsarian/WebShop-Project | /BLL/BLHelper.cs | 2.984375 | 3 | using System;
namespace BLL
{
public static class BLHelper
{
public static int GenerateRandomNumber(int min, int max)
{
Random random = new Random();
return random.Next(min, max);
}
public static string GeneratePassword(int passwordLength)
{
... |
7e43245c829010afa80b84b55fcc0423c59d5239 | C# | LtLi0n/LionLibrary | /LionLibrary/Extensions/DbContextExtensions.cs | 2.65625 | 3 | using System;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore.ChangeTracking;
using System.Threading;
using System.Reflection;
using System.Linq;
using System.Linq.Expressions;
namespace LionLibrary
{
public static class DbCo... |
2b21dcac895fc62918994dae5c9e60bf59ebb734 | C# | Imam26/Calculator | /Calculator/Algorithm/ParserFunction.cs | 3.203125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Calculator.Algorithm
{
public class ParserFunction
{
private ParserFunction _implementation;
private static IdentityFunction _idFunction = new IdentityFunction();
private static S... |
ffdc17fe31e0ffba3fdb453cb28d3f430dfc849c | C# | FarrukhAmiir/IphonePiano | /Assets/Art/TapdaqOverall/Tapdaq/Scripts/Helpers/TDEnumHelper.cs | 2.734375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
namespace Tapdaq {
public static class TDEnumHelper {
public static string FixAndroidAdapterName(string adapterName) {
if (adapterName == Enum.GetName (typeof(TapdaqAdapter), TapdaqAdapter.FANAdapter)) {
return "F... |
d455014e4816d141774907d9379e3d0ed6c7567c | C# | kumanobori/WindowPositionRestorer | /WindowPositionRestorer.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using NLog;
namespace WindowsPositionRestorerForm
{
class WindowPositionManager
{
private static Logger logger = LogManager.GetCurrentClassLogger();
List<WindowPosition> listPositio... |
6f03bcca6dd0ed78cf781add42c478d1162c27dc | C# | jngraziano/laboratorioII-2017- | /Carpeta_Mia/Parciales Realizados/Segundo Parcial/Segundo Parcial/Graziano.Julian/Fruta/Cajon.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
namespace Fruta
{
public class Cajon:ISerializable
{
#region Atributos, Prop y Constructores
priv... |
c818edca9954cded980593f6e0e09e6652372372 | C# | DmitryEvmenov/having-fun-with-serializers | /BinaryAdapt/BinarySerializerAdapter.cs | 2.53125 | 3 | using Abstractions;
using Binary;
namespace BinaryAdapt
{
public class BinarySerializerAdapter : IMySerializer, INamed
{
private readonly BinarySerializer _serializer = new BinarySerializer();
public void Serialize<TObj>(TObj data, string pathTo)
=> _serializer.Serialize(data, pat... |
b86e44cc9f95a41a39c4ab76a379cf651d553d0b | C# | olatief/OGS-Closed-Loop | /CID_USB_BaseStation GUI/CID_USB_BaseStation/DataLogger.cs | 3.015625 | 3 | using System;
using System.IO;
using System.Windows.Forms;
namespace CID_USB_BaseStation
{
public class DataLogger
{
private static DataLogger instance;
private bool isFileOpened = false;
private string fileName = "";
private StreamWriter sWrite = null;
priv... |
1bce1bf5c19fdfe157db82cf933d095fd84366b0 | C# | DurtyFree/OBS.WebSocket.NET | /OBS.WebSocket.NET/Types/SceneItemProperties.cs | 2.546875 | 3 | using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace OBS.WebSocket.NET.Types
{
/// <summary>
///
/// </summary>
public class SceneItemProperties
{
/// <summary>
/// Initialize the scene item transform
/// </summary>
/// <param name="body"></param>
pu... |
2c9b52554714a983f7d386f5051bfa0d88cad6c6 | C# | TanametTpk/SlimeGame | /Assets/Scripts/Skills/Skill.cs | 2.640625 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "New Skill", menuName = "Skill")]
public class Skill : ScriptableObject
{
public string name;
public string description;
public Sprite sprite;
public float manaCost;
public List... |
2b66617f404fbd514050639fc527f18963ddcb7f | C# | arulkumar4/Banking | /Banking.WebApi/Controllers/Bank/ValuesController.cs | 2.53125 | 3 | using Banking.Business.Contracts;
using System.Web.Http;
namespace Banking.WebApi.Controllers
{
public class ValuesController : ApiController
{
IBankBl _bankBl;
public ValuesController()
{
}
public ValuesController(IBankBl bankBl)
{
this._bankBl ... |
2dd86aeb4136f076fd307e8afa0dd31463404ca3 | C# | windystrife/UnrealEngine_NVIDIAGameWorks | /Engine/Source/Programs/UnrealControls/ColoredTextRange.cs | 2.96875 | 3 | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace UnrealControls
{
/// <summary>
/// Represents a range of colored characters within a line of a document.
/// </summary>
public class ColoredTextRange
{
... |
2d02f6930dddbe2d84c581c2bbcba5d4bf820864 | C# | yamadamael/AtCoderContest | /ABC015/ProgramA.cs | 2.828125 | 3 | using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC
{
class ProgramA
{
static void Main(string[] args)
{
var s = Console.ReadLine();
var t = Console.ReadLine();
Console.WriteLine(s.Length > t.Length ? s : t);
... |
b2ba10d55bd7b182e57bf5a59ab1724885842b4b | C# | spectralvortex/jl_image2ico | /jl{image2ico}/ImagingHelper.cs | 3.34375 | 3 | using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.IO;
namespace jl_image2ico
{
/// <summary>
/// Adapted from this gist: https://gist.github.com/darkfall/1656050
/// Provides helper methods for imaging
/// </summary>
... |
6a03e91dab6c35ee0469e5d72e3adce9aa2328b4 | C# | ujr/csutils | /src/Json.Test/JsonTest.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using Xunit;
using Xunit.Abstractions;
namespace Sylphe.Json.Test
{
public class JsonTest
{
private readonly ITestOutputHelper _output;
public JsonTest(ITestOutputHelper output)
{
_output = output;
}
[Fact]
publ... |
ed0a0ce4ff8349c12846341ad2cc7c994ace8888 | C# | rickbutton/Scheme.NET | /src/Scheme.NET/Scheme/Vector.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Scheme.NET.Scheme
{
public class Vector : ISExpression
{
public ISExpression[] Values { get; set; }
internal Vector(ISExpression[] values)
{
Values... |
c1e3325a157bfcfd83c68c1076420fa464af27dd | C# | libcs/game.ultimaonline.io | /UltimaOnline.Data/Items/Aquarium/VacationWafer.cs | 2.609375 | 3 | using System;
using UltimaOnline;
using UltimaOnline.Mobiles;
namespace UltimaOnline.Items
{
public class VacationWafer : Item
{
public const int VacationDays = 7;
public override int LabelNumber { get { return 1074431; } } // An aquarium flake sphere
[Constructable]
... |
e5e9f5f394f51bd0af7e1f600c83e97efcfc9388 | C# | shendongnian/download4 | /code8/1479929-40726309-136316303-18.cs | 3.0625 | 3 | private static void RemoveEmptyRowsCols3(Excel.Worksheet worksheet) {
//Excel.Range usedRange = worksheet.UsedRange; // <- using this variable makes the while loop much faster
int rowIndex = 1;
// delete empty rows
//while (rowIndex <= usedRange.Rows.Count) // <- changing this one l... |
b6ed7e27ac372166a26dd980b0dc6066b814983e | C# | randomsilo/rpi-gpio-wpf-ui | /rpi-gpio-client/rpi-gpio-client/FindDevicesViewModel.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace rpi_gpio_client
{
public class FindDevicesViewModel
{
public string IpAddressStart { get; set; }
public string IpAddressEnd { get;... |
7bc3b395c2bdc48298212f5e46f7b01d703ef748 | C# | fwtrailsapp/AppApi | /DataRelay/Logger.cs | 2.84375 | 3 | using System;
using System.Diagnostics;
using System.IO;
using log4net;
namespace DataRelay
{
public enum LogLevel
{
Debug = 0,
Info = 1,
Warn = 2,
Error = 3,
Fatal = 4
}
public class Logger
{
public Logger(string configFilePath)
{
... |
3388a909af8be12cc2ceec759469f6a644e2ec1d | C# | lastock/XFCustomControls-master-test | /XFCustomControls/XFCustomControls/ViewModels/PickerViewModel.cs | 2.78125 | 3 | using System.Collections.ObjectModel;
using Xamarin.Forms;
namespace XFCustomControls.ViewModels
{
public class PickerViewModel : ViewModel
{
private string _selectedItem;
public string SelectedItem
{
get { return _selectedItem; }
set { SetProperty(ref _selected... |
6933720baf8bdee80005cde873bdb545d3ebe5c9 | C# | inspirasiprogrammer/WinNetMeter | /WinNetMeter/Helper/Updater.cs | 2.640625 | 3 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Reflection;
using System.Windows.Forms;
using WinNetMeter.Model;
namespace WinNetMeter.Helper
{
internal class Updater
{
private readonly string baseUrl = "https://cdn.winten.space";
... |
c40f7db92d87e93d777005391e1d33890a27f81e | C# | petardjordjevic98/Projects | /Minesweeper-C++/Square/Table.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml;
using System.Xml.Serialization;
namespace Square
{
[Serializable]
public abstract class Table
{
public int maximum= 0;
public i... |
83e4a8c7c70a72b3494316a16a2abe1dcd389e19 | C# | paaland/tempodb-net | /Client/Model/DataPoint.cs | 3.34375 | 3 | using Newtonsoft.Json;
using System;
namespace Client.Model
{
/// <summary>
/// Represents one timestamp/value pair. This class uses a Joda Time DateTime.
/// </summary>
public class DataPoint
{
public DataPoint()
{
}
/// <param name="timestamp"> DateTime represe... |
f015701a14ddb847e82a3f89b478bd31a5f3923b | C# | emanuele83/AsyncProgramming | /AsyncProgramming/ParallelLoops.cs | 3.25 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AsyncProgramming
{
class ParallelLoops
{
// PARALLEL LOOPS
//static IEnumerable<int> CustomStep(int start, int end, int step)
//{
// for (int i = sta... |
256baccaa80d7a8abceabf1deaa464f9805ddb50 | C# | senthilnathansk/durabletask-extensions | /src/LLL.DurableTask.Api/Extensions/HttpContextExtensions.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
namespace LLL.DurableTask.Api.Extensions
{
static clas... |
382c05df5e16a9768e6e482d3fc1e9ea793ef8c2 | C# | Hunter3787/Saturday-Solution | /AutoBuildApp/AutoBuildApp_v2/AutoBuildApp.DataAccess/RegistrationDAO.cs | 3.0625 | 3 | using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using AutoBuildApp.Models;
using Microsoft.Data.SqlClient;
using Microsoft.Data.Sqlite;
namespace AutoBuildApp.DataAccess
{
public class RegistrationDAO
{
private String _connection;
/*
* "Represent... |
ef5ba4c5fc3d3adb05599f83b576cc255c5f92d1 | C# | dickinsonmr1/dance-combo-generator-2 | /dance-combo-generator-2/Models/Random.cs | 2.59375 | 3 | using System.Collections.Generic;
using System.Linq;
using dance_combo_generator_2.DataStore;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
namespace dance_combo_generator_2.Models
{
public class RandomModel
{
[BindProperty] public int NumberOfMoves { get; set; } = 0;
... |
f151798a774880fbf3c7d4d9ae0f4efe977ed581 | C# | osddeitf/mummy-maze | /Assets/Scripts/Gameplay/Character.cs | 2.609375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Character : MonoBehaviour
{
// Inspector
public Texture2D up;
public Texture2D down;
public Texture2D left;
public Texture2D right;
public Texture2D[] idle;
public class SpriteAnimation {
... |
351369fc8941adc35e5852b4207b135864b500ea | C# | wilkoJ/WebAPINgCooking | /WebAPINgCooking/Controllers/CategoryIngredientsController.cs | 2.828125 | 3 | using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace WebAPINgCooking.Controllers
{
public class CategoryIngredientsController : ApiController
{
private IRepository<CategoryIngredient> _repo;
public CategoryIngredientsController( IRepository<CategoryIngr... |
94382350a77997d27382bceb39f7a817ba6afd1e | C# | Picatoste/Simpleverse.Dapper | /Simpleverse.Dapper/SqlServer/BulkExtensions.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Reflection;
using System.Data.SqlClient;
using System.Threading.Tasks;
using Dapper;
using Dapper.Contrib.Extensions;
using System.Text;
namespace Simpleverse.Dapper.SqlServer
{
public static class BulkExtensions
{
... |
5caaaff3bc4ed45a44318e22942e0cd695c704ab | C# | bubdm/CroplandWpf | /CroplandWpf/Attached/ToggleButtonHelper.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls.Primitives;
namespace CroplandWpf.Attached
{
public sealed class ToggleButtonHelper
{
public static object GetCheckedContent(DependencyObject obj)... |
cc9375dcd4a5d785a27d044b8cf0f2e7d7e002c9 | C# | naskomsm/CSharp-OOP-2019 | /Exams/AnimalCentre/AnimalCentre/Core/Factories/AnimalFactory.cs | 3.03125 | 3 | namespace AnimalCentre.Core.Factories
{
using global::AnimalCentre.Models.Contracts;
using System;
using System.Linq;
using System.Reflection;
public class AnimalFactory
{
public IAnimal Create(string type, string name, int energy, int happiness, int procedureTime)
{
... |
831af904f79be0a87ead4bf4c4766970afb34d4e | C# | Snail2Frog/Algorithm-Studying | /Programmers/TruckCrossingBridge/ITruckCrossingBridge.cs | 3.453125 | 3 | namespace Programmers.TruckCrossingBridge
{
/// <summary>
/// https://programmers.co.kr/learn/courses/30/lessons/42583
/// </summary>
/// 문제 설명
/// 트럭 여러 대가 강을 가로지르는 일 차선 다리를 정해진 순으로 건너려 합니다. 모든 트럭이 다리를 건너려면 최소 몇 초가 걸리는지 알아내야 합니다. 트럭은 1초에 1만큼 움직이며, 다리 길이는 bridge_length이고 다리는 무게 weight까지 견딥니다.
/... |
ae7aa9376efc1d07545e566e0265fcb5c9b3012c | C# | Faravy/UniversityApp | /UniversityCourseAndResultManagementSystem-master/UniversityCourseAndResultManagementSystem/UI/EnterDepartmentUI.cs | 2.578125 | 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 UniversityCourseAndResultManagementSystem.BLL;
using UniversityCourseAndResultManagementSystem.DAL.... |
3dcecd6ba96538467b4f1f23a5a6bbc9e116b5a4 | C# | ahrynyak/SolarMonitor | /SolarMonitor/SolarMonitor.Communication/Messages/MessageBase.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using SolarMonitor.Communication.Messages.Attributes;
using SolarMonitor.Communication.Messages.Common;
namespace SolarMonitor.Communication.Messages
{
public abstract class... |
ca9f30d0fb517d6376526b39a9beb85251dd6652 | C# | jamunabalamurugan/JKTechFoundationTrainingDotNet | /Day4 OOPS/Inheritance/Program.cs | 3.890625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WorkwithInheritance
{
class Room
{
private int _length;
protected int _width;
public int Length
{
get { return _length; }
set { _length = value; }
}
... |
974d08ad7dcedb3374c70cc65bfa30094783a6a1 | C# | vadash/Alturos.Yolo | /src/Alturos.Yolo/YoloTracking.cs | 3.0625 | 3 | using Alturos.Yolo.Model;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
namespace Alturos.Yolo
{
public class YoloTracking
{
private YoloWrapper _yoloWrapper;
private Point _trackingObject;
privat... |
e35fc060a7252d49d2d951cbeb0c0ae6eec6987a | C# | WormieCorp/Faker.NET.Portable | /src/Faker/Phone.cs | 3.234375 | 3 | using Faker.Caching;
using Faker.Extensions;
namespace Faker
{
/// <summary>
/// A collection of Phone related resources.
/// </summary>
/// <remarks>
/// The resources are acquired by satellite assemblies matching the current thread's
/// <see cref="System.Globalization.CultureInfo" />.... |
21d23cb805dc39320ddb5a0aaaf714e2b6b52f62 | C# | starlest/PJNT | /PutraJayaNT/Utilities/ModelHelpers/CustomerHelper.cs | 2.828125 | 3 | namespace ECERP.Utilities.ModelHelpers
{
using System.Linq;
using System.Transactions;
using System.Windows;
using Models.Accounting;
using Models.Customer;
using Services;
public static class CustomerHelper
{
public static void AddCustomerAlongWithItsLedgerToDatabas... |
77e7b6263f1c9a32bb246e031038c18526d7cda9 | C# | phr00t/FocusEngine | /sources/presentation/Xenko.Core.Quantum/Internal/Content.cs | 2.8125 | 3 | // Copyright (c) Xenko contributors (https://xenko.com) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
using System;
using Xenko.Core.Reflection;
namespace Xenko.Core.Quantum
{
/// <summary>
/// ... |
92f54105fd2da43acec0c641e0fe0709f09df54d | C# | juanvianadev/Roman_Grupo3_2DM | /Roman_Senai_API/Controller/ProjetoController.cs | 2.65625 | 3 | using Microsoft.AspNetCore.Mvc;
using Roman_Senai.Domains;
using Roman_Senai.Interface;
using Roman_Senai.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Roman_Senai.Controller
{
[Produces("application/json")]
[Route("api/[controller]")]
... |
91c695e1280db3189a73b789d059868e84fa2fdc | C# | RyanLadley/TrackGIS | /ArcPath.Logic/AirTrafficManager.cs | 2.515625 | 3 | using ArcPath.Logic.AirTraffic;
using ArcPath.Logic.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ArcPath.Logic
{
public class AirTrafficManager
{
private static AirTrafficManager _instance;
public static AirTrafficManager Instance {
... |
6582f823723c2e3604ab1da204013c54f4fedb47 | C# | omerfarukdilek/Hospital_Automation | /Hospital_Automation/BusinessLogic/HospitalController.cs | 2.546875 | 3 | using DataAccess.Management;
using Entities;
namespace BusinessLogic
{
public class HospitalController
{
HospitalManagement hospitalManagement;
public HospitalController()
{
hospitalManagement = new HospitalManagement();
}
public bool AddHospital(Hospital ... |
1e6fbe6052a4a5b9d5eaf65c053c0e92f3bcf1e1 | C# | KevinGalarza6/Game101 | /Game101/Game101/Program.cs | 3.203125 | 3 | using System;
namespace Game101
{
class Program
{
static void Main()
{
MenuScreen();
}
public static void MenuScreen()
{
Console.Clear();
Console.WriteLine("\n__________________________________________________________________\n");
... |
bb279a1c3deb6cd6466f8dbc2e57ed1dfa255261 | C# | M-Mendez/PruebaTecnica | /LogicaN/tokenGenerate.cs | 2.96875 | 3 | using System;
using System.Security.Cryptography;
using System.Text;
namespace PruebaT.LogicaN
{
public class tokenGenerate
{
private string getSha256(string valor)
{
SHA256 sha256 = SHA256Managed.Create();
ASCIIEncoding encode = new ASCIIEncoding();
... |
21060157d50ae870d85dcd340e5d8591123517f1 | C# | EPAM-External-Trainee/Task_07 | /DAL/ORM/Models/Subject.cs | 3.09375 | 3 | using ResultsOfTheSession.DAL.ORM.Interfaces;
using System.Data.Linq.Mapping;
namespace DAL.ORM.Models
{
/// <summary>Interface describes subject model</summary>
[Table(Name = "Subjects")]
public class Subject : ISubject
{
/// <summary>Default constructor</summary>
public Subject()
... |
c38448b529e248e6239f27bedbe7b4a80c8374a4 | C# | hemane/Backend | /HeMaNe.Web/Service/Concrete/ClubService.cs | 2.640625 | 3 | using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using HeMaNe.Shared.TransferObjects;
using HeMaNe.Web.Database;
using HeMaNe.Web.Database.Models;
using HeMaNe.Web.Extensions;
using Microsoft.EntityFrameworkCore;
namespace HeMaNe.Web.Service.Concrete
{
internal class ClubService ... |
d1f9fc8faf8272ad5c7bc051a90a2d9f5525096c | C# | ChaseStruse/DesignPatternExampleProjects | /CommandDesignPattern_ShoppingCart/ShoppingCart/Program.cs | 2.796875 | 3 | using ShoppingCart.Commands;
using ShoppingCart.Invoker;
using ShoppingCart.Models;
using System;
using System.Collections.Generic;
namespace ShoppingCart
{
class Program
{
static void Main(string[] args)
{
Item steak = new Item() { Name = "Steak", Price = 10 };
Item ch... |
c993eb80259e8449ae4f72cff459c39aa8a6b728 | C# | kartverket/Geonorge.Symbol | /ImageTracerNet/Palettes/GaussianBlur.cs | 3.46875 | 3 | using System;
using System.Drawing;
using System.Threading.Tasks;
using ImageTracerNet.Extensions;
namespace ImageTracerNet.Palettes
{
//http://stackoverflow.com/questions/33569396/correctly-implement-a-2-pass-gaussian-blur
internal class GaussianBlur
{
private int kernelSize;
private floa... |
d7f55bccfa789c8587bd87f629f2a6d264e82953 | C# | XINCGer/Unity3DTraining | /Minecraft/Assets/Standard Assets/Utility/FPSCounter.cs | 2.6875 | 3 | using System;
using UnityEngine;
using UnityEngine.UI;
namespace UnityStandardAssets.Utility
{
[RequireComponent(typeof (Text))]
public class FPSCounter : MonoBehaviour
{
const float fpsMeasurePeriod = 0.5f;
private int m_FpsAccumulator = 0;
private float m_FpsNextPeriod = 0;
... |
15f01bd7ce28a5dfc39fcf9240629fdbb66204cf | C# | Krauzi/football-league-database-API | /application/Controls/SharedFunctions.cs | 2.953125 | 3 | using application.Controls.SingleControls;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace application.Controls
{
class SharedFunctions
{
public stat... |
d239ae9bc88d45abdc9574ab987111688bfc7330 | C# | 98016071/FunctionGuesser | /FunctionGuesser/Node.cs | 3.140625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace FunctionGuesser
{
class Node : INode
{
public int Size
{
get { return Left.Size + Right.Size; }
}
publ... |
fd0b88f809753898c9a3a4562c1e686b7ef38c9b | C# | kamran2/Hello-World | /Ide (2).cs | 3 | 3 | using System;
class Test{
public static void Main(String[] args){
int x=10;
Test.MyMethod(ref x);
//Test.MyMethod(x);
Console.WriteLine(x);
}
//error CS0825: The contextual keyword `var' may only appear within a local variable declaration
static void MyMethod(ref var i){... |
f15c213e4f7e5643091648f3bf12864ea9d975db | C# | taraman/EntityFrameworkTutorial | /EntityFrameworkTutorial.Backend/RepositoryPatterns/Approach01/UnitOfWork.cs | 2.578125 | 3 | using System.Data.Entity;
using System.Transactions;
using EntityFrameworkTutorial.Backend.Models;
//C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0
namespace EntityFrameworkTutorial.Backend.RepositoryPatterns.Approach01
{
public class UnitOfWork : IUnitOfWork
{
private Transact... |
7c3a786dbd0fa48a8977eba500d11b8da0c31ba8 | C# | paulcscharf/syzygy | /src/Syzygy/Game/Economy/Economy.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using Bearded.Utilities.Math;
using Syzygy.Game.Astronomy;
using Syzygy.Rendering;
using TimeSpan = Bearded.Utilities.SpaceTime.TimeSpan;
namespace Syzygy.Game.Economy
{
sealed class Economy : GameObject
{
private readonly Player player... |
11b0a79e125da210c80c28a34f90b2dff33a7a3f | C# | ArtemAlieinikov/OracleAcademy-.Net-platform | /Practice/Lesson 7 object model/Lesson 7 object model/1 task/American.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lesson_7_object_model._1_task
{
class American : Person
{
public override void SayHello()
{
Console.WriteLine("Hello, guys!");
}
}
}
|
205cb1121db68be899481a86234c0d0e81e5ed67 | C# | vulasau/home-manager-wp | /HomeManager.Entities/OperationCurrency.cs | 3.03125 | 3 | using HomeManager.Entities.Enums;
namespace HomeManager.Entities
{
public class OperationCurrency: EntityBase
{
public CurrencyName Name { get; set; }
private double _balance;
public double Balance
{
get { return _balance; }
set
{
... |
dce3556172f3b66adb3d56be3f639dbcee895d02 | C# | EugeneK91/Task-25.08.17- | /CustomerClass.cs | 3.4375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CustomerLib
{
public class CustomerClass:IEquatable<CustomerClass>,IComparable<CustomerClass>
{
public CustomerClass()
{
}
public Custome... |
beb3cf26b2275a56a1a115a45bc0b0bc54d8d86e | C# | apollotime/DecisionCardSwipingGame | /Dissertation/Assets/ScoreLoader.cs | 2.84375 | 3 | using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using TMPro;
using UnityEngine;
//Taken from https://www.raywenderlich.com/418-how-to-save-and-load-a-game-in-unity
public class ScoreLoader : MonoBehaviour
{
[SerializeField] private... |
675e5dcb4fe28b633bcb36f0e667ffd39b0e9f47 | C# | hobyst/PresetMagician | /PresetMagician.Core/Models/Audio/AudioOutputDevice.cs | 2.703125 | 3 | using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace PresetMagician.Core.Models.Audio
{
[JsonObject(MemberSerialization.OptIn)]
[DataContract]
public class AudioOutputDevice
{
[JsonProperty] [DataMember] public string Name { get; set; }
... |
617170d9abe27369ad7d720254a9edba96dd4764 | C# | vebin/DistributedDatabase | /Core/Entities/Variables/ValueSitePair.cs | 2.984375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DistributedDatabase.Core.Entities.Sites;
namespace DistributedDatabase.Core.Entities.Variables
{
/// <summary>
/// Holds a site/value pair.
/// </summary>
public class ValueSitePair : IEquatable<ValueSitePair>
... |
224845cd9469242eb1fd301812443f45bcf1db8d | C# | sandermvanvliet/TestableHttpClient | /src/Codenizer.HttpClient.Testable/RequestSchemeNode.cs | 2.859375 | 3 | using System.Collections.Generic;
using System.Linq;
namespace Codenizer.HttpClient.Testable
{
internal class RequestSchemeNode : RequestNode
{
private readonly List<RequestAuthorityNode> _authorityNodes = new List<RequestAuthorityNode>();
public RequestSchemeNode(string scheme)
{
... |
b54e7015472fdcc3e62b97877fc6d6fdc0da3dfa | C# | hexmar/multi-search | /MultiSearch.Domain/Models/SearchEngines/GoogleSearch.cs | 2.71875 | 3 | using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web;
using HtmlAgilityPack;
namespace MultiSearch.Domain.Models.SearchEngines
{
public class GoogleSearch : ISearchEngine
{
public async Task<string> GetDataAsync(string query)
{
using var c... |
723e273c872251cab5f95405b3f61c5cd860c4c7 | C# | mtk-arch/TheBletchley | /TheBatchley/TheBletchley/TheBletchley420/View/Playground.cs | 2.8125 | 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;
namespace TheBletchley420.View
{
public partial class Playground : Form
{
... |
83d6ab275d4564a9590b795cb85b5b672460ac78 | C# | DW-Shadow/ziosproject | /Codebase/Containers/Mutant.cs | 2.671875 | 3 | using System;
using UnityEngine;
namespace Zios.Containers{
public class Mutant{
public object original;
public object current;
public override string ToString(){return this.current.ToString();}
public static implicit operator int(Mutant value){return (int)value.current;}
public static implicit operator floa... |
c639543913a055b90f5f0da9c89a65624c73cc01 | C# | JasonCrease/TechnicalNet | /TechnicalNet/Metrics/SemaMetric.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using TechnicalNet.RealData;
namespace TechnicalNet.Metrics
{
public class SemaMetric : XemaMetric
{
public SemaMetric(StockHistory data) : base(data)
{
... |
cadf7898fd1be5446f4ab0a5c9f350fb69cc8231 | C# | KiraDragon/DevTools9 | /Snake/Program.cs | 3.34375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Threading;
using System.IO;
using System.Media;
namespace Snake
{
//Creates a data structure position that is made out of a row and a column.
struct Position
{
public int r... |
86cf3d9343d5933b28be16c540fa778ddd32b153 | C# | andersondamasio/AppProdutor | /AppProdutorAndroid/Adapters/Cotacao/CotacaoAdapter.cs | 2.59375 | 3 | using Android.App;
using Android.Views;
using Android.Widget;
using com.datacoper.appprodutor.Dto.Cotacao;
using System.Collections.Generic;
namespace com.datacoper.appprodutor.Adapters.Cotacao
{
public class CotacaoAdapter : ArrayAdapter<CotacaoDto>
{
private Activity context;
private List<C... |
0abfc0ee1bc3672eb216ea7b6ffe4fbc0963d3a9 | C# | Softuni-Alex/Softuni | /Algorithms/02.SortAndSearchAlgorithms/SortingAndSearchingAlgorithms/HelperMethods/Helpers.cs | 3.515625 | 4 | using System;
namespace HelperMethods
{
public class Helpers
{
public static bool IsLess(IComparable first, IComparable second)
{
return first.CompareTo(second) < 0;
}
public static void Swap<T>(T[] arr, int firstIndex, int secondIndex)
{
T temp... |
21caa41dc5941d39c071c37bac2852f0ed41be97 | C# | Attamanishe/Orbitality | /Orbitality/Assets/Scripts/Game/Physics/PhysicsController.cs | 2.546875 | 3 | using System.Collections.Generic;
using Common;
using Common.Updater;
using UnityEngine;
namespace Game.Physics
{
public class PhysicsController : MonoSingleton<PhysicsController>, IUpdateable
{
public float Gravity => _gravityScale;
[SerializeField] private float _gravityScale = 100;
... |
0a68d768ae3e44b22be52785f70080179f549266 | C# | Shuan97/CodeWarsSolutions | /CodeWarsSolutions/4 kyu/SumStringsAsNumbers.cs | 3.75 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CodeWarsSolutions._4_kyu
{
static class SumStringsAsNumbers
{
public static string SumStrings(string a, string b)
{
int size = Math.Max(a.Length, b.Length);... |
47f88850d549d09973fb5d9602db9d82ee141768 | C# | DTobelko/Cradle-18 | /Monobehaviours/TerminalUI.cs | 2.609375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class TerminalUI : MonoBehaviour
{
[SerializeField] private Text terminalLogin;
[SerializeField] private InputField terminalPassword;
[SerializeField] private GameObject LogonScreen;
[Serialize... |
e514803c3a0e1c814785ed0d21720cd65d38f8fc | C# | dolani/contactslist-xamarin | /ContactsList/ContactsList/PageModels/ContactDetailsPageModel.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using Xamarin.Forms;
using ContactsList.Models;
using ContactsList.Services;
using FluentValidation;
namespace ContactsList.PageModels
{
class ContactDetailsPageModel : BaseContactPageMode... |
5e38aa84190987522848e527b67a9b592f19a709 | C# | valentinbreiz/Aura-Operating-System | /Aura Operating System/Aura OS/System/Executables/KsIL/Interrupts/File.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace KsIL.Interrupts
{
public class File : Interrupt
{
public File()
{
Code = 2;
}
public override void Run(byte[] Parameters, Memory mMemory)
{
string Path = Encoding.U... |
a0018578f9ae5e1db01ece65dd957ab8688c9a1b | C# | dimitrievgs/Scan-Corrector | /SkewCorrection/Rotator.cs | 2.671875 | 3 | //Copyright © Storm23, GPL3, 2015
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.Runtime.InteropServices;
namespace SkewCorrectionNS
{
public static class Rotator
{
public static Bitmap Rotate(Bitmap img... |
35912a8b9c5007d5c5e23a2be4a3be997daeaaab | C# | thudugala/Plugin.LocalNotification | /Sample/NuGet v207/Sample/MainPage.xaml.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Plugin.LocalNotification;
using Xamarin.Forms;
namespace LocalNotification.Sample
{
public partial class MainPage : ContentPage
{
private int _tapCount;
public MainPage()
... |
4b2d58ae06c0ce0d6bcf11d190661b58b780a039 | C# | Ivanchia0909/GameOfDan | /Assets/Scripts/SimpleLookAt.cs | 3.125 | 3 | using UnityEngine;
/*
Script: SimpleLookAt
Author: Gareth Lockett
Version: 1.0
Description: Super simple script for making a game object look at another game object in the scene.
Objects look along their Z axis using world Y axis as up node.
Options for smoot... |
40315117f5fc20d96d210e7e3d2a69000341948e | C# | xiaomailong/Study | /V2/Train/Urban.ATC.Siemens/Src/Urban.ATC.Siemens.Model/TrainInfo/TrainInfo.cs | 2.59375 | 3 | using Motor.ATP.Domain.Interface;
// ReSharper disable once CheckNamespace
namespace Motor.ATP.Domain.Model
{
public class TrainInfo : ATPPartialBase, ITrainInfo
{
private Speed m_Speed;
private Brake m_Brake;
private Driver m_Driver;
private KilometerPost m_KilometerPost;
... |
19bcd0d194c9608b841440c72cdcd2d748f26012 | C# | shendongnian/download4 | /code9/1620156-45553054-153439472-1.cs | 2.578125 | 3 | public static async Task<List<FooModel>> ListFooModelAsync()
{
using (var db = new AppDbContext())
{
var foo_items = await db.Foos
.Select(e => new FooModel
{
Id = e.Id,
Name = e.Name,
... |
d47c3203c6ee559bb40fcd1e2ad58a5d196e72b5 | C# | BYTEzel/BikeTrafficSimulator | /BikeTrafficSimulator/Models/TrafficLight.cs | 3.390625 | 3 | using GalaSoft.MvvmLight;
using System;
namespace BikeTrafficSimulator.Models
{
public class TrafficLight : ObservableObject
{
public enum State { Green, Red};
private State currentState;
private string name;
private decimal timeGreenMin;
private decimal timeRedMin;
... |
b8fd7a30b470c5e3c03c9aa1fe8d9078dd852f38 | C# | chidionuekwusi/Twaija | /TwaijaComposite.Modules.Common.Silverlight/Behaviors/PopupWrapper.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using TwaijaComposite.Modules.Common.Behaviors;
namespace TwaijaComposite.Modules.Common.Behaviors
{
public class PopupWrapper : IWin... |
3fd083315431fe6204aa6a5faca464e6578ceb70 | C# | Pavelbarrosq/UnityParachuteGameAndWatch | /Assets/_Game/Scripts/LivesController.cs | 2.78125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LivesController : MonoBehaviour
{
public float lifeDistance = 0.8f;
private List<GameObject> lives = new List<GameObject>();
public void StartingLives(int count)
{
GameObject firstLife = t... |
ff80edbf8536866cbb4828a3df418bee9ce2b635 | C# | averrunci/Carna | /Source/Carna.Runner/Runner/Extensions.cs | 2.59375 | 3 | // Copyright (C) 2022 Fievus
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
namespace Carna.Runner;
internal static class Extensions
{
public static void ForEach<T>(this IEnumerable<T>? @this, Action<T> action)
{
if (@this ... |
ad75f792f66add6cc07bde9766ca09e137c14edd | C# | trays93/ProgParadigmakMintaZH | /Feladat_2/Kor.cs | 2.6875 | 3 | namespace Feladat_2
{
public struct Kor
{
private int x;
private int y;
private int r;
public Kor(int x, int y, int r)
{
this.x = x;
this.y = y;
this.r = r;
}
public int X { get { return x; } }
public int Y { ... |
d30bedc46ced30499bba59aaed1e562d680fc65e | C# | mattwarneke/MattsChat | /OutboundMessage.cs | 3.125 | 3 | namespace MattsChat
{
using System;
using System.Text;
public class OutboundMessage
{
public OutboundMessage(string msg)
{
string protocolMessage = "<= " + msg + Environment.NewLine;
this.Message = protocolMessage;
}
public string Message { get;... |
7ddf44cef2bde2cb14b1711c98b227532fb71e11 | C# | NiallEHunt/Console-Proxy | /ConsoleProxy/ProxyServer.cs | 3.125 | 3 | using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.IO;
using System.Collections.Generic;
namespace ConsoleProxy
{
public sealed class ProxyServer
{
private TcpListener listener;
private Thread listenerThread;
private Thread cacheMaintenanceTh... |
c10fe37177e3abf0354dfe5712375b93a9c69258 | C# | thomasw234/evco | /EVCO/Utilities/Solitaire.cs | 2.765625 | 3 | using System;
using System.Text;
using System.Diagnostics;
using System.IO;
namespace EVCO
{
public class Solitaire
{
public Solitaire ()
{
}
public static int Run(int[] values)
{
StringBuilder s = new StringBuilder ();
foreach (int n in values) {
s.Append (n.ToString () + " ");
}
Process... |
bb4b446ade3dd329f85ce67205d51d79dc50da62 | C# | kozmix/TestFurnitureStoreApp | /DiscountCalculator/DiscountCalculator.cs | 3.265625 | 3 | using System;
using Domain.Orders;
using DiscountRules;
using System.Collections.Generic;
namespace DiscountCalculator
{
// This concrete class implements the IDiscountCalculator, and returns the maximum discount that applies on an order.
// Another example : We can implement another concrete class based on I... |
4121dc1a7940fd73dcb6dc55cdd96daee5b8ec06 | C# | CansuPakel/ParachuteJumpers | /Valschermspringers/Valschermspringer/Parachutes.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Windows.Media;
using System.Windows.Media.Media3D;
namespace Valschermspringer
{
class Parachutes
{
public GeometryModel3D parachute = new GeometryModel3D();
Model3DGroup modelGroup = new Model3DGroup();
private int x, y, z;... |
f8f7b2432c2ed48fb619cf9fe5ccbe50529b48a1 | C# | michaelabajerova/GFACourse | /week3/day1/Recursion-Exercises/Program.cs | 3.6875 | 4 | using System;
using System.Runtime.CompilerServices;
using System.Text;
using Microsoft.VisualBasic.CompilerServices;
namespace Recursion_Exercises
{
class Program
{
static void Main(string[] args)
{ // Add number //
Console.WriteLine(numberAdder(5));
Console.ReadLine... |
7fb7ee8578089cc561c5b405348ca146ef37398e | C# | Inspix/MonoTinker | /MonoTinker/Code/Components/Elements/AnimationEventArgs.cs | 2.609375 | 3 | namespace MonoTinker.Code.Components.Elements
{
using System;
/// <summary>
/// Animation event arguments
/// </summary>
public class AnimationEventArgs : EventArgs
{
/// <summary>
/// Initializes a new instance of the <see cref="AnimationEventArgs"/> class.
/// </summar... |
d29f89a12bb0be21025e81a541c731c4e9addf39 | C# | dushka-dragoeva/TelerikSeson2016 | /Programing C#/OOP/03. ExtensionMethodsDelegatesLambdaLINQ/6. DivisibleBySevenAndThree/DivisableByTowNumbersTest.cs | 3.234375 | 3 | namespace DivisibleBySevenAndThree
{
using System;
using Extentions;
using Utilities.Extentions;
public class DivisableByTowNumbersTest
{
public static void Run()
{
var numbers = new long[] { 3456, 42, 865, 33, 67, 84, 49 };
Console.ForegroundColor = Consol... |
046e7f307cda30b55523ab2c11db9fd2ec1387d1 | C# | andweller/bioinformatics | /BioTest/Bio/CytosineGuanineSkewMaxTests.cs | 2.515625 | 3 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Bioinformatics;
using System.Linq;
namespace BioTest
{
[TestClass]
public class CytosineGuanineSkewMaxTests
{
[TestMethod]
public void CytoGuanSkewMax_Simple()
{
DnaStrand strand = new DnaStrand("TA... |
71492d1c7483e130367084ab6b90afbccb4e7b6e | C# | roughee/furry-rabbitmq-impl | /LoanBrokerComponent/GetBanks/RuleChecker.cs | 3.0625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GetBanks
{
class RuleChecker
{
public List<String> GetBankList(int creditScore)
{
var bank1 = "bank1";
var bank2 = "bank2";
var bank3 = "bank3";
var b... |
f7271c099161eb0572b9c7d62a40797c6ada31b9 | C# | ALi860713/DesignPattern | /DesignPattern/Program.cs | 3.65625 | 4 | using System;
namespace SimpleFactory
{
class Program
{
static void Main(string[] args)
{
var tcpCommunication = CommunicationFactory.GetInstance(CommunicationType.Tcp);
tcpCommunication.ConnectToNetwork();
var udpCommunication = CommunicationFactory.GetInst... |
5a582be0b59008372d0dae3f25812b98339337cc | C# | samuilll/Softuni_CSharpAdvancedCourse | /01_StackAndQueues/Task10SimpleTextEditor/Task10SimpleTextEditor.cs | 3.515625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Task10SimpleTextEditor
{
static void Main(string[] args)
{
StringBuilder textBuilder = new StringBuilder(string.Empty);
Stack<string> stackBuilder = new Stack<string>();... |
a958c2770b751d263011d89dfe741f9f6c395c08 | C# | ashishsuman4u/SOLID | /SolidExamples/OpenClosedPrinciple/Invoice.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpenClosedPrinciple
{
public class Invoice
{
public int InvoiceId { get; set; }
public long Amount { get; set; }
public InvoiceType InvoiceType... |
e3e143aeb26aa6181f439ca30230f0151dc54b70 | C# | bertusmagnus/Codebetter-Canvass-Clone | /CodeBetter.Canvas/Components/Validation/StringLengthAttribute.cs | 3.09375 | 3 | namespace CodeBetter.Canvas.Validation
{
using System.Collections.Generic;
public class StringLengthAttribute : BaseValidatorAttribute
{
private readonly int _minimumLength;
private readonly int _maximumLength;
public int MinimumLength
{
get { ret... |