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 |
|---|---|---|---|---|---|---|
3a591e9065bac6c4138ba505e2eb0be881c38c38 | C# | PlumpMath/FusionPInvoke | /src/FusionPInvoke/CreateAssemblyCacheItemFlags.cs | 2.546875 | 3 | namespace FusionPInvoke
{
/// <summary>
/// Flags used in <see cref="IAssemblyCache.CreateAssemblyCacheItem"/>.
/// </summary>
public enum CreateAssemblyCacheItemFlags
{
/// <summary>
/// None.
/// </summary>
None = 0,
/// <summary>
/// If the assem... |
e6788eafe2e42743a1e5824a6cc48bc4c41bf9b0 | C# | m2idotnet/CoursSharpGit | /CoursSharp/CoursAdoNetDeconnecte/Program.cs | 3.203125 | 3 | using CoursAdoNet;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
namespace CoursAdoNetDeconnecte
{
class Program
{
static void Main(string[] args)
{
SqlDataAdapter adapter = new SqlDataAdapter("SELECT * FROM personne", Connection.In... |
902b6a6490b13b058f868006f38be10e2d0a640e | C# | wirachai/MirrorFetcher | /TerraFetcher/Services/AppService.cs | 2.859375 | 3 | using Newtonsoft.Json;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using TerraFetcher.Models;
namespace TerraFetcher.Services
{
public class AppService
{
private readonly MirrorService mirrorService;
private readonly LogService logServic... |
2e077ad52855af19915bd2b0bf49aeabdbab690c | C# | supertask/ChainX | /tmp/Example.cs | 2.765625 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
public class Example {
public static Object thisLock = new Object();
public ChainVoxel cv;
public Example() {
this.cv = new ChainVoxel();
}
public static void Main(string[] args) {
V... |
4b88bfa26cb90334409867a86ecdb6d73cb2c311 | C# | andreaolivotto/ValutazioneAlunni | /ValutazioneAlunni/MVVMviewmodels/ExportViewModel.cs | 2.515625 | 3 | using NPOI.XWPF.UserModel;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using ValutazioneAlunni.MVVMmodels;
using ValutazioneAlunni.MVVMutils;
using ValutazioneAlunni.Utilities;
using System.Windows;
usi... |
6bed8acab4d059a57a1ec84861a693e672ca9b9c | C# | felixsoum/hostile-mind | /HM2/Source/Level/RoomTransition.cs | 2.609375 | 3 | using System;
using Microsoft.Xna.Framework;
namespace HostileMind
{
public class RoomTransition
{
public string NextRoom { get; private set; }
public Vector2 NextPlayerPosition { get; private set; }
public bool IsActive { get; private set; }
public RoomTransition()
{
... |
4a3f483de0f24456024fb707e4a99d988ee21ad9 | C# | AntonyBaasan/lsbasi-csharp | /Part9/Interpreter/Var.cs | 2.578125 | 3 | namespace Interpreter
{
public class Var: AST
{
public Token Token { get; }
public string Value { get; }
public Var(Token token)
{
Token = token;
Value = token.Value;
}
}
}
|
56bde09a6d35ccb74aa9f93934c140d6e70146fb | C# | meltaway/csharp | /serialization/Program.cs | 2.859375 | 3 | using System.Reflection.Metadata;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using System.Runtime.Serialization.Json;
class Program {
... |
36e44f20f391af40d44bfdc830f2a48e08a2595f | C# | pobiega/Sniffer | /src/Sniffer/Data/ESIClient.cs | 2.515625 | 3 | using Serilog;
using Sniffer.Data.ESI.Models;
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Net.Http.Json;
using System.Threading.Tasks;
namespace Sniffer.Data
{
public class ESIClient : IESIClient
{
public ESIClient(
ILogger logger,
IHttpC... |
13baca14f5f26558e19eceae8b3eb3572b03a535 | C# | max619/OnScreenKeyboard | /OnScreenKeyboard/Helpers/DebugKeyboardInputContext.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OnScreenKeyboard.Helpers
{
class DebugKeyboardInputContext : IKeyboardInputContext
{
public IKeyboardInputContext TargetContext { get; set; }
... |
dc5ff068ce2893a053a3d6073bdd824fff862403 | C# | shendongnian/download4 | /code8/1336667-36069943-113495476-2.cs | 2.6875 | 3 | foreach (var item in fileDictionary)
{
var tempFileList = new List<string>();
foreach (var file in fileArray)
{
if (!Array.Exists(item.Value, element => element.Contains(file + today)))
{
... |
bd51ee5c191026d509e40cbda19269caa3134faf | C# | pleasenophp/mindi-demo | /Implementations/Human.cs | 2.96875 | 3 | using MinDI;
namespace Custom.Demo.Implementations {
public class Human : ContextObject, IHuman {
[Injection] public ISky sky { get; set; }
[Injection] public ILog log { get; set; }
[Requirement] public string name { get; set; }
public void Act() {
log.LogLine("I will act and will try to touch the sky ri... |
758dd75d0af834b6699471b18febdd9917840929 | C# | ShiroYacha/Planact | /Planact.App/Planact.App/Converters/StringToColorConverter.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Security.Cryptography;
using Windows.Security.Cryptography.Core;
using Windows.Storage.Streams;
using Windows.UI;
using Windows.UI.Xaml.Data;
namespace Planact.App.Converters
{
public ... |
218d5fe14ea435a19c5ed7f6bc7c8e3ae5fb04bc | C# | charlierobson/M6 | /M6/Classes/RawFloatPCMFileConverter.cs | 2.859375 | 3 | using System;
using System.IO;
using ProtoBuf;
namespace M6.Classes
{
public class RawFloatPCMFileConverter : IFileConverter
{
private readonly string _path;
private readonly IFileSystemHelper _fileSystemHelper;
public RawFloatPCMFileConverter(string path, IFileSystemHelper fileSystemH... |
fd9029b4ff9251bd4a077bc8ebf8f120eb8b7c6f | C# | ignatovasashka/FinalExam-Tech-Module | /02OnTheWay/Program.cs | 3.53125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
namespace _02OnTheWay
{
class Program
{
static void Main(string[] args)
{
Dictionary<string, List<string>> storeAndItems = new Dictionary<string, List<string>>();
string[] input = Console.ReadLine().Spl... |
1a7f9356ad7625e8fafc47cc099768cd69723695 | C# | irongut/CarouselView | /Demo/Pages/Bug168.xaml.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using PropertyChanged;
using Xamarin.Forms;
namespace Demo
{
public partial class Bug168 : ContentPage
{
public Bug168()
{
InitializeComponent();
BindingContext = new CarouselPageView... |
070fc95660870ad7a451d021c50951836d315804 | C# | blounty/XB1 | /XboxOne.Core.WP8/Services/TwitterService.cs | 2.578125 | 3 | using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using XboxOne.Core.Models;
namespace XboxOne.Core.WP8.Services
{
public class TwitterService
... |
61b3c1105199704aaecd83c2f3e42508db5d03be | C# | WilliamCopland/optimusprime | /YellowstonePathology.OptimusPrime/HPV1618ResultHandler.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using MySql.Data.MySqlClient;
namespace YellowstonePathology.OptimusPrime
{
public class HPV1618ResultHandler
{
public async Task<object> Invoke(object input)
{
var payload = (IDictionary<string, object>)... |
955652ccf03d558c1f8772d9a6f3ea30f73396fe | C# | Azure/China-Data-Solutions | /Marketing/CRDAnalytics/src/Common/Pipelines/Models/SentenceSentimentResult.cs | 2.609375 | 3 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Azure.ChinaDataSolution.CrdAnalytics.Common.Pipelines.Models
{
using System;
/// <summary>
/// Defines the sentence sentiment result c... |
2439097fc32715c1283bd5f7f36f79b6f730e8d5 | C# | exiton3/AppFactory | /Source/Framework.Domain/Specifications/DateGreaterThanOrEqualSpecificationDecorator.cs | 2.6875 | 3 | using System;
using System.Data.SqlTypes;
using System.Linq.Expressions;
using System.Reflection;
namespace Framework.Domain.Specifications
{
public class DateGreaterThanOrEqualSpecificationDecorator<T> : SpecificationBase<T> where T : class
{
private readonly string _property;
private readonly... |
64fb81e61399027a9f83f04e3463abbfe83ce595 | C# | Vizivul360/TestTask_3 | /Assets/Src/Game/Systems/LookSystem.cs | 2.65625 | 3 | using UnityEngine;
using Ecs.Systems;
using Ecs;
namespace Game
{
public class LookSystem : Executor
{
private Group stayPlayer, stayBots, allBots, player;
public LookSystem(Context context)
{
var moves = new Moves();
stayPlayer = context.GetGroup(new LookSele... |
6ce417cbabdaa7b7ee81d693297d97cdfd514c92 | C# | war-man/movie-recommendations | /MovieRecommendations/MovieRecommendations/Components/CurrentRabbitHole.cs | 2.546875 | 3 | using AutoMapper;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using MovieRecommendations.ViewModels;
using MoviesDataAccessLibrary.Entities;
using MoviesDataAccessLibrary.Repositories;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
namespace MovieRecommendation... |
91dfac8ed5e65dda1960b545cd5b032656e5d7df | C# | brookpatten/MrGibbs | /src/MrGibbs.Models/State.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace MrGibbs.Models
{
/// <summary>
/// the current state of all sensor data and calculated values
/// TODO: refactor this to allow plugins to add/remove things as needed, it's kind of a
/// god class right now
... |
94d29236ff4f848c82b6521582831146cb564c36 | C# | kimsk/RegExpose | /RegExpose.Tests/CompilerTests/AlternationParsingTests.cs | 2.5625 | 3 | using System.Linq;
using NUnit.Framework;
using RegExpose.Nodes.Alternation;
using RegExpose.Nodes.Character;
using RegExpose.Nodes.Parens;
namespace RegExpose.Tests.CompilerTests
{
public class AlternationParsingTests
{
[Test]
public void AnAlternationWithTwoCharacterLiteralChoicesParsesCorre... |
5d2f184f3a56bf2509523eba59491170581c47bb | C# | khoanguyen84/C1020K1 | /APC/Collection/QueueDemo.cs | 3.03125 | 3 | using System;
using System.Collections;
namespace Collection
{
class QueueDemo
{
static void Main(string[] args)
{
Queue q = new Queue();
q.Enqueue(1);
q.Enqueue(2);
q.Enqueue(3);
q.Enqueue(4);
while(q.Count > 0){
... |
7883795e852b640f0dca5f6b31f492c5218247ef | C# | felixlapierre/CostumeCurse | /Assets/Scripts/Combat/TargetSelector.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using UnityEngine;
public enum CombatantType { Enemy, Ally };
public enum SelectorType { Self, All, Number };
public struct TargetSchema
{
public int NumberOfTargets;
public CombatantType CombatantType;
public... |
df9b6bf4cf610b2619a5c068fcaadfb4413d3bd7 | C# | aldundur-Mansour/Project04_Auth_CRUD_ASP.NET | /Backend/Induction/Induction/Repositories/ChapterChunkRepository.cs | 2.875 | 3 | using System.Collections.Generic;
using System.Threading.Tasks;
using Induction.Data;
using Induction.Models;
using Microsoft.EntityFrameworkCore;
namespace Induction.Repositories
{
public class ChapterChunkRepository : IChapterChunkRepository
{
private readonly AppDbContext _context;
... |
69159a3a783f03885cb2bfe83f067b5f2fa0a691 | C# | rcruzeiro/Accounts | /Accounts.Services.Entity/ProfileEntityService.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Accounts.Entities;
using Accounts.Repository;
namespace Accounts.Services.Entity
{
public sealed class ProfileEntityService
{
readonly IProfileRepository _repository;
public Prof... |
8ee010b5eb39b755181bc4d3d700e4b624b1c3c9 | C# | nickky2010/Epam_Gomel_Training_Task_05-Database | /Database/Program.cs | 3.0625 | 3 | using System;
using System.Collections.Generic;
using System.Data.OleDb;
using System.Configuration;
namespace Database
{
class Program
{
static void Main(string[] args)
{
string connectionString = ConfigurationManager.ConnectionStrings["DictionaryAccess"].ConnectionString;
... |
5896d2acba7bd5e096aefd9d484e7144daf4a524 | C# | prince-nto/TenderSystem | /TenderSystem/Configurations/CompanyConfiguration.cs | 2.515625 | 3 |
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using TenderSystem.Models;
namespace TenderSystem.Configurations
{
public class CompanyConfiguration : IEntityTypeConfiguration<Company>
{
public void Configure(EntityTypeBuilder<Company> builder)
{
... |
250447d992167d3149d9de481239cc7a3eb244f4 | C# | konstantin1304/Safe | /WindowsFormsApp2/Form1.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 WindowsFormsApp2
{
public partial class MyForm : Form
{
bool enableClosing = f... |
37cdef5f0d1653dd9b2d9be0767c5dc969376035 | C# | SVemulapalli/resin | /src/Sir.Store/Term.cs | 2.515625 | 3 | using Sir.Store;
using System;
namespace Sir
{
/// <summary>
/// A query term.
/// </summary>
public class Term
{
public IComparable Key { get; private set; }
public AnalyzedString TokenizedString { get; private set; }
public ulong KeyHash { get; private set; }
publ... |
8a253b833b0b7c270fff22dc7678dffceebde69f | C# | atulsagarEngaze/SearchService | /CampusPulse.SearchService.Manager/SearchManager.cs | 2.765625 | 3 | using CampusPulse.CacheManager;
using CampusPulse.Core.Domain;
using CampusPulse.SearchService.Domain.Model;
using System.Collections.Generic;
namespace CampusPulse.SearchService.Manager
{
public class SearchManager :ISearchManager
{
private readonly ICacheManager<Book> cacheManager;
public Se... |
5d98d937a085651c95e9d4e80754b39445b74b31 | C# | GinoCubeddu/NanoEngine | /NanoEngine/Collision/Manager/ICollisionManager.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NanoEngine.ObjectTypes.Assets;
namespace NanoEngine.Collision.Manager
{
public interface ICollisionManager
{
/// <summary>
/// Checks to see if there is a collsion between an asset and a list
//... |
e56c04026548a832b1ec46be64401a7fe9ab325b | C# | romuloalvesbm/projetoapiddd | /ProjetoDDD/Projeto.Domain/Aggregates/Usuarios/Services/PerfilDomainService.cs | 2.59375 | 3 | using Projeto.Domain.Aggregates.Usuarios.Contracts.Repositories;
using Projeto.Domain.Aggregates.Usuarios.Contracts.Services;
using Projeto.Domain.Aggregates.Usuarios.Exceptions;
using Projeto.Domain.Aggregates.Usuarios.Models;
using System;
using System.Collections.Generic;
using System.Text;
namespace Projeto.Domai... |
5c007f5c6ceda278dce3e5cf15773785febd2709 | C# | Ljubo6/SoftUni-1 | /CSharp-Advanced/05-FUNCTIONAL-PROGRAMMING_Exercise/P11.PRFM/PFRM.cs | 3.265625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace P11.PRFM
{
class PFRM
{
static void Main(string[] args)
{
Predicate<string> predicate;
var invitedGuests = Console.ReadLine().Split().ToList();
var filters = new Dictionary<string,... |
b9621c3a6c291712e3734c02f1d834b437e001c6 | C# | OctopusDeploy/Nevermore | /source/Nevermore/Mapping/DocumentMapRegistry.cs | 2.625 | 3 | #nullable enable
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace Nevermore.Mapping
{
public class DocumentMapRegistry : IDocumentMapRegistry
{
readonly IPrimaryKeyHandlerRegistry primaryKeyHandlerRegistry;
... |
c2caf9ef7ee2f04f0d9a5ea4470195d8982d5d77 | C# | bubdm/System.Extensions | /Samples/BasicSample/JsonWriterSample.cs | 3.03125 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Buffers;
using System.Runtime.Serialization;
using System.Linq.Expressions;
using System.Collections;
namespace BasicSample
{
public class JsonWriterSample
{
public static void Run()
{
... |
7e78e4055e7ee4a78a472b225a454baf47ee8b75 | C# | lulzzz/3DpointCloud | /Framework/Rendering/Renderables/BezierPathRenderer.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Magic.Common.Path;
using System.Drawing;
using Magic.Common;
using Magic.Common.Splines;
namespace Magic.Rendering.Renderables
{
public class BezierPathRenderer : IRender
{
IPath currentPath;
public BezierPathRenderer()... |
a633ad3fe6d7eec647e1bb1158593f30b6b13959 | C# | sedc-codecademy/skwd8-06-csharpadv | /g1/Class04/Adv.Class02/Adv.Class02.Structs/Program.cs | 3.90625 | 4 | using System;
namespace Adv.Class03.Structs
{
// For most of our entities that might:
// Use inheritance to create a business logic tree ( Inheritance )
// Use overriding to use a method in different scenarios ( polymorphism )
// That it has more responsibilities than just storing data
// Have members that are a... |
1a0548c6be1c267956d68d2dff4b81cb116f6d32 | C# | bodyquest/SoftwareUniversity-Bulgaria | /Entity Framework Core Oct2019/4.EF Code First/P01_HospitalDatabase/Data/HospitalContext.cs | 2.625 | 3 | namespace P01_HospitalDatabase.Data
{
using Microsoft.EntityFrameworkCore;
using P01_HospitalDatabase.Data.Models;
public class HospitalContext : DbContext
{
public HospitalContext()
{
}
public HospitalContext(DbContextOptions options)
: base(options)
... |
cb5f586df9460c8264a6aa38e8453662b9edb884 | C# | kabessao/Atividade_11_10 | /SemNomeAinda/MainWindow.xaml.cs | 2.8125 | 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.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... |
1b17bf4ddf9a63cdfc38347831a4018524bf0d18 | C# | JamieFletcher92/Year2BiometricSystem | /Temperature_Chart_Display/Temperature Chart/FormRecords.cs | 2.96875 | 3 | //---NAMESPACES---
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml;
namespace Temperature_Chart
{
public partial class FormRecords : Form
{
public Fo... |
7649e8d878570f179d0fddf2652679d53478458c | C# | shaykhullinsergey/Shaykhullin.ObjectOrientedProgramming | /Shaykhullin.Lab4/Shaykhullin.Lab4/Operations/Binary/BinaryDivideOperation.cs | 2.796875 | 3 | namespace Shaykhullin.Operations
{
public class BinaryDivideOperation
: BinaryOperation<double, double>
{
public override double Calculate(double arg1, double arg2)
{
return arg1 / arg2;
}
}
}
|
678d3ea7efb5091e722cff62a1e7d7ee2a33b3ae | C# | Daoting/dt | /Infras/Dt.Xls/Base/ExcelTableBorder.cs | 2.84375 | 3 | #region 文件描述
/******************************************************************************
* 创建: Daoting
* 摘要:
* 日志: 2014-07-01 创建
******************************************************************************/
#endregion
#region 引用命名
using System;
#endregion
namespace Dt.Xls
{
/// <summary>
/// Represent ... |
cf74001d51c18d557f84cef04f582b5d77cb2b56 | C# | ethedy/Curso2016_PTR | /Resoluciones/Ana Laura/ConsoleApplication1/Ejercicio_1.cs | 3.21875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;
namespace ConsoleApplication1
{
public class Ejercicio_1
{
public static void EjecutarEjercicio1()
{
DateTime fecha = DateTime.Today;
... |
af83f4269dc4070d438c51ecd238827e4282566d | C# | stefanandy/VendingMachine | /Persistance/SoldItemRepository.cs | 2.984375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Business;
using Microsoft.EntityFrameworkCore;
namespace Persistance
{
public class SoldItemRepository : ISoldItemRepository
{
private readonly VendingDbContext Context;
p... |
70285238eafcb48dde07a37654f6e4d287be9b6f | C# | cometchuck/spnati | /editor source/SPNATI Character Editor/DataStructures/Definitions.cs | 2.875 | 3 | using Desktop;
using System;
using System.Collections.Generic;
using System.Reflection;
namespace SPNATI_Character_Editor
{
public class Definitions
{
private static Definitions _instance;
public static Definitions Instance
{
get
{
if (_instance == null)
{
_instance = new Definitions();
... |
ca5b3dabecdb7df359b498bbb67cf9034c2ba974 | C# | gsimion/SlimXUnitDb | /Core.Test/BaseFactoryTest.cs | 2.734375 | 3 | using Bogus;
using SlimXUnitDb.Test.Core;
using SlimXUnitDb.Test.Core.Generators;
using System;
using System.Collections.Generic;
using Xunit;
namespace Core.Test
{
public class BaseFactoryTest
{
public static int Counter;
public class SimpleObj
{
public int Hash { get; se... |
a2feda84c56270f799fbcc20e6ff18625f82cdeb | C# | narc0tiq/dotnet-temp | /ConsoleConfigThing/Program.cs | 3.109375 | 3 | using System;
using System.Configuration;
namespace ConsoleConfigThing
{
class Program
{
static Random rand = new Random();
static void Main(string[] args)
{
Console.WriteLine("Your hostname is {0}", System.Net.Dns.GetHostName());
var config = ConfigurationMana... |
3d9ebf91f93dd5c131508cdd383c75f28fb082f5 | C# | PowerDG/DDDgP2018 | /4.6.0/aspnet-core/dgOcelot/MicroDg/queryconsul1/Program.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using Consul;
namespace queryconsul1
{
internal class Program
{
private static void Main(string[] args)
{
Console.WriteLine("Hello World!");
using (ConsulClient consulClient = new ConsulClient(c => c.Add... |
cbdbfc19688ef58b3940cba8692ad5521e4852fa | C# | quimaruanomed/ExerciciVideos_Fase2_y_Fase3 | /ExerciciVideosFase_3/clases/User.cs | 3.03125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
namespace Exercici3VideosFases_3.Clases
{
public class User
{
public string Name { get; set; }
public string Surname { get; set; }
public string Username { get; set; }
public string Password { get; set; }
... |
7efdf3fae9c37c06560c7d8734af83876c8ef4da | C# | HFisher1212/halfisher1212 | /HW6/Counter.cs | 4.15625 | 4 | /** Define a class called Counter whose objects count things.
* An object of this class records a count that is a nonnegative
* integer.Include methods to set the counter to 0, to increase
* the count by 1, and to decrease the count by 1. Be sure that
* no method allows the value of the counter to become negative... |
9e1409362aa2dc8a7030a76e4a04d64be8bb5008 | C# | olekstra/Olekstra.Sdk.LikePharma | /Olekstra.LikePharma.Server.Demo/SampleLikePharmaService.cs | 2.5625 | 3 | namespace Olekstra.LikePharma.Server.Demo
{
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Olekstra.LikePharma.Client;
// <inheritdocs />
public class SampleLikePharmaService : ILi... |
2605e54ba9b015ec1068480a00f14325729f65bf | C# | DashaPavlova/CI | /задача 6 лр5/задача 6 лр5/Program.cs | 3.703125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace задача_6_лр5
{
class Program
{
static StackT<int> Input(int n)
{
StackT<int> tmp = new StackT<int>();
Random rnd = new Random();
for... |
6d428be97e5223df5f5b8aa7503e0346d03cf225 | C# | sarincr/Basics-of-C-Sharp-Programming | /20_ArrayFun/src/main.cs | 3.859375 | 4 | using System;
namespace ArrayApplication {
class MyArray {
double getAverage(int[] arr, int size) {
int i;
double avg;
int sum = 0;
for (i = 0; i < size; ++i) {
sum += arr[i];
}
avg = (double)sum / size;
return avg;
... |
ad826c5e8cb2590f272e099c61fd036f80b869f9 | C# | DouglasWait/Assignments | /FIFO/FIFO/Shortest Job First.cs | 3 | 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 FIFO
{
public partial class Shortest_Job_First : Form
{
public S... |
96ddfb0fa9fd4f83402395a221b621b129975b75 | C# | panncakemahogany/The-Griddle.github.io | /Flooring.UI/Flooring.Data/FlooringIO/OrderRepository.cs | 2.96875 | 3 | using Flooring.Models.Interfaces;
using Flooring.Models;
using System.IO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Flooring.Data.FlooringIO
{
public class OrderRepository : IOrderRepository
{
public List<Order> LoadOr... |
ca09a69c4b3781944a1cd4c83897629e0937cfa5 | C# | jschneiderhan15/oregon-road-83 | /Oregon Road/Oregon Road/Assets/Scripts/HungerManager.cs | 2.921875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
//script that allows the player to change how fast their characters are eating
public class HungerManager : MonoBehaviour
{
//three options for feeding
static Button tiny, meager, full;
void Start(){
... |
f20a8b3ab87277f35ef23d73efdcbf0a9745e3b0 | C# | matt-comeaux/DemoQA_AutomatedUITest | /Page_Object_Models/AlertsFramesWindows/BrowserWindowsPage.cs | 2.640625 | 3 | /*
Name: BrowserWindows.cs
Purpose: Contains the Page Object Model for the browser windows page on www.demoqa.com.
Author: Matthew Comeaux. Github: https://www.github.com/matt-comeaux Linkedin: https://www.linkedin.com/in/matthew-comeaux
Created On: 5/3/2021
First Uploaded To Github On: 5/4/2021
MIT License
... |
e3fc6551986e02118723653a826020a6827f8aa6 | C# | kirkenskorshaer/crm | /SystemInterface/SystemInterface/Mailrelay/Logic/UpdateReport.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SystemInterface.Mailrelay.Logic
{
public class UpdateReport<ReportType>
{
public List<ReportType> Failed = new List<ReportType>();
public List<ReportType> Updated = new List<ReportType>();
public List<ReportType> A... |
b89800d8dfb26657b51091a3ea6effbe90611aec | C# | zhangleipku/Unity-UI-Cookbook-files | /Unity UI Cookbook files/Chapter 02/7 - HealthBar with armor/HealthbarWithArmorScript.cs | 2.890625 | 3 | using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class HealthbarWithArmorScript : MonoBehaviour {
public GameObject[] armor;
private int piecesOfArmor;
private Image healthbarFilling;
public int maxHealth = 100;
private int health;
void Start () {
healthbarFilling = this.G... |
24a12c57c6f6ba97094aa1b195a9c274e483d552 | C# | cr0393/C-Sharp-Drills | /ClassObjectAssignment/ClassObjectAssignment/Program.cs | 4.03125 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ClassObjectAssignment
{
class Number
{
public int firstNumber = 200;
public void Add(int val)
{
Console.WriteLine(firstNumber + val);
}
... |
39dfdc35281ea41db888406981cf57e0642e9b94 | C# | Ren7851/FlutterC | /GUI/FlutterCGUI/FlutterCLib/FlutterCConsole/Nodes/Sizeof.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class Sizeof : NativeFunctionBody
{
public Sizeof()
{
FunctionBodyStringNames fbsn = new FunctionBodyStringNames();
int argNumber = 1;
List<string> l = new List<... |
201f1a391627682b6817c54309f5e3e0c474d4cf | C# | garnhold/CrunchyBox | /CrunchyKitchen/Project/Project.cs | 2.625 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
namespace Crunchy.Kitchen
{
using Dough;
using Noodle;
public abstract class Project<FILE, DIRECTORY, PROJECT>
where FILE : ProjectFile<FILE, DIRECTORY, PROJECT>
where DIRECTORY : ProjectDirectory<FILE, DIRECTORY... |
bb4a8b6fe671dbd9929b602f3915dba848432fea | C# | aceunlonely/fastdfs-client-net | /code/fastdfs-client-net/fastdfs-client-net/fastdfs/Client.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace fastdfs_client_net.fastdfs
{
/// <summary>
/// fastdfs 客户端
/// </summary>
public class Client
{
/// <summary>
/// 根据groupName获取可用的storage节点
/// </summary>
/// <param name="groupName"></param>
/// <returns></... |
981a657795ce53bc74fdcb34df41fc663a78309f | C# | jsmale/dotPlumbing | /src/app/Plumbing.Core/DataAccess/EntityFrameworkDataContext.cs | 2.875 | 3 | using System;
using System.Collections.Generic;
using System.Data.Objects;
using System.Linq;
using System.Reflection;
namespace Plumbing.DataAccess
{
public class EntityFrameworkDataContext : IDataContext
{
readonly ObjectContext context;
readonly IDictionary<Type, PropertyInfo> que... |
dff5700aee2078287bb71305d69fdc75a809834f | C# | dimaserd/Runtasker | /UI.Settings/Settings/Models/AtroposHeaderSettings.cs | 2.84375 | 3 | using System.ComponentModel.DataAnnotations;
using UI.Settings.Entities;
namespace UI.Settings
{
/// <summary>
/// Статический класс настроек шаблона Atropos Responsive
/// </summary>
public static class AtroposHeaderSettings
{
#region Поля
public static int HeaderHeight = 60;
... |
eb1d0d9f07ac782ec99571535041c451d0161b81 | C# | gustavobruder/Curso-CSharp | /A.Logica.Programacao/Aula02/VariaveisEspeciais.cs | 2.875 | 3 | using System;
namespace A.Logica.Programacao.Aula02
{
public class VariaveisEspeciais
{
public static void Executar()
{
char letra = '\u0041';
string nome = "Gustavo";
object obj1 = "Alex Brown";
object obj2 = 4.5F;
Console.WriteLine... |
fc20ca6b4219c113376febad176e61668fcee8a0 | C# | VBonapartov/SoftUni-Studies | /CSharp OOP Advanced/02. SOLID - Exercise/01. Logger/Program.cs | 2.671875 | 3 | namespace _01._Logger
{
using System.Collections.Generic;
using _01._Logger.Controllers;
using _01._Logger.Entities;
using _01._Logger.Factories;
using _01._Logger.Interfaces;
public class Program
{
public static void Main(string[] args)
{
IList<IAppender> appen... |
c95a4f003e3bf76619a7bb8e4e679cf5479debac | C# | OdooBulgaria/ErpNet.FP | /ErpNet.FP.Core/Drivers/BgDatecs/BgDatecsXIslFiscalPrinter.Frame.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ErpNet.FP.Core.Drivers.BgDatecs
{
/// <summary>
/// Fiscal printer using the ISL implementation of Datecs Bulgaria.
/// </summary>
/// <seealso cref="ErpNet.FP.Drivers.BgIslFiscalPrinter" />
public part... |
333e292fd968950b7782140d8d67fb50d0b2342e | C# | OneLuminare/Compiler-Design-Class | /Compiler/NFLanguageCompiler/NFLanguageCompiler/ExprASTNode.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NFLanguageCompiler
{
// Abstract base class for expression type ASTNodes.
//
// Base: ASTNode
public abstract class ExprASTNode : ASTNode
{
#region Constructors
// Default constructor
... |
e161e35c168d7268510e706a1ff50679f2a1fb73 | C# | unibuc-cs/pet-owner-api | /Controllers/TipController.cs | 2.703125 | 3 | using Microsoft.AspNetCore.Mvc;
using PetOwner.Models;
using PetOwner.Repository.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
namespace ... |
2c1e29e1b9ad9c9b9ea08f96b36c1d57969011b6 | C# | PavelAnufriev/- | /7 ZADACHA.cs | 3.59375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections;
using System.Globalization;
namespace _7_zadacha
{
class Program
{
static string Hamming(string text, int degree = 4)//7 800
{
... |
d48242c85b281ecaa920402d369c42b53a2e519e | C# | ePayment/account | /DAL/SqlServer/Errors.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using Account.Common.Entities;
namespace Account.Data.SqlServer
{
public partial class D_Error:SqlServerHelper
{
private Error_Info GenerateObject(DataRow row)
{
Error... |
ffc92342d16d00f0455ca7f5f89f2e488b894ff6 | C# | CommunityToolkit/WindowsCommunityToolkit | /Microsoft.Toolkit.Uwp/Helpers/ObjectStorage/IObjectSerializer.cs | 2.609375 | 3 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
namespace Microsoft.Toolkit.Uwp.Helpers
{
/// <summary>
/// A basic serialization service.
... |
08afd8f35b6f056b77b5084c1bf730d27743b066 | C# | EnsarErayAkkaya/Only-Shield | /Assets/Scripts/Enemy/RangeEnemy.cs | 2.6875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RangeEnemy : EnemyBase
{
Transform target;
public GameObject projectile;
public float shootingDist;
public bool canShoot;
public float timeBetweenShots;
public float projectileDistanceToCenter;
floa... |
49cb5f22d36509c1bef27569160313de3ae8dea2 | C# | tanqinliang/Shopping-Mall | /CoreDemo/DBAccess/DbFactory.cs | 2.875 | 3 | /******************************************************************
* Author :谭清亮
* Date :2017-12-26
* Description :获取数据库对象
******************************************************************/
using System;
namespace DBAccess
{
public class DbFactory
{
/// <summary>
/// 返回数... |
7131991f81e586d1c56ce64d3b5c7e454af776c2 | C# | bogdansimion31/University | /Semester3/Advanced Programming Methods/Labs/StudentsManagementAppC#/StudentsManagementApp/domain/validator/GradeValidator.cs | 3.1875 | 3 | using System;
using StudentsManagementApp.domain.entities;
namespace StudentsManagementApp.domain.validator
{
public class GradeValidator : IValidator<Grade>
{
/// <inheritdoc />
/// <summary>
/// Function to validate a grade
/// </summary>
/// <param name="entity">Grade to be validated</param>
/// <exce... |
4a21a8f1d1610fdbef795a77a3b18709856021ad | C# | martin-chambers/AzureBlobDemo | /AzureBlobDemo/Program.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Auth;
using Microsoft.WindowsAzure.Storage.Blob;
using System.IO;
using System.Configuration;
namespace AzureBlobDemo
{
/... |
9913a1420f8ad9f88bf2436be0bad73cb5b05c2f | C# | go-green/PayRoll | /PayRoll.Core/Tax/TaxBandTwo.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PayRoll.Core.Tax
{
public class TaxBandTwo : TaxBase
{
public TaxBandTwo()
{
this.RuleID = 2;
this.LowerLimit = 18200;
this.UpperLim... |
43bee0296b1bd7243a99e5bf83e76f2d12dee69c | C# | WellFiredDevelopment/WellFired.Direct | /unity/Assets/WellFired/WellFired.Direct/Platform/Uncompiled/Runtime/Sequencer Events/Object/USEnableComponentEvent.cs | 2.53125 | 3 | using UnityEngine;
using System.Collections;
namespace WellFired
{
/// <summary>
/// A custom event that will set a GameObject's specific component enable state at a given time.
/// </summary>
[USequencerFriendlyName("Toggle Component")]
[USequencerEvent("Object/Toggle Component")]
[USequencerEventHideDuration(... |
c0b5b6ff82525237951eea2870ce1fc91a645f00 | C# | eeee386/CrackTheCodingInterview | /Solutions/StacksAndQueues/SetOfStacks.cs | 3.84375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
namespace Solutions.StacksAndQueues
{
public class SetOfStacks<T>
{
private Stack<T> _activeStack = new Stack<T>();
private readonly HashSet<Stack<T>> setOfStacks = new HashSet<Stack<T>>();
private int _activeStackNumber... |
c32096aa2e0b153f843361e137046c880d2179bb | C# | shendongnian/download4 | /code6/974008-24722183-69237063-2.cs | 2.875 | 3 | class Model : INotifyPropertyChanged
{
private int _Name = default(int);
public int Name
{
get { return _Name; }
set
{
SetValue(ref this._Name, value);
}
}
private void SetValue<T>(ref T property, T value, [CallerMemberName]string propertyName = null)... |
f9b47d2b0a2d55814f1840170ea7bf8f8b00e288 | C# | RoseHlahane/UltraManufacturing | /UltraManufacturing/Services/Cryptography.cs | 3.234375 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace UltraManufacturing.Services
{
public class Cryptography
{
public string HashSHA256(string value)
{
var ... |
158dd51edbd9344688f72f49ccd45f92ef47d53e | C# | DokuzEylulCsc/odev2-simgeakosman | /Converter/Converter/Form1.cs | 2.875 | 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 Converter
{
public partial class Form1 : Form
{
public Form1()
{
... |
22304f87031913db90e6532bbb5f515d513dff9c | C# | giacomelli/GeneticSharp | /src/GeneticSharp.Benchmarks/GeneticAlgorithmsBenchmark.cs | 2.765625 | 3 | using System;
using BenchmarkDotNet.Attributes;
using GeneticSharp.Extensions;
namespace GeneticSharp.Benchmarks
{
[Config(typeof(DefaultConfig))]
public class GeneticAlgorithmsBenchmark
{
private const int _minPopulationSize = 50;
private const int _generations = 1000;
private con... |
ebe8b138c038ffdb84c394c2161ddcb7379e0096 | C# | jpumph029/Lab07-Collections | /Lab07_Collections/Classes/Card.cs | 2.984375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace Lab07_Collections.Classes
{
public class Card
{
public Suit suit { get; set; }
public Value value { get; set; }
public enum Suit { Clubs, Diamonds, Heats, Spades}
public enum Value { Ace, Two, Three, ... |
20ab8aa97252c078c0887b45f3d1315a05545a6a | C# | ConfirmitYaroslavlStudents/Students | /2015/Bolshakov/MP3_tager/FolderLib/FolderProcessor.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using Mp3Handler;
namespace FolderLib
{
public class FolderProcessor
{
public FolderProcessor(IFolderHandler folderHandler, IFileHandler fileHandler)
{
_folderHandler = folderHandler;
_lateFileHandler = new LateWriteFileHa... |
e118a85213d1d8901182fdbf5a3ff197c83600ce | C# | Laikos38/SimulacionMontecarlo | /SimulacionMontecarlo/Simulator.cs | 3.015625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SimulacionMontecarlo;
namespace SimulacionMontecarlo
{
class Simulator
{
public IList<StateRow> simulate(int quantity, int from, int maxReservations)
{
Random r... |
fc901c37d086e3bb9ee17c252a966f44f846ebc3 | C# | Hydrofluoric0/Stump | /src/Stump.DofusProtocol.D2OClasses/Tools/Bin/Direction.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Stump.DofusProtocol.D2oClasses.Tools.Bin
{
public enum DirectionEnum
{
INVALID = -1,
EAST = 0,
SOUTH_EAST = 1,
SOUTH = 2,
SOUTH_WEST = 3,
... |
ce9fe719f91190fd94240f0c8f10766b8cad3aaf | C# | MemeKeeper/TableFindBackend | /TableFindBackend/Forms/EditRestaurantForm.cs | 2.6875 | 3 | using BackendlessAPI;
using BackendlessAPI.Async;
using System;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using TableFindBackend.Global_Variables;
using TableFindBackend.Models;
using TableFindBackend.Output;
namespace TableFindBackend.Forms
{
//This form is used to change some of the set... |
f5075c480b1d53e9d4254bbafe1c9e71cec2175c | C# | Alexandros5880/ShortingAlgorithms | /Short/QuiqSort.cs | 3.453125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Short
{
public class QuiqSort
{
private void _swap(ref int xp, ref int yp)
{
int temp = xp;
xp = yp;
yp = temp;
}
... |
423f485699f4170ccdf9f4f85ff8f23094fc6f75 | C# | 8800720273/Task-Parallel | /Thread4.cs | 3.28125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace ThreadingApp
{
public class Wedding
{
public void Venue()
{
for(int i = 0;i < 10;i++)
{
Console.WriteLin... |
0113bb33e18e3839963595da6cf51b8bd7ee43c7 | C# | evgenitsn/CSharp-Entity-ASP-Web-Development | /1.C#-Advanced/05.Regular-Expressions/03.ExtractEmails/ExtractMails.cs | 2.9375 | 3 | using System;
using System.Text.RegularExpressions;
class ExtractMails
{
static void Main()
{
string text = Console.ReadLine();
string pattern = @"(?<=\s|^)([a-z0-9]+(?:[_.-][a-z0-9]+)*@(?:[a-z]+\-?[a-z]+\.)+[a-z]+\-?[a-z]+)\b";
Regex regex = new Regex(pattern);
MatchCollectio... |
927417125ec8219dbe3bcc770f13a2b1d32a8f4c | C# | khmosquera/Smart-Tech-Mintic | /Server/AplicationDbContext.cs | 2.6875 | 3 | using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using PeliculaIISemanaIV.Shared.Entity;
using System;
namespace PeliculaIISemanaIV.Server
{
public class ApplicationDbContext : DbContext
{
/* Cada DbSet es una tabla que crearemos a partir de una entidad */
public DbSet<M... |
4ae4b8fa77d815b5fb54a1eed893360287f6d4fa | C# | Hengle/HelGames.Teaching.EventManager | /HelGames.Teaching.EventManager/IEvent.cs | 3.203125 | 3 | // -----------------------------------------------------------------------
// <copyright file="IEvent.cs" company="Paul Schulze (HelGames)">
// Copyright 2014 Paul Schulze (HelGames). All rights reserved.
// </copyright>
// <author>Paul Schulze</author>
// ----------------------------------------------------------... |
64a6db6d7eba46e469099b022857700cb5d75a78 | C# | shristoff/TelerikAcademy | /C#/PartI/7.Exam-Preparation/11.ShipDamage/ShipDamage.cs | 3.5 | 4 | /*Inside the sea (a standard Cartesian /rectangular/ coordinate system) we are given a ship S
(a rectangle whose sides are parallel to the coordinate axes), a horizontal line H (the horizon) and three catapults,
given as coordinates C1, C2 and C3 that will be used to fire the ship. When the attack starts,
each cata... |
3a6e879757125f7a9e7b1a62114ef7ab4182a572 | C# | cacmis/NETConfLatAm2021 | /NorthWind.Entities/Exceptions/UpdateException.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NorthWind.Entities.Exceptions
{
#nullable disable
public class UpdateException : Exception
{
public IReadOnlyList<string> Entries { get; }
public UpdateException() { }
... |
f97575a402e11b3ba4e4e2c113b14cd49888b42c | C# | shendongnian/download4 | /first_version_download2/497452-45229229-152102484-2.cs | 3.234375 | 3 | string connetionString = null;
SqlConnection cnn ;
SqlCommand cmd ;
string sql = null;
connetionString = "Data Source=ServerName;Initial Catalog=DatabaseName;User ID=UserName;Password=Password";
sql = "Your SQL Statemnt Here";
cnn = new SqlCon... |