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 |
|---|---|---|---|---|---|---|
d35913db6357ba9aa44404e90965e2b5553b6251 | C# | microcreationsuk/MicroCreations | /MicroCreations.Batch/MicroCreations.Batch.Common/Extensions.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using MicroCreations.Batch.Common.Operations;
using Newtonsoft.Json;
namespace MicroCreations.Batch.Common
{
[ExcludeFromCodeCoverage]
public static class Extensions
{
public static int ToInt(... |
6e0db4d8b1b8344681b2a8f939bf271a93c1cb77 | C# | Ricky-G/Framework | /Source/MVC5/Boilerplate.Web.Mvc5/OpenGraph/ObjectTypes/Standard/OpenGraphMusicRadioStation.cs | 2.921875 | 3 | namespace Boilerplate.Web.Mvc.OpenGraph
{
using System;
using System.Text;
/// <summary>
/// This object represents a 'radio' station of a stream of audio. The audio properties should be used to identify the location of the stream itself.
/// This object type is part of the Open Graph standard.
... |
15941f7ebd5b0f307970b96eb4d05261a6735c8b | C# | dotsudo/plus-clean | /Communication/Packets/Outgoing/Rooms/FloorPlan/FloorPlanFloorMapComposer.cs | 2.671875 | 3 | namespace Plus.Communication.Packets.Outgoing.Rooms.FloorPlan
{
using System.Collections.Generic;
using System.Linq;
using HabboHotel.Items;
internal class FloorPlanFloorMapComposer : ServerPacket
{
public FloorPlanFloorMapComposer(ICollection<Item> items)
: base(ServerPacketHe... |
a2a4a5a31b0e38c6a0a606a200fe23a52bfcbba5 | C# | SergeiWal/OOTP | /практика/Task2_6/Task2_6/User.cs | 3.390625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;
namespace Task2_6
{
enum State
{
signin,
signout
}
[Serializable]
class User: IComparable
{
private string email;
... |
3ebf4deac5608113814ec9acf8d8f8d68ea255cc | C# | brunoesantana/RockPaperScissors | /RockPaperScissors/RockPaperScissors.Tests/Helper/TestHelper.cs | 2.640625 | 3 | using RockPaperScissors.Domain.Entity;
using RockPaperScissors.Domain.Enum;
using System.Collections.Generic;
namespace RockPaperScissors.Tests.Helper
{
public static class TestHelper
{
public static IList<Player> BuildInvalidPlayerList()
{
return new List<Player>
{
... |
1fe5fcdd91b4d1f2bd3da4f3cd90870ce9d49815 | C# | JamesTheBard/csharp-updatelist | /ConsoleApplication1/ConsoleApplication1/Program.cs | 2.890625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.InteropServices;
using WUApiLib;
namespace ConsoleApplication1
{
class Program
{
static int tableWidth = 99;
static int widthTwo = 70;
static void Ma... |
6f524d59b267e07fa69450f023576547b117d6d8 | C# | claudevan/CadastroPedidos | /CadastroPedido.Entity/Migrations/Configuration.cs | 2.515625 | 3 | namespace CadastroPedido.Entity.Migrations
{
using CadastroPedidos.Models;
using System.Collections.Generic;
using System.Data.Entity.Migrations;
internal sealed class Configuration : DbMigrationsConfiguration<Contexto.CadastroPedidosDataContext>
{
public Configuration()
{
... |
f1ea67f1c01284c6d69fbc3ae50fdb66248cd020 | C# | KaelTian/CustomizeIOCAOP | /IOCDL.service/TestServiceA.cs | 2.75 | 3 | using IOCDL.Interface;
using System;
namespace IOCDL.Service
{
public class TestServiceA : ITestServiceA
{
public TestServiceA()
{
//Console.WriteLine($"{nameof(TestServiceA)} is constructored.");
}
public string ShowMessage(string message)
{
ret... |
6923733991a37c33916b7da3c6001bf1e1b12500 | C# | CCRed95/opieandanthonylive | /src/Ccr.Dnc.Core/Dnc/Core/Numerics/Ranges/SByteRange.cs | 2.5625 | 3 | using System;
// ReSharper disable BuiltInTypeReferenceStyle
namespace Ccr.Dnc.Core.Numerics.Ranges
{
public class SByteRange
: IntegralRangeBase<SByte>
{
public SByteRange(
SByte minimum,
SByte maximum) : base(
minimum,
maximum)
{
}
public static implicit operator... |
999694b9c264e7ec2d3cb09e9952940ae8ae32f9 | C# | MilanBartl/Advent-of-Code-2019 | /AdventCode2019/Day22/Worker.cs | 3.171875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace AdventCode2019.Day22
{
public class Worker : IWorker
{
public object Work1()
{
//var deck = Enumerable.Ra... |
14fa15f024e9ac0d9e1833421588296f75c01f3f | C# | try-inf/XT-2018Q4 | /Epam.Task02/Epam.Task02.2_Triangle/Program.cs | 3.828125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Epam.Task02._2_Triangle
{
class Program
{
static int ReadInt(string str)
{
while (true)
{
Console.Write(str);
st... |
47dbadd851205ab60b41b37b30ed448b88537bda | C# | bpallan/RetryAndCircuitBreakerTestSolution | /ResiliencyTests/SimpleRetryExampleTests.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.TestHost;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SimpleRetry;
using TestHarnessApi;
namespace ResiliencyTests
{
... |
ac9334e6146a9cedae40d6017589e6335849123f | C# | IvanPahaniuka/Patterns | /Adapter/Adapter.cs | 3.46875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Adapter
{
public static class Adapter
{
public static void Test()
{
Sailor sailor = new Sailor();
Boat boat = new Boat();
sailor.Tr... |
73e71e3b38d8128a27ea90319ec78f22f4eefc49 | C# | dterracino/Cyjb | /UnitTestCyjb/UnitTestStringExt.cs | 2.8125 | 3 | using System.Linq;
using Cyjb;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTestCyjb
{
/// <summary>
/// <see cref="Cyjb.StringExt"/> 类的单元测试。
/// </summary>
[TestClass]
public class UnitTestStringExt
{
/// <summary>
/// 对 <see cref="Cyjb.StringExt.UnescapeUnicode"/> 方法进行测试。
... |
fff9a98866f3a4035f57fc8f336cf01512579064 | C# | kimyeongseong/DangerousOutside | /Assets/Script/InGame/Item/Cleaner.cs | 2.546875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Cleaner
{
/// <summary> 세탁기 인덱스 </summary>
public int index;
/// <summary> 세탁기에 들어있는 주민 </summary>
public Citizen citizen = null;
/// <summary> 세탁중인 시간(Citizen.cleanTime과 비교하여 takeTime이 더 크면 세탁기 탈출) </summa... |
116b38f720066525da352542f96efcc1b3b7152f | C# | kozlyakovskaya-tatsiana/CarRentalAngular | /CarRental.Api/CarRental.DAL/Repositories/Realization/LocationRepository.cs | 2.640625 | 3 | using System;
using System.Linq;
using System.Threading.Tasks;
using CarRental.DAL.EFCore;
using CarRental.DAL.Entities;
namespace CarRental.DAL.Repositories.Realization
{
public class LocationRepositoryBase : RepositoryBase<Location>, ILocationRepository
{
public LocationRepositoryBase(ApplicationCon... |
8598831502038f18727634ac9c4bfcffef566eae | C# | Nimmi-Ghetia/soa-project | /Client/Client/methods/GetBooking.cs | 2.609375 | 3 | using Client.models;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.UI.WebControls;
using System.Xml;
namespace Client.methods
{
public class GetBooking
{
public Book GetBook(int id)
{
... |
6e08fe9bb0d2020172cbfd229753f24e7e4d7748 | C# | shendongnian/download4 | /code5/963794-24399197-67989368-2.cs | 3.359375 | 3 | using System;
public class Program
{
public static void Main()
{
string s1=@"[q:6][ilvl:70](randomword)";
var tmp = s1.Split(new string [] {":","]" }, StringSplitOptions.None);
string res1 = tmp[1];
string res2 = tmp[3];
string res3 = s1.Spl... |
38a61759142c53dbe1fa71112e321b17ef916ac1 | C# | adrianf223/DW.CodedUI | /DW.CodedUI/Utilities/DynamicSleep.cs | 2.515625 | 3 | #region License
/*
The MIT License (MIT)
Copyright (c) 2012-2018 David Wendland
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use... |
316c70a033328abaa192362e2bbc9533c5e62738 | C# | GDKsoftware/GitBitter | /GitBitterEdit/EditPackageDetails.xaml.cs | 2.625 | 3 | namespace GitBitterEdit
{
using System.Windows;
using GitBitterLib;
/// <summary>
/// Interaction logic for EditDetails.xaml
/// </summary>
public partial class EditPackageDetails : Window
{
private Package package = null;
private Package packageCopy = null;
public... |
c577df70dcec0f118bae64f2284ccdc064f0b4dd | C# | Samin705/School-Management-System-Using-Web-Api-Jquerry-Entity-Framework | /Final_Project_APWDN_SMS/Repository/AdminRepository.cs | 2.515625 | 3 | using Final_Project_APWDN_SMS.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Final_Project_APWDN_SMS.Repository
{
public class AdminRepository:Repository<Admin>,IAdminrepository
{
public string GetNewTeacherID()
{
var oldID = ... |
c3bad4426a768b8347341e27fda5a5e5fd879463 | C# | ravisinghunnao/Xamarin.Forms.CustomControls | /CustomControls/CircleView.cs | 2.984375 | 3 | using System;
using System.Runtime.CompilerServices;
using Xamarin.Forms;
namespace HS.Controls
{
public class CircleView : AbsoluteLayout
{
public double DotSize { get; set; }
public Color LineColor { get; set; }
protected override void OnPropertyChanged([CallerMemberName] string p... |
e33f6d579fcb12b9dd9e2414645a41df8f8264b9 | C# | MadalinaFN/AF-Curs | /Curs10/Program.cs | 3.40625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Curs10
{
class Program
{
static void Main(string[] args)
{
//FactoriPrimi();
//FactoriPrimi1();
}
private static void FactoriP... |
b6b0eaa94d21db9193daf18ca27df04ad92a5947 | C# | gbuchholcz/ProjectEulerPlus-CSharp | /Solutions/Challenges/Euler22.cs | 3.5625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Solutions.Challenges
{
class Euler22
{
static void main(String[] args)
{
using (System.IO.StreamReader input = new System.IO.StreamReader(Console.OpenStanda... |
743bb111de65728702c5cff92d208a01bd4bdee0 | C# | TorsteinUtne/FigmentAPI | /Util/StringExtensions.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace PowerService.Util
{
internal static class StringExtensions
{
internal static string ToCamelCase(this string value)
{
if (string.IsNullOrEmpty(value)) return value;
... |
8025880b51f0da2951a01dc14c399161816de0d9 | C# | Tolkata99/CSharp-Advanced | /CreateStackTest/03.StackSum/Program.cs | 3.609375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
namespace _03.StackSum
{
class Program
{
static void Main(string[] args)
{
int[] receive = Console.ReadLine().Split().Select(int.Parse).ToArray();
Stack<int> stack = new Stack<int>(receive);
... |
ba86ae6b288f6c4a99b24f16c4fc728d46ced6e3 | C# | Cdelim/Rope-Game | /Assets/Scripts/ButtonsScript.cs | 2.53125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ButtonsScript : MonoBehaviour
{
[HideInInspector]
GameObject[] buttons;
void Awake()
{
buttons = GameObject.FindGameObjectsWithTag("Button");
}
public bool isHereFill(Vector3 position) {
... |
33ef09fda58ccefffc16ba373c86da21ea994cd3 | C# | JediMasterSam/API.Builder | /Api.Builder/Status Codes/400/PayloadTooLargeAttribute.cs | 2.828125 | 3 | using System;
using Microsoft.AspNetCore.Mvc;
namespace Api.Builder
{
/// <summary>
/// The server is refusing to process a request because the request payload is larger than the server is willing or able to process.
/// </summary>
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
public... |
081d63f945f53522bcdc3bbc83e04f2b6938462a | C# | bradbread/Research-and-apply-emerging-web-technology-trends-Challenge-2 | /Shapes/Shapes/RightAngle.cs | 3.1875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace Shapes
{
public class RightAngle : Triangle, IShapeCalc
{
public RightAngle(double pSideLength1, double pSideLength2)
{
SideLength1 = pSideLength1;
SideLength2 = pSideLength2;
SideL... |
2ba3d5508fa403b4a438bef2047078b5896427e1 | C# | alexismoura/CertificWeb | /CertificBr.Data/EntityFramework/Repositories/Containers/CertificadoRepository.cs | 2.5625 | 3 | using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CertificBr.Data.EntityFramework.Contexts;
using CertificBr.Data.EntityFramework.Entity.Containers;
namespace CertificBr.Data.EntityFramework.Repositories.Containers
{
public class Certif... |
73aed709eb7f8445269b65d3929d0ea4a4ec3e79 | C# | luckyzwei/SuperPunchMan | /RobbersRace/Assets/Scripts/LevelBuildUtilities.cs | 2.6875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LevelBuildUtilities : MonoBehaviour
{
int RowNumber; int ColumnNumber;
public bool upperLeft=true, upperRight=true, lowerLeft=true, lowerRight=true;
int numberOfMissingTiles;
private List<Vector2> emptyFloorTil... |
d5fddd9d2ee32e5714366f2d12fc9979d205bb0f | C# | xinyuanZhuang/OrcaTestCI | /Orca2/Services/EventAggregator.cs | 2.734375 | 3 | using Microsoft.Extensions.Logging;
using Orca.Database;
using Orca.Entities;
using Orca.Tools;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Orca.Services
{
public class EventAggregator : IEventAggregator
{
private readonly ISharepointMan... |
4c155c976a94a8565e75a87f93135d72979414dd | C# | LibbaLawrence/azure-sdk-tools | /tools/test-proxy/Azure.Sdk.Tools.TestProxy/Sanitizers/HeaderRegexSanitizer.cs | 2.703125 | 3 | using Azure.Sdk.Tools.TestProxy.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace Azure.Sdk.Tools.TestProxy.Sanitizers
{
/// <summary>
/// This sanitizer operates on a RecordSession entry ... |
78db2bbd008e82d944c5721ddfe0200739fabba3 | C# | tomerpq/All-Projects-Of-Tomer-Paz | /Desktop(C# XAML) Project/ass2/Src/FlightSimulator/Model/Commands.cs | 3.125 | 3 | using System.Net.Sockets;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FlightSimulator.Model
{
internal class Commands
{
private TcpClient client;
#region singelton
private static Commands m_Instance;
... |
ec3b28a25204d28b616e944d056a4da6034a47a9 | C# | JorgeFlorido/ShoppingCart | /ShoppingCart.Data/Repository/ProductRepository.cs | 2.625 | 3 | using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
namespace ShoppingCart.Data
{
public class ProductRepository : DatabaseContext
{
public IEnumerable<Products> GetAll()
{
return Set<Products>();
}
public Products Get(int id)
{
... |
92fc5e9b3434c90e021ee0c5b5bccf5fc7c2303c | C# | akrois22/EntityFrameworkCore2.1Migrations-04 | /3-Domain/Festify.Domain.Plan/Presenter.cs | 2.53125 | 3 | using System.Collections.Generic;
namespace Festify.Domain.Plan
{
public class Presenter
{
private List<Talk> _talks = new List<Talk>();
public int PresenterId { get; private set; }
public IEnumerable<Talk> Talks => _talks;
public Talk NewTalk()
{
var tal... |
ea43266c238e3059cf2d717eefae64e12c1db77b | C# | StingMcRay/anno-designer | /AnnoDesigner/Helper/CoordinateHelper.cs | 3.203125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using AnnoDesigner.Core.Models;
using AnnoDesigner.Models;
namespace AnnoDesigner.Helper
{
public class CoordinateHelper : ICoordinateHelper
{
/// <summary>
... |
6d635dd7b70ca027d0e721fd5930e035bbdc1bf4 | C# | shendongnian/download4 | /first_version_download2/294983-24093894-66798544-3.cs | 2.671875 | 3 | const string MyFileName = "myExcelFile.xls";
string execPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase);
var filePath = Path.Combine(execPath, MyFileName);
Microsoft.Office.Interop.Excel.Application app = new Application();
Microsoft.Office.Interop.Excel.Workbook book = app.Wo... |
48d26e1a3a0155ee89069ceee42d8e1b5161c054 | C# | SiroccoHub/MediumProxy | /src/MediumProxy/MediumProxyExtentions.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using MediumProxy.Model;
namespace MediumProxy
{
public static class MediumProxyExtentions
{
private static readonly Regex RegexFirstImageUrl = new Regex("<... |
2e32c406974e667de7b90b3f696785b51991ab70 | C# | shendongnian/download4 | /latest_version_download2/131620-26353323-75499553-4.cs | 3.359375 | 3 | public List<Player> GetSpectators(Hashset<Player> playersInGame, Coordinate coord)
{
var playersInRange = new List<Player>();
// iterate through each player.
foreach (var p in playersInGame)
{
// check if the tile the player is sitting on is in range of radius given.
if (... |
c7b13566a22c7bb3fd8fd12456d9a5bca825f0ea | C# | danikf/tik4net | /tik4net.objects/TikListMerge.cs | 2.71875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Text;
namespace tik4net.Objects
{
/// <summary>
/// Provides support to merge actual state on mikrotik (list of entities) with expected state (list of entities).
/// Prov... |
e4a7d02d88463d0dbe9f53b2cf9bdedebf42c62b | C# | juliebishopphotos/GoldBadgeChallenges | /02_Claims/ClaimsRepo.cs | 3.28125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _02_Claims
{
public class ClaimsRepo
{
private Queue<Claims> _claimsDirectory = new Queue<Claims>();
public bool AddNewClaim(Claims input)
{
int s... |
372112e82251841827e606380d84774c649f59bb | C# | SandyGlantz/Test | /Defaults/34b_Casino/34-mega-Challenge/valueTester.aspx.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace ValuesTest
{
public partial class Default : System.Web.UI.Page
{
int startBalance, totalCalc, newBalance;
protected void Page_Load(object sende... |
24d295f8ad9d70f0aea3c6c3460b79dd59f6f52d | C# | merche-o/FINFA | /Assets/Scripts/PlayerController.cs | 2.59375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : MonoBehaviour {
public float moveSpeed = 1;
private Animator anim;
private bool isMoving;
private Vector2 lastMove;
// Use this for initialization
void Start () {
anim = GetComponent<Animator> ();
... |
d561ec7e6c60df39240b7bceb6d730b576ddb73a | C# | revam/dotnet-shoko.shokofin | /Shokofin/Utils/TextUtil.cs | 2.953125 | 3 | using Shokofin.API.Models;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace Shokofin.Utils
{
public class Text
{
/// <summary>
/// Determines the language to construct the title in.
/// </summary>
public enum... |
9016e9720050aa8a5c116b030f250d2f92486e70 | C# | skywalkeryin/Play-with-Data-Structures | /C#/DS_Graph/WeightedGraph/WeightedDenseGraph.cs | 3.671875 | 4 | using System;
using System.Collections.Generic;
using System.Text;
namespace DS_Graph.WeightedGraph
{
// 稠密图 邻接表
public class WeightedDenseGraph<Weight> : IWeightedGraph<Weight> where Weight : struct, IComparable<Weight>
{
private int n;
private int m;
private bool directed;
... |
86fa62a56c28f7af1634aa615082ebc07f02867d | C# | LittleLeah/EksamenMVC | /MVC API KALD/Controllers/HomeController.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MVC_API_KALD.Models;
using System.Threading.Tasks;
using System.Net.Http;
using System.Net.Http.Headers;
using Newtonsoft.Json.Linq;
namespace MVC_API_KALD.Controllers
{
public class HomeController : C... |
cc0e68bc893d005d4d0e6e1de05fc7ec51ef8883 | C# | aguua/asp-test | /WebApplicationxD/WebApplicationxDTest/ModelsTests/BookModelTest.cs | 2.625 | 3 | using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using System;
using System.Collections.Generic;
using System.Text;
using WebApplicationxD.Models;
namespace WebApplicationxDTest.ModelsTests
{
[TestClass]
public class BookModelTest
{
[TestMethod]
public void Validate_Book_No... |
c69e19d6b050cbdd826aa2a4824f90fc581193d1 | C# | mlaga97/Wanderer | /Assets/Scripts/Taggable.cs | 2.65625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Taggable : MonoBehaviour {
public enum TagType {
Controllable,
Attackable,
Walkable,
Unwalkable,
Mineable,
Cutable,
Collectable,
Talkable,
Questable,
Tradeable,
Interactable,
Tr... |
6f8a97204b2daa5f9bb4663ecf66727ddfb13da7 | C# | dannysy/algos | /Deck/Brackets/BracketParser.cs | 3.609375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
namespace Brackets
{
public static class BracketParser
{
public static bool IsleftBracket(char bracket)
{
return '(' == bracket || '[' == bracket || '{' == bracket;
}
public static char ReverseBrack... |
99bd9d131b196669a3d87bba7ac5886b7d479837 | C# | Ivan1910/Battleship | /Model/squareTerminator.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Vsite.Oom.Battleship.Model
{
public class squareTerminator : ISquareTerminator
{
public squareTerminator(int rows,int columns)
{
this.rows = rows;
... |
8ab57ece932ef011cd034424755213660ed34036 | C# | AlexAAguila/Hard-Breath | /Hard Breath Project/Assets/AlexAssets/AlexScripts/PotConditions.cs | 2.671875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PotConditions : MonoBehaviour
{
//I made this code myself
//This code is designed so that conditions need to be met in order to leave the room
//The bottles are the only assets that have triggers so if both trigger... |
dd3d285dd73d51965b0925ec359cdf0a2410a86d | C# | kahanu/CondorXE | /Src/Condor.Tests/CoreTests.cs | 2.546875 | 3 | using System;
using System.Linq;
using NUnit.Framework;
using Condor.Core;
namespace Condor.Tests
{
[TestFixture]
public class CoreTests
{
[Test]
public void pluralizer_factory_test()
{
// Arrange
string tableName = "aspnet_Applications";
strin... |
949abfd10fd9d129b197523d50e707ebe178be82 | C# | LesterYehGood/FtxSynchroRestApi | /FtxRestSynchro/Rest/Data/AbstractRestData.cs | 2.734375 | 3 | using System;
namespace FtxRestSynchro.Rest.Data
{
public abstract class AbstractRestData
{
public string Error { get; protected set; }
public int ErrorCode { get; protected set; }
public bool HasError => ErrorCode > 0;
protected AbstractRestData(int errorCode)
{
... |
af3640bca298eda79c2646620fbf422db2ef41e2 | C# | AngleSharp/AngleSharp | /src/AngleSharp/Css/IStylingService.cs | 2.65625 | 3 | namespace AngleSharp.Css
{
using AngleSharp.Dom;
using AngleSharp.Io;
using System;
using System.Threading;
using System.Threading.Tasks;
/// <summary>
/// Defines the API of an available engine for computing the stylesheet.
/// </summary>
public interface IStylingService
{
... |
c542e508106d64da30e14ee6ff627df15ab872ff | C# | Ansible2/Programming-Practice-Problems | /HackerRank Problems/HackerRank Easy Problems CS/Projects/Grading Students/Program.cs | 3.234375 | 3 | using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
using System.Text.RegularExpression... |
52ed68874237ff78a75a44487f3ec51b806aa5bb | C# | Artery/Portfolio | /HotKeySystem/HotKeySystem example/HotKeySystem/HelperClasses/HotKeyConfig.cs | 2.609375 | 3 | using System;
namespace HotKeySystem_example.HotKeySystem
{
//Initializer-class for HotKeys
public class HotKeyConfig
{
public Type CommandType { get; set; }
public string Description { get; set; }
public string hotkeyGestureString { get; set; }
public HotKeyConfig(Type co... |
33f8363284cb19788bdeffdb0c6172cf9ce93369 | C# | forki/Nap | /src/Nap/Configuration/Base/ISerializersConfig.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using Nap.Serializers.Base;
namespace Nap.Configuration
{
/// <summary>
/// Represents a collection of serializers that can have additional serializers added.
/// </summary>
public interface ISerializersConfig : ICollection<ISerializerConfig>
{
... |
14f94ef2e58486e056ba5ae19e75a4775eb68f35 | C# | KrolKamil/Shooter | /Assets/scripts/GameController.cs | 2.578125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class GameController : MonoBehaviour
{
private int gainedPoints = 0;
public Text boosses;
// Start is called before the first frame update
void Start()
{
... |
b909063ee51ea56a4d4c3541cfa860e577f519dc | C# | 1904-apr22-net/thomas-project1 | /Project1_CigarShop/CigarShop.DataAccess/Mapper.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using CigarShop.Library.Models;
namespace CigarShop.DataAccess
{
public static class Mapper
{
public static Library.Models.Manufacturer Map(Entities.Manufacturer manufacturer) => new Library.Models.Manufacturer
... |
31cde8ec23829240e0cda6f33928b2965fbcf970 | C# | RuiAAPereira/FormacaoDGR | /FormacaoDGR/Areas/Identity/Services/AppUserRoleService.cs | 2.53125 | 3 | using FormacaoDGR.Areas.Identity.Models;
using FormacaoDGR.Data;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace FormacaoDGR.Areas.Identity.Services
{
public interface IAppUserRoleService
{
Task<IList<ApplicationUserRole... |
476135fef87fe3c9a0e6fca194dff67e5d6ff578 | C# | vendethiel/retina | /Retina/Retina/Stages/ReplaceStage.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Retina.Replace;
namespace Retina.Stages
{
public class ReplaceStage : RegexStage
{
string ReplacementString { get; set; }
... |
bd791cd0b88622bcecdb5dedb0d7aa0f384ae261 | C# | sawdyk/SoftlearnV1 | /SoftLearnV1/Repositories/ReportDashboardRepo.cs | 2.640625 | 3 | using Microsoft.EntityFrameworkCore;
using SoftLearnV1.Helpers;
using SoftLearnV1.InterfaceRepositories;
using SoftLearnV1.ResponseModels;
using SoftLearnV1.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SoftLearnV1.Repositories
{
public class... |
748d027e797f7a2e13a64e3d10fb18c878b4dce1 | C# | Patplays852/ProjectEuler | /ProblemSolver/ProblemSolver/src/Problem004.cs | 3.390625 | 3 | /*
Largest palindrome product
Problem 4
A palindromic number reads the same both ways.The largest palindrome made from the product of two 2 - digit numbers is 9009 = 91 × 99.
Find the largest palindrome made from the product of two 3 - digit numbers.
*/
using System;
using System.Collections.Generic;
using System.Lin... |
a3a27f4f33d69f005b11702962817a0f30cd0f32 | C# | excelexpress/WPF_CreateElement_GH | /Classes/CreateXMLShape.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Reflection;
using sp = ExcelExpress.ComplexShape.SectionProperties;
using task = ExcelExpress.ComplexShape.ExcelTasks;
namespace Create... |
d388c495febe2a680ea22f7e678fb3722fd7aadc | C# | livianegrini/EplayersMVC | /Controllers/LoginController.cs | 2.75 | 3 | using System.Collections.Generic;
using EPlayersMVC.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace EplayersMVC.Controllers
{
[Route("Login")]
public class LoginController : Controller
{
// TempData é para receber coisas curtas e temporárias
[TempData]
... |
dd115185fccd4e589abd976adb9d7eef6b17dd86 | C# | smellyriver/tank-inspector-pro | /src/Smellyriver.TankInspector.Core/TankInspector.Pro/Data/Entities/Camouflage.cs | 2.515625 | 3 | using System;
using System.Linq;
namespace Smellyriver.TankInspector.Pro.Data.Entities
{
public class Camouflage : XQueryableWrapper
{
private static CamouflageKind ParseCamouflageKind(string kind)
{
switch(kind)
{
case "summer" :
ret... |
6082387aec9843fbf51149c58767f79557f06b39 | C# | TanBinh1601/BtapCSharp | /NguyenTanBinh/ModelEF/DAO/HangSXDao.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ModelEF.Model;
using PagedList;
namespace ModelEF.DAO
{
public class HangSXDao
{
private NguyenTanBinhContext db;
public HangSXDao()
{
db = new NguyenTa... |
44a9351dc546dae72bd9082273a9da46fcba1e1f | C# | aplavin/olympchecker.gui | /Sources/CompilersManager.cs | 2.9375 | 3 |
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Nini.Config;
namespace olympchecker_gui
{
static class CompilersManager
{
private static readonly string fileName = Path.Combine(Directory.GetCurrentDirectory(), "compilers.ini");
public static List<Com... |
f4cbf3c0c0b8a5ba1544918d63796d42b01cdfe0 | C# | dsharlet/ComputerAlgebra | /ComputerAlgebra/Transform/LinearTransform.cs | 3.234375 | 3 | using System.Collections.Generic;
using System.Linq;
namespace ComputerAlgebra
{
/// <summary>
/// Base class for a linear transform operation.
/// </summary>
public abstract class LinearTransform : VisitorTransform
{
/// <summary>
/// Check if x is a constant for this transform.
... |
7ab5aab3a6eb52ae429913ed42a1517761ef4b05 | C# | jambake/csharp-exercises | /WorkingWithStrings/Program.cs | 3.890625 | 4 | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace WorkingWithStrings
{
public class Program
{
public static void Main(string[] args)
{
// string myString = "Escape a \"character\" with a back-slash!";
... |
72bdd5572acd997aabd4bbc7b29b9b46344b54e0 | C# | anastasiiazhyla/Gifting | /Gifting.Core/Utils/Extensions/DictionaryExtensions.cs | 3.234375 | 3 | using System.Collections.Generic;
namespace Gifting.Core.Utils.Extensions
{
/// <summary>
/// Provides extensions for dictionary manipulations
/// </summary>
public static class DictionaryExtensions
{
/// <summary>
/// Get value of dictonary kay and returns null if value is not found.
/// </summary>
... |
78c4bae97b34eb2b4c017306e6f424867bc74637 | C# | Soinou/Warmer | /Warmer/Localization/FrenchLocale.cs | 2.59375 | 3 | using System.Collections.Generic;
namespace Warmer.Localization
{
/// <summary>
/// Represents the french locale
/// </summary>
internal class FrenchLocale : LocaleBase
{
/// <inheritdoc />
protected override void Load(IDictionary<string, string> strings)
{
stri... |
1caeeecf0c94293db9f8ab62bcf41e63512710e1 | C# | Arifdamar/BlogProject | /ArifOmer.BlogApp.Business/Concrete/CategoryManager.cs | 2.609375 | 3 | using System.Collections.Generic;
using System.Threading.Tasks;
using ArifOmer.BlogApp.Business.Abstract;
using ArifOmer.BlogApp.DataAccess.Abstract;
using ArifOmer.BlogApp.DTO.DTOs.CategoryBlogDtos;
using ArifOmer.BlogApp.Entities.Concrete;
namespace ArifOmer.BlogApp.Business.Concrete
{
public class CategoryMana... |
71dfe403e8e471cfccbe82a13b10f3e9dd464031 | C# | rodolpholl/bakerymanager | /BakeryManager.InfraEstrutura.Helpers/Mvc/UploadControlExtention.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;
namespace BakeryManager.InfraEstrutura.Helpers.Mvc
{
public static class UploadControlExtention
{
public static MvcHtmlString UploadControl(string Nome, string swf... |
1223a8eb544a4e1c93fff0cd666ac037c930ec93 | C# | Fraektsvin/Group6System | /Database/DatabaseTier/Repository/CustomerRepository.cs | 3.015625 | 3 | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using DatabaseTier.Models;
using DatabaseTier.Persistence;
using Microsoft.EntityFrameworkCore;
namespace DatabaseTier.Repository
{
public class CustomerRepository:IRepository<Customer>
{
private readonly CloudContext _conte... |
71dcc13e9b061458a0f4fcbfc78846cc47d1f952 | C# | metrogo10/Final-Project-Oop | /FinalProject/FinalProject/Engines/RandomGenerator.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FinalProject.Engines
{
public static class RandomGenerator
{
public static Character GenerateCharacter(Character template)
{
Character returnValue;
List<Attribute> attributes = new... |
20cd3208582da031697036354f1b1455b05af5f9 | C# | Iamsdl/Kepler-Tasks | /20Ex/ex14.cs | 3.390625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _20Ex
{
public static class ex14
{
public class Customer
{
public Customer(string name)
{
Name = name;
}
... |
55a5011ee13a2dac9ba6c0946856f5d0b9caa7b7 | C# | colhountech/SoftwareArchitect.AspNet5 | /Demos/02-AspNet5WebApi/After/src/HelloWebApi/GreetingsRepository.cs | 3.078125 | 3 | using System.Collections.Generic;
using System.Threading.Tasks;
namespace HelloWebApi
{
public class GreetingsRepository : IGreetingsRepository
{
private readonly List<string> _greetings = new List<string>
{
"Hello", "Howdy", "Aloha", "Yo", "Ciao"
};
public async Ta... |
a861a9c5079b183697eded9e46776ea246afd415 | C# | nrkn/NrknLib | /Console/Demos/ConsoleDemo/Program.cs | 2.84375 | 3 | using System;
using System.Globalization;
using NrknLib.ConsoleView;
using NrknLib.ConsoleView.Demo;
using NrknLib.Geometry;
using NrknLib.Geometry.Extensions;
namespace ConsoleDemo {
class Program {
static void Main( string[] args )
{
var console = new SystemConsoleView();
//.NET Console... |
a3eaa5d59f0d3928e099fcf08505732fefb0e394 | C# | Sitecore-Hackathon/2019-Team-Mapleton-Hill | /src/Project/Common/code/Providers/BulkMediaProvider.cs | 2.53125 | 3 | using Common.Web.Factories;
using Common.Web.Models;
using System.Collections.Generic;
namespace Common.Web.Providers
{
public class BulkMediaProvider : IBulkMediaProvider
{
/// <summary>
/// Get List of Image items to be saved in the Media Library
/// </summary>
/// <param nam... |
1ca3c8c15ec956292aba50221f9cab422a8b0176 | C# | khawaja-0304/ASSESSS2 | /Controllers/firstController.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ASSESSS2.Models;
using Microsoft.AspNetCore.Mvc;
namespace ASSESSS2.Controllers
{
public class firstController : Controller
{
private RMSContext R = null;
public firstController(RMSContext _R... |
e953d2a0dd6d8bda70e136ec5424cda3ef73d1ec | C# | TecnologiasIntech/DrCash_WPF | /DoctorCashWpf/DoctorCashWpf/Views/Authentication.xaml.cs | 2.65625 | 3 | using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
//using System.Web.Script.Serialization;
using System.IO;
namespace DoctorCashWpf.Views
{
/// <summary>
/// Interaction logic for Authentication.xaml
/// </summary>
///
clas... |
4266704b83ae0ce0219e91a66c6a0095b74cba69 | C# | Plamen-Angelov/OOP | /Exam/CarRacing/Repositories/Models/RacerRepository.cs | 2.671875 | 3 | using CarRacing.Models.Racers.Contracts;
using CarRacing.Repositories.Contracts;
using CarRacing.Utilities.Messages;
using System;
using System.Collections.Generic;
using System.Linq;
namespace CarRacing.Repositories.Models
{
public class RacerRepository : IRepository<IRacer>
{
private List<IRacer> ra... |
f5d53a79a5d406167534b0a130d87ed9f1079caf | C# | JeffHolla/Epam_External2021 | /Task 3/Task_3_3/Task_3_3_1_SuperArray/Program.cs | 3.125 | 3 | using System;
using System.Text;
using System.Threading.Tasks;
/* Задание
* Расширьте массивы чисел методом, производящим действия с каждым конкретным элементом.
* Действие должно передаваться в метод с помощью делегата.
*
* Кроме указанного функционала выше, добавьте методы расширения для поиска:
* - суммы все... |
631709ff0e6ab10eb5402a71eab378306714cdc1 | C# | ClintSu/DesignPattern | /DesignPattern.Weather.ObserverPattern/Program.cs | 2.890625 | 3 | using DesignPattern.Weather.ObserverPattern.DisplayElements;
using System;
namespace DesignPattern.Weather.ObserverPattern
{
internal class Program
{
private static void Main(string[] args)
{
WeatherData weatherData = new WeatherData(); //建立WeatherData对象
CurrentConditi... |
98941cd8d0a0d20c479994b9c333630ef2f17efd | C# | shendongnian/download4 | /code4/689485-16571134-40679947-4.cs | 3.078125 | 3 | //Create the connection
using(SqlDbConnection connection = new SqlDbConnection("your_connection_string"))
{
//Create the Command
using(SqlDbCommand command = new SqlDbCommand(query))
{
//Set up the properties of the command and the parameters
command.CommandType = CommandT... |
6bfe47f13593abd17faf1bf477daccdc4c466a6a | C# | MiroslavKisov/Software-University | /CSharp Fundamentals/CSharp OOP Basics/DefiningClassesExercise/OpinionPoll/StartUp.cs | 3.5 | 4 | using System;
public class StartUp
{
public static void Main()
{
Family family = new Family();
int N = int.Parse(Console.ReadLine());
for (int i = 0; i < N; i++)
{
string command = Console.ReadLine();
var commandArgs = command
.Split(new ... |
a5e79b3b9f2b98072c41e21d3d41e36d6726974f | C# | sufzoli/suf-electronics-motor-driver | /SW/Serial Logger/MotorCalibrationLogger/Program.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.IO.Ports;
using MotorCalibrationLogger.Properties;
namespace MotorCalibrationLogger
{
class Program
{
static void Main(string[] args)
{
... |
2d148bfc72bc64f9156bd66f44127067bfd6b53e | C# | VictorT22844/DorsetOOP | /DorsetOOP/Views/Administrator/Teachers/AddTeacherView.xaml.cs | 2.640625 | 3 | using DorsetOOP.Models;
using DorsetOOP.Models.Users;
using DorsetOOP.ViewModels;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System... |
7d26551076644a85e6ccea335e18ae2a8a18172d | C# | Luarkenbb/SDP2019 | /SDP2019/SDP2019/Dialog/ReportChart.cs | 2.59375 | 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 SDP2019.Dialog
{
public partial class ReportChart : Form
{
LinkedList<string> ... |
9f324e41f1594238d110fad7be7641f6b30bb729 | C# | N-ickJones/Archive | /Sql/DatabasePopulation/SQLInterface.cs | 3.5 | 4 | using System;
using System.Collections.Generic;
using MySql.Data.MySqlClient;
using System.Linq;
using System.Data;
namespace DatabasePopulation
{
public class SQLInterface
{
// You may need to change "port" in the string below to reflect the port you used in the initial setup.
string connSt... |
c589d36cf06d0b6525bb1d6cebd12055afc2d25a | C# | nsmotritski/AutomationTraining | /AutomationTraining/AutomationTraining/TutByLoginTest.cs | 2.84375 | 3 | using NUnit.Framework;
using OpenQA.Selenium;
using System;
using System.Threading;
namespace AutomationTraining
{
/*
* From Task 20:
* Complete 2 task:
* 1. Create test 1, which goes to https://www.tut.by/,
* login with correct credentials (Username – seleniumtests@tut.by,
* Password –... |
029f0b2bdff5a15aecff7bc0eece15dc6bc8f7a7 | C# | mtszpater/Authentication | /WWW/WWW/WWW/Models/Perm.cs | 2.71875 | 3 | using System;
namespace Registering
{
public class Perm
{
static class Perms
{
public const int Admin = 1;
public const int User = 0;
}
public User ReturnObjectWithPerm(User user){
if (user.returnUserPermId() == Perms.User) {
return user;
}
User user_temp = null;
if (user.r... |
a83093a3a50b3028714a4f26304c016bf1de4428 | C# | nholopoff/Ten-Day-Report-Automation | /source/repos/CapstoneProject/CapstoneProject/Form1.cs | 2.859375 | 3 |
/* TODO
* DataSource to pull in information from spreadsheet
* Professor selection handled by listview
* LAST NAME, FIRST NAME, ...
* Course output handled by either ListView or DataGrid depending on how much information is needed
* agree on a design template
* form goals of application
* when selected, outpu... |
d2d6b5eaa13c2b159af7e4d182ec58dfa4a260f9 | C# | tdochev/TelerikAcademy | /Homeworks/CSharp-Part-2-2015/Arrays/SubsetWithSum/SubsetWithSumS.cs | 3.625 | 4 | //Problem 16.* Subset with sum S
//We are given an array of integers and a number S.
//Write a program to find if there exists a subset of the elements of the array that has a sum S.
//Example:
//input array S result
//2, 1, 2, 4, 3, 5, 2, 6 14 yes
using System;
class SubsetWithSumS
{
static void Main()
... |
71749b638ba1524c6c93e6b7e8ebd0509b3f9270 | C# | abeob1/sg-ae-suki | /1. Source/ai-sski/Suki/Xml/DocumentXML.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Web;
using System.Text;
using System.Xml;
using System.Data;
namespace Suki
{
public class DocumentXML
{
public String ToXMLStringFromDS(String ObjType,DataSet ds)
{
... |
2f6247490566dafcf46835d19a4d5050bb061caa | C# | shendongnian/download4 | /code11/1965320-59823289-213299028-2.cs | 2.75 | 3 | public Task<T> DoSomeWorkAsync()
{
TaskCompletionSource<T> completionSource = new TaskCompletionSource<T>();
SomeBackgroundWorker worker = new SomeBackgroundWorker();
worker.OnWorkComplete += workComplete;
worker.DoSomeWorkInABackgroundThread();
return completionSource.Ta... |
309a6835e3e7284cd8b8146f1ea19f12ade2c825 | C# | onero/VideoApp | /VideoAppBLL/Converters/GenreConverter.cs | 2.5625 | 3 | using VideoAppBLL.BusinessObjects;
using VideoAppDAL.Entities;
namespace VideoAppBLL.Converters
{
public class GenreConverter : IConverter<Genre, GenreBO>
{
public Genre Convert(GenreBO entity)
{
if (entity == null) return null;
return new Genre()
{
... |
8df33a106d7180a072e45c71ea7dafe4d120576f | C# | Sepp1324/OctoRepository | /OctoAwesome/OctoAwesome/FunctionalBlock.cs | 2.78125 | 3 | using engenious;
using OctoAwesome.Components;
namespace OctoAwesome
{
/// <summary>
/// Base-Class for Functional Blocks
/// </summary>
public abstract class FunctionalBlock : ComponentContainer<IFunctionalBlockComponent>
{
/// <summary>
/// Interaction with an <see cref="... |