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 |
|---|---|---|---|---|---|---|
addb351d32366916b45b2d164d3133d026a78bb0 | C# | TalipSalihoglu/ZSozluk | /ZSözlük/Models/ViewModel/ChangePasswordModel.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace ZSözlük.Models.ViewModel
{
public class ChangePasswordModel
{
[Required]
[DataType(DataType.Password),Display(Name ="Kullanılan şifre")]
... |
9b55280a59983ac1c27748a5ca69bd4a11e2a9b8 | C# | georgi-yanakiev/Telerik-Academy | /C# Part I Homework/03.OperatorsExpressionsStatements/BitExtraction/BitExtraction.cs | 4.03125 | 4 | // 11. Write an expression that extracts from a given integer i
// the value of a given bit number b. Example: i=5; b=2 -> value=1.
using System;
class BitExtraction
{
static void Main(string[] args)
{
Console.Title = "Bit Extraction";
Console.Write("Enter an integer: ");
int i = int... |
8716ad2d3aca442aa72302ce7740d029aa8541d9 | C# | thieugiakk-hhp/Lab03-03 | /Models/ProductOrderContextDB.cs | 2.59375 | 3 | using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Linq;
namespace Lab03_03.Models
{
public partial class ProductOrderContextDB : DbContext
{
public ProductOrderContextDB()
: base("name=ProductOrderContextDB")
{
}
... |
7e7d02a359ca07072d37ac28b4dc15ab5820c9a7 | C# | APUGames/oeyj | /game230/Platformer/Assets/Enemies/Assets/Scripts/EnemyScripts/EnemyScript_2.cs | 2.671875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyScript_2 : MonoBehaviour {
/// <summary>
/// This script controls "EnemyType_2"
/// </summary>
public float VerticalSpeed; // variables you can change in the inspector
public float Horizon... |
752041f917b0444cb4b5e974d15016d9876f08cd | C# | haldia721607/EmployeeManagmentCore | /EmployeeManagment/Models/MocEmployeeRepository.cs | 3.3125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace EmployeeManagment.Models
{
public class MocEmployeeRepository
{
private List<Employee> _employeeList;
public MocEmployeeRepository()
{
this._employeeList = new List<E... |
f77f6476bd5f1cc02770d240c8ab4f329e819631 | C# | 15831944/Luthier | /Luthier.Geometry/Nurbs/BSplineCurve.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Luthier.Geometry.Nurbs
{
public class BSplineCurve
{
private List<Point2D> points;
private Knot knot;
public BSplineCurve(List<Point2D> points, Knot knot)
... |
5322ef8924a3c76ccbd392f28f5aab4e1915c0d8 | C# | vulasau/home-manager-wp | /HomeManager/Services/TileService.cs | 2.671875 | 3 | using HomeManager.DataAccess.Interfaces;
using HomeManager.Entities;
using HomeManager.Services.Interfaces;
using Microsoft.Phone.Shell;
using System.Collections.Generic;
using System.Linq;
namespace HomeManager.Services
{
public class TileService: ITileService
{
private IRepository<OperationCurrency>... |
a69fca8c72fcca6b7bc3ca293cb78bc9157a59f4 | C# | albegomez/branchbyabstraction | /WFTest.Bussines/Bussines/Persons.Bussines.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BranchAbstraction.Data;
using System.Linq;
using System.Data.Linq;
namespace BranchAbstraction.Bussines
{
public class PersonsBussines : IPersonsBussines
{
public List<Person> GetP... |
133cc3953da0a291eb3c5fd9f65ace9f7cb6c918 | C# | Luxgnite/Narration-Paradoxale | /Assets/Scripts/Message System/MessageManager.cs | 2.71875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MessageManager : MonoBehaviour
{
public static MessageManager _instance;
public Canvas messageCanvas;
public Message messagePrefab;
public Message actualMessage;
private GameObject played;
private voi... |
dce8531d478d5c52b18345e31ece23fedb441f6e | C# | gizzmo123456/Simple-Unity-Node-Editor | /Editor/Helpers/SaveLoadFile.cs | 2.78125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Helpers
{
[System.Serializable]
public class SaveLoadFile
{
public string path;
public string fileName;
public string fileExtension;
string FullFileName => string.Format( "{0}{1}.{2}", path, fileName, fileExtension );... |
fbc6bb2d56e2a1450dcafd8da42ed6d261b7752c | C# | muhammedsalimp/mvc-series | /Part1/GettingStarted/Controllers/BooksController.cs | 2.75 | 3 | using BookStore.Models;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
namespace BookStore.Controllers
{
public class BooksController : Controller
{
public IActionResult Index()
{
return View();
}
public IActionResult Details()
... |
d32c6b86dd1f5c5cd1b897e4853840d92f1953bc | C# | PatrickkLiu/AR-Sandbox | /Assets/Script/OrbitCamera.cs | 2.671875 | 3 | using UnityEngine;
public class OrbitCamera : MonoBehaviour
{
// 1: Transform references
private Transform transformCamera; // refering to camera transformation in space
private Transform transformPivot; // reference to the pivot object
// 2: Camera Pivot Transformations, these two values will driv... |
1b25dccf16d86ed2b0b13c1c874b0e9279dbd0c9 | C# | kugushev/net-core-ecosystem | /2018.2/module22-entityframework/test/Samples.EfCore/Samples.EfCore/LoggerFactory.cs | 2.703125 | 3 | using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
namespace Samples.EfCore
{
class LoggerFactory : ILoggerFactory
{
public void AddProvider(ILoggerProvider provider)
{
}
public ILogger CreateLogger... |
51df68b77ac25c429cb187539dd999f5e7f48bf3 | C# | Hippocrates/gravitymania | /gravitymania/console/ConsoleDispatcher.cs | 2.984375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace gravitymania.console
{
public class ConsoleDispatcher
{
private List<ConsoleExecutor> Dispatchers;
public ConsoleDispatcher()
{
Dispatchers = new List<ConsoleExecutor>();
... |
89513d39a4d15dee505cd0325b586c4839b7fd61 | C# | DmitriyDN/Calendar | /Bs.Calendar.Mvc/Services/TeamService.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using Bs.Calendar.Core;
using Bs.Calendar.DataAccess;
using Bs.Calendar.Models;
using Bs.Calendar.Mvc.ViewModels.Teams;
using Bs.Calendar.Mvc.ViewModels.Users;
using Bs.Calendar.Rules;
namespace Bs.Calendar.Mvc.Services
{
... |
e187b06cf3706435558d3ac75795252ca742b7cb | C# | rguryanov/Dmp.DbEngineLaucher | /src/Dmp.DbEngineLaucher/LockManager/SingleGlobalInstance.cs | 2.96875 | 3 | using System;
using System.Threading;
namespace Dmp.DbEngineLaucher.LockManager
{
/// <summary>
/// single instance based on mutex
/// can throw TimeoutException
/// </summary>
public class SingleGlobalInstance : IDisposable
{
public bool HasHandle = false;
Mutex _mutex;
private void InitMutex(string nam... |
5af12c4a86fd4d87ae98cdfc47d2f76bfed393b1 | C# | GeorgGreat/Kovshov_Aletdinov_Lab4 | /CGLab4/Lab4/AffineMatrix.cs | 3.3125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
namespace CGLab6
{
public class AffineMatrix
{
public List<List<float>> Data { get; private set; }
public int Rows { get; private set; }
public int ... |
9e837279485804b57f390261c87cf5e2451cd42d | C# | deced/CyberLife | /CyberLife/WorldContent/Place.cs | 3.6875 | 4 | using System.Collections.Generic;
using System;
using System.Linq;
namespace CyberLife
{
/// <summary>
/// Представляет собой способ,
/// с помощью которого класс Place описывает пространство
/// </summary>
public enum PlaceType
{
/// <summary>
/// Описание с помощью задания м... |
c62fc7871bd7c8f35927f7f8e5f765313dd68c47 | C# | DenverLacey/RaidOfReason | /Raid of Reason/Assets/Scripts/Denver/Behaviour Tree/Behaviour.cs | 2.796875 | 3 | /*
* Author: Denver
* Description: Abstract Behaviour class that all behaviours will derive from and also
* encapsulates Result enum
*/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// Abstract base class for all Behaviours
/// </summary>
public abs... |
0a5d6b2b4b66d3f58e191c8fd32514b730d741c6 | C# | ozgeengin/CodilityAnswers | /FrogJmp.cs | 3.09375 | 3 | using System;
namespace CodilityAnswers
{
internal class FrogJmp
{
public int solution(int X, int Y, int D)
{
if (X == Y)
{
return 0;
}
var distance = Y - X;
if (distance < D)
{
return 1;
... |
7ebe15671894102a4d81926d5d77741f797138c6 | C# | victormatheus7/Localiza | /ScriptConverter/Program.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
namespace ScriptConverter
{
static class Program
{
static string _inputPathArchitecture = "input_architecture.txt";
static string _outputPathArchitecture = "output_architec... |
db8cc8e0435df87fd6b15a139997db6533e99dac | C# | axzxs2001/Asp.NetCoreExperiment | /Asp.NetCoreExperiment/ELSA/APIDemo/Controllers/HomeController.cs | 2.671875 | 3 | using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace APIDemo.Controllers
{
[ApiController]
[Route("[controller]")]
public class HomeController : ControllerBase
{
private r... |
9ad95a6f44a88635cad069d14c0124db132a3f43 | C# | MartinGIgnatov/TextEditor | /TextEditorMVC/TextEditorMVC/Models/ChangeForPassword.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace TextEditorMVC.Models
{
public class ChangeForPassword
{
[Required]
[DataType(DataType.Password)]
[MinLength(8, ErrorMessage = "Passwo... |
4cc9c32a2a625ce052c0e4f3ae3c7d46eda2a433 | C# | kayasthanetra7/Unit_Tests | /TestNinja.UnitTests/Fundamentals/DemeritPointsCalculatorTests.cs | 2.984375 | 3 | using NUnit.Framework;
using System;
namespace TestNinja.Fundamentals
{
[TestFixture]
public class DemeritPointsCalculatorTests
{
[Test]
[TestCase(-10)]
[TestCase(400)]
public void DemeritPointsCalculator_SpeedIsLessThanZeroOrMoreThan300_ThrowsArgumentOutOfRangeException(int sp... |
e6057eb4ca1f3b4c87f8d61a4ceee7c8f5720332 | C# | simonlaroche/openwrap | /src/OpenWrap/Commands/Cli/Parser/InputParser.cs | 2.703125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OpenWrap.Commands.Cli.Parser
{
public static class InputParser
{
const char DBL_QUOTE = '"';
const char ESCAPE = '`';
const char SINGLE_QUOTE = '\'';
enum ParseState
... |
b8fa98bfa8cc6376c5dacc526aaf540b98b651b2 | C# | Hydehome3/TestTask | /UnitTestApp.Tests/RegularExpressionTest.cs | 2.953125 | 3 | using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
namespace UnitTestApp.Tests
{
[TestFixture]
class RegularExpressionTest
{
[Test]
public void Regular_Expression ()
{
//Arrange
str... |
0d0bb7847ad133478eac7c0e69e9eb46affbaea9 | C# | rprochazka/ScreenScrapping | /ScreenScrapping.Engine/IEngineManager.cs | 2.609375 | 3 | using System.Collections.Generic;
using ScreenScrapping.Engine.Dtos;
namespace ScreenScrapping.Engine
{
public interface IEngineManager
{
/// <summary>
/// get list of urls on a given (first) page (e.g. links to detail page from the master page) and the following ones
/// in a ... |
db10e31d16d3e462c3677edae99e6300eb0782d7 | C# | Kjelloo/PetShop | /CrashCourse.PetShop.Core/IServices/IPetService.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using CrashCourse.PetShop.Core.Filtering;
using CrashCourse.PetShop.Core.Models;
namespace CrashCourse.PetShop.Core.IServices
{
public interface IPetService
{
Pet New(string name, PetType type, DateTime birthDate, DateTime soldDate, string color, double ... |
df27b606ef948b4b933a4f308025561b1b25c06c | C# | Anil1111/CarSets | /CarSets/Program.cs | 3.421875 | 3 | using System;
using System.Collections.Generic;
namespace CarSets
{
class Program
{
static void Main(string[] args)
{
HashSet<string> Showroom = new HashSet<string>();
Showroom.Add("Toyota");
Showroom.Add("Nissan");
Showroom.Add("Volvo");
... |
0385baf18e30f2c21554458229dba88f16347ef1 | C# | autumn009/TanoCSharpSamples | /Chap2/関係演算子3/関係演算子3/Program.cs | 2.71875 | 3 | using System;
class Program
{
static void Main(string[] args)
{
string a = new string('a', 2);
string b = "aa";
Console.WriteLine(a);
Console.WriteLine(b);
Console.WriteLine(a == b);
Console.WriteLine(a != b);
}
}
|
a407bc5541fdec5747ff5661006f0f3beb4e8316 | C# | robotraconteur/robotraconteur | /test/net/RobotRaconteurNETTest/RRAssert.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RobotRaconteur;
using System.IO;
using System.Threading.Tasks;
using System.Runtime.CompilerServices;
namespace RobotRaconteurNETTest
{
static class RRAssert
{
public static void AreEqual<T>(T a, T b, [CallerFi... |
2b1ba2098a9bdf04c409cdbc3ebb6846901c6fba | C# | gonzaloleg/Repo1 | /Cadenas_7-14/Numero13/Program.cs | 3.59375 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Numero13
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Ingrese algo:");
string ingreso1 = Console.ReadLine();
... |
de0e77cedafa09a9f87433024e24c44b33761594 | C# | MookieRah/TeamRocket | /DatabaseObjects/Event.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
namespace DatabaseObjects
{
public class Event
{
[Key]
public int Id { get; set; }
public virtual List<EventUser> EventUs... |
36e26eabc81960fd1280da5c22b561bcbc13b756 | C# | stephensmitchell-forks/Linqpad-tools | /LINQPad Queries/Experiment/Test IO txt to Desktop.linq | 2.84375 | 3 | <Query Kind="Program" />
void Main()
{
Action act = () => {
var names = MyUtils.ReadTxtFromDesktop("john.txt");
//Si no hago la llamada a 'ToList()', se dispara una IO exception ()
//IOException: The process cannot access the file 'C:\Users\tcordara\Desktop\john.txt' because it is being used by another process.... |
0f4a935250888b680d4156276771ede2e592ebc0 | C# | Rihoj/CST-117-Exercise-7 | /CST-117-Exercise-7/Class1.cs | 3.328125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CST_117_Exercise_7
{
public class ExerciseSeven
{
public void showSum(int firstNum, int secondNum) { }
public double averageFiveDoubles(double firstDouble, double seco... |
a4ade0edae03d2badbf8d6406aae68480e13c34e | C# | DobryakK555/testTask | /TestTask/Pages/Result.cshtml.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace TestTask
{
public class ResultModel : PageModel
{
private readonly IMongoDbHelper _mongoDbHelper;
public string... |
ccf16be8fb2deb5e45206f444be87a1bf000f277 | C# | psanjel/Design-Pattern-Samples | /DesignPatternsDemo/DesignPatternsDemo/CreationalDesignPattern/Singleton/SingletonDP.cs | 3.796875 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DesignPatternsDemo.CreationalDesignPattern.Singleton
{
public sealed class SingletonDP
{
private static int _counter = 0;
private static SingletonDP _singletonInstance... |
6868d1dccde37a1d988ab4b69d20e065fba4a1d3 | C# | wendelad/RecSys1 | /WindowsFormsApplication1/WindowsFormsApplication1/Form1.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
/* cria uma classe de pre processamento vai receber 3 parametros , o arquivo princip... |
99313f5c8ac2b31a088427c44e327065c9ad0516 | C# | 2kingmartians/Astron-End | /Astron End/Assets/AT SCRIPTS/PopupText.cs | 2.53125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class PopupText : MonoBehaviour {
#region Singleton
public static PopupText instance;
private void Awake()
{
instance = this;
}
#endregion
public GameObject popupTextPrefab;
Tr... |
874ec715071a6a799a6f079ec123969d14edd5ce | C# | alecrisan/AllMarkt | /AllMarkt/Tools/TokenGenerator.cs | 2.53125 | 3 | using AllMarkt.ViewModels;
using Microsoft.IdentityModel.Tokens;
using System;
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using System.Text;
namespace AllMarkt.Tools
{
public class TokenGenerator : ITokenGenerator
{
public string Generate(AppSettings _appSettings, UserTokenDa... |
09189d315598c616f6041396c05c437eb2de54ad | C# | lanicon/PdfLibCore | /src/ExampleApp/Program.cs | 2.8125 | 3 | using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net;
using PdfLibCore;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Formats.Bmp;
using SixLabors.ImageSharp.Formats.Jpeg;
using SixLabors.ImageSharp.Processing;
namespace ExampleApp
{
class Program
{
sta... |
aa4a352ee6cb6d6cc27107ef4bf5a502dceb698e | C# | computools/dot-net-code-sample | /llllllll.lllllll.Threading/WorkItemEvent.cs | 3.203125 | 3 | using System;
namespace *********.**********.Threading
{
/// <summary>
/// Represents the method that will handle the events associated with an <see cref="IWorkItem"/>.
/// </summary>
/// <param name="sender">
/// The source of the event.
/// </param>
/// <param name="e">
/// A... |
93628d868ad89ebc6a131533589f618aa4ec8761 | C# | Grand-Axe/Sasoma | /Sasoma.Core/Microdata/Core/VerySimpleCacheObj.cs | 2.984375 | 3 | using System;
using System.Linq;
using System.Text;
using System.Web;
using System.Collections.Generic;
using Sasoma.Microdata.Interfaces;
namespace Sasoma.Microdata
{
/// <summary>
/// A very simple class to manage web very simple caching.
/// </summary>
public class VerySimpleCacheObj : ICache
... |
8be7bfd15e768937ff807c1c70427ce12d09be98 | C# | orm-group/Folke.Elm | /src/Folke.Elm/Mapping/SelectAttribute.cs | 2.53125 | 3 | using System;
namespace Folke.Elm.Mapping
{
/// <summary>
/// Place this attribute on a IEnumerable to specify options when doing a select
/// </summary>
[System.AttributeUsage(AttributeTargets.Property, AllowMultiple=true)]
public class SelectAttribute : Attribute
{
/// <summary>
... |
c055f63f70d8913ba0a94837f0892e537adbff72 | C# | SiteView/UDT-Core-Interface | /udtCSharp/udtCSharp/Receiver/ReceiverLossListEntry.cs | 2.84375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using udtCSharp.Common;
namespace udtCSharp.Receiver
{
/// <summary>
/// an entry in the {@link ReceiverLossList}
/// </summary>
public class ReceiverLossListEntry
{
private l... |
61f15dd701840f7aef038e5e598506626be0d044 | C# | andreaak/cs | /CSTest/CSTest/04_Class/07_Inheritance/Setup/DerivedClass.cs | 3.140625 | 3 |
// Наследование.
using System.Diagnostics;
namespace CSTest._04_Class._07_Inheritance.Setup
{
class DerivedClass : BaseClass
{
public new int field3;
public int derivedField;
public int field4;
public int field5;
// Конструктор по умолчанию.
public DerivedCl... |
f191915538b7c04b3b5bc4d04f71d6a97fa5e05c | C# | RobertWhip/VR-Study-Demo | /Assets/Scripts/AudioTiming.cs | 2.625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class AudioElement {
public AudioClip audio;
public float timing;
}
[RequireComponent(typeof(AudioSource))]
public class AudioTiming : MonoBehaviour {
public AudioElement[] audioElems;
private AudioSour... |
ad2bd9d4dbdc753886229eebaf7132fe83caee84 | C# | benitazz/AlcmSolutions | /DurandalAuth.Domain/Models/Mapping/helpdesk_rolesMap.cs | 2.53125 | 3 | using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
namespace DurandalAuth.Domain.Models.Mapping
{
public class helpdesk_rolesMap : EntityTypeConfiguration<helpdesk_roles>
{
public helpdesk_rolesMap()
{
// Primary Key
this.Has... |
69c60cc4906428fd8029d34622e18c02442b2fd8 | C# | Balobba/Moon-Man | /Assets/Scripts/BossBulletController.cs | 2.53125 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BossBulletController : MonoBehaviour //Controlls the projectiles/bullets shot by the boss
{
private Rigidbody2D rbody;
public float speed;
Vector2 direction;
Vector2 bulletDirection;
public int bulletDama... |
c095eff94e82cba63219369363ef3a1377e02003 | C# | amith-za/HttpGateway | /src/Http.Gateway.Tests/RequestHeadersTests.cs | 2.53125 | 3 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Http.Gateway.Configuration;
namespace Http.Gateway.Tests
{
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[TestClass]
public class RequestHeadersTests
{
[TestMethod]
public void ConstructSuccessfully()
... |
14bcf8d9d8902cad5189afed79f8afbcd24d5dd5 | C# | Delnar/PetProjects | /GameLibraryLib/DisplaySurface.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace GameLibraryLib
{
public abstract class DisplaySurface
{
public int ScreenWidth { get; set; } = 0;
public int ScreenHeight { get; set; } = 0;
public int PixelWidth { get; set; } = 0;
public int PixelHe... |
b485df2595c48c09af67b03eff5c765ecea5c257 | C# | nenadsikmvn/ProveraZnanja | /Program.cs | 3.40625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProveraZnanja
{
class Program
{
static void Main(string[] args)
{
#region BubbleSort
////bubble sort
//var nekiNiz = new int[] { 4, ... |
5f44e3c242cdf5ece6e3db1e13e3699f1475d523 | C# | shendongnian/download4 | /code10/1852539-54957207-192754150-2.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Xml;
using System.Xml.Linq;
namespace ConsoleApplication1
{
class Program
{
const string PATH = @"c:\temp\codes";
static void ... |
d9e10e1da2b3687700a5e2250f8c229597038b82 | C# | Yonom/CupCake | /CupCake.Core/Events/EventManager.cs | 2.875 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace CupCake.Core.Events
{
public class EventManager : IEnumerable<EventManager.IBinding>, IDisposable
{
private readonly List<IBinding> _bindings = new List<IBinding>();
private readonly object _... |
07bdf8d4b10dff625f7626d64f821842023e53f9 | C# | mwilliamson-firefly/minesweeper2 | /Minesweeper2/Program.cs | 2.921875 | 3 | using System;
namespace Minesweeper2
{
class Program
{
static void Main(string[] args)
{
var grid = new Grid(9, 9);
Console.Write(GridRenderer.RenderGrid(grid));
var coordinatesToSweep = CoordinateReader.Read(Console.ReadLine());
var sweepedGri... |
af94c621f51a514a669f405e16620ca5ebc7630d | C# | HitachiinKaoru/OnBreak-3 | /BibliotecaClases/ModalidadServicio.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ConexionBD;
namespace BibliotecaClases
{
public class ModalidadServicio
{
private OnBreak3Entities bdd = new OnBreak3Entities(); //Conexion BD
public string IdModalidad { ... |
d1ab13387c226f58cb25f9580f298a00bafcdf77 | C# | 3liHzm/3liHzm-Online-Store | /Shop.Application/Cart/AddToCart.cs | 2.703125 | 3 | using Shop.Domain.Infrastructure;
using Shop.Domain.Models;
using System.Threading.Tasks;
namespace Shop.Application.Cart
{
[Service]
public class AddToCart
{
private readonly ISessionManager _sessionManager;
private readonly IStockManager _stockManager;
public AddToCart(ISession... |
645e0a07b53c8acef063cdb89b897dcec3d48dd0 | C# | JasonUnik/SummerGUI | /Forms/ComboBox/ComboBoxBase.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using System.Drawing;
using OpenTK;
using OpenTK.Input;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL;
using KS.Foundation;
nam... |
82e6c81221af4f539bc8137d00ec1898ceb1455a | C# | prepare/deveeldb | /src/deveeldb/Deveel.Data.Sql/RawTableInfo.cs | 2.53125 | 3 | //
// Copyright 2010-2015 Deveel
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applica... |
6c5110ad2f65a17151719e6c7de41f703df0df3f | C# | Brylex/c-wzorce-projektowe-steven-john-metsker | /lib/Filters/SimpleStreamWriter.cs | 3.015625 | 3 | using System.IO;
namespace Filters
{
/// <summary>
/// Klasa dostarcza wersj klasy StreamWriter implementujc ISimpleWriter. Instancje
/// tej klasy mog by uywane w konstruktorach klas potomnych OozinozFilter.
/// SimpleStreamWriter dziedziczy z klasy StreamWriter metody Write() wymagane przez
/// interfejs ISimple... |
1a53a1546b7eed526b1e579ce0638c7f1b2d141b | C# | playhere/DianpingTool | /DianpingTool/CombinationTool.cs | 3.078125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Facet.Combinatorics;
namespace DianpingTool
{
public static class CombinationTool
{
public static IEnumerable<List<List<decimal>>> Assignments(List<List<int>> solutions, List<decimal> prices)
{
... |
b140b54c2a7dd6e90d0e894a98cf06672b3d6b14 | C# | haihong81/code-samples | /Named Optional Arguments/BasicDemo/PropertyDemo/PropertiesDemo.cs | 3.984375 | 4 | using System;
namespace Samples
{
public partial class PropertiesDemo
{
public static void PropertiesAssign()
{
Console.WriteLine("Simple Properties");
// 创建新的 Person 对象:
PersonP person = new PersonP();
// 打印出与该对象关联的姓名和年龄:
Console.W... |
929bc00c4097973d3e433f3d9dd4e3a0f82b6b24 | C# | jugR0jones/libHammer | /libHammer/Hashing/IShaHash.cs | 3.015625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace libHammer.Hashing
{
/// <summary>
/// Contract for implementing hash functions based on the SHA family of hash algorithms.
/// SHA is a family of one-way cryptographic algorithms.... |
8d05353606521b1e75192dab0abbd836aeef4de1 | C# | EliPedro/PadroesEstruturais | /PadroesEstruturais/Facade/Models/PedidoFacade.cs | 2.515625 | 3 | namespace Facade.Models
{
public class PedidoFacade
{
private readonly Pedido _pedido;
public PedidoFacade(Pedido pedido)
{
this._pedido = pedido;
}
public bool RegistraPedido()
{
if (!_pedido.Estoque.VerificarSeDisponivel(_pedido)) retur... |
63ed11b9604b0a0b5d63b6dea7fcbfbd84ac430f | C# | hanxu11580/My_Unity_Kit | /Unity_Kit/Assets/XhO_OKit/RunTime/DataStruct/LinkedList/XhO_OKitLinkedListRange.cs | 2.75 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Runtime.InteropServices;
namespace XhO_OKit.DataStruct
{
/// <summary>
/// 链表范围(本质就是一段链表)
/// </summary>
/// <typeparam name="T"></typeparam>
[StructLayout(LayoutKind.Auto)]
public struct ... |
b17906c07d7f844ca3b633ee7952d9c166e6244b | C# | wortelus/anobit_pre | /Blocks/RootTransaction.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace AnoBIT_Wallet.Blocks {
public class RootTransaction : Transaction {
public const byte RootTransactionType = 1;
public const byte RootTra... |
da489db52da1aae8493c88532e9b12b27adeb3f0 | C# | ErikMatuska/EncryptedChatApp | /EncryptedChatApp.Console/Options/SendOptions.cs | 2.578125 | 3 | using CommandLine;
namespace EncryptedChatApp.Console
{
[Verb("send", HelpText = "Send message to recipient, specify RECiPIENT and MESSAGE")]
public class SendOptions : Options
{
[Option('t', "to", HelpText = "Username of the Recipient", Required = true)]
public string To { get; set; }
... |
2a7a9b11324d800c6f21b2db65ddb469170256b9 | C# | betocastillo86/spelling | /src/Spelling.Mobile/Spelling.Mobile/Domain/AnswerModel.cs | 2.890625 | 3 | //-----------------------------------------------------------------------
// <copyright file="AnswerModel.cs" company="Gabriel Castillo">
// Company copyright tag.
// </copyright>
//-----------------------------------------------------------------------
namespace Spelling.Mobile.Domain
{
/// <summary>
/// ... |
563fcefe113dead12fff65477e5c1392f9b54bfa | C# | beulah444/SplitStringNumberSort | /SplitStringNumberSort/Program.cs | 3.375 | 3 | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Collections.ObjectModel;
class Program
{
static void Main()
{
Console.WriteLine("enter your string");
string strUserInput1 = Console.ReadLine();
strin... |
61ab350e15a4043b220e6a08270961ecd22e1e97 | C# | bubdm/jerrycurl-1 | /src/Shared/Jerrycurl.Common/CodeAnalysis/CSharp.cs | 3.21875 | 3 | using System;
using System.Globalization;
using System.Linq;
using System.Text;
namespace Jerrycurl.CodeAnalysis
{
internal static class CSharp
{
public static string Identifier(string s)
{
if (string.IsNullOrEmpty(s))
throw new ArgumentException("Identifier cannot ... |
c21c67dc7cbdb77c0a4b976af4de7fa6938b20c9 | C# | karthicbz/GeographicalCodeHelper | /PlaceToLatLangValues.cs | 2.609375 | 3 | using System.Net;
using Newtonsoft.Json;
using Android.App;
using Android.Widget;
namespace GeoCoder
{
class PlaceToLatLangValues
{
public string PlaceName { get; set; }
public double Latitude { get; set; }
public double Longitude { get; set; }
WebClient client ... |
9e50f2631205647c277ca5614603758ac2d71157 | C# | Vladimir-Pavelka/Chess | /ChessBoard/Tests/ChessBoardTests.cs | 2.90625 | 3 | namespace Tests
{
using ChessBoard;
using FluentAssertions;
using System.Linq;
using Xunit;
public class ChessBoardTests
{
[Fact]
public void WhenNewGameIsInitialized_ThenPiecesShouldBeSetupCorrectly()
{
var board = Board.NewGame();
board[0, 0].S... |
c5d4aad49a19268e95a2bd0f20f21e14afdcfd0e | C# | Jikrebello/Brick-Breaker-2-Player-Pong | /Form1.cs | 2.59375 | 3 | using System.Drawing;
using System.Windows.Forms;
namespace Brick_Breaker_2
{
public partial class FrmBrickBreaker : Form
{
GameEngine pongGame;
public FrmBrickBreaker()
{
InitializeComponent();
pongGame = new GameEngine(PnlDisplayArea.DisplayRectangle);
... |
329848b7ee80d1932b15a52500fcedad1a330eaf | C# | sedc-codecademy/skwd9-net-05-oopcsharp | /G2/Class07 - Inheritance, Enums, Class Library/Code/Demo/SecondPartDomain/Classes/Person.cs | 3.09375 | 3 | using SecondPartDomain.Enums;
using System;
using System.Collections.Generic;
using System.Text;
namespace SecondPartDomain.Classes
{
public class Person
{
private int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public int Age { g... |
b722691661fa7350fbc9e30a07f58857cbd43285 | C# | jani-jarvinen-itt/CodeAcademyKymenlaakso2020 | /DotNet/Rajapinta-esimerkki.cs | 2.546875 | 3 | public class Auto : IKäynnistettävä
{
public int Huippunopeus { get; set; }
public void Käynnistä()
{
//..
}
}
public class Työkone : IKäynnistettävä
{
public void Käynnistä()
{
//..
}
}
public interface IKäynnistettävä
{
void Käynnistä();
}
IKäynnistettävä kone = new Auto();
IKäynnis... |
b2dcf812c2d6d4f3145a5481a3e295ff3c6cb884 | C# | ChaseHuegel/astar-pathfinding | /Swordfish/Navigation/Grid.cs | 2.859375 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Swordfish.Navigation
{
public class Grid
{
private Cell[,] grid;
private int size;
public Grid(int size)
{
this.size = size;
grid = new Cell[size, size];
for (int x = 0; x < size; x++) {... |
c8668f33a74c47bf3d222e2270bcba8bd679e63f | C# | ListGrid/PuRuanTraining | /Training/CS/SimpleOrder3Layer/DataAccess/OrderLineData.cs | 2.84375 | 3 | using System;
using System.Data;
namespace KS201008.DataAccess
{
public class OrderLineData
{
private int m_orderID;
private int m_lineID;
private string m_product;
private decimal m_price;
private int m_quantity;
private decimal m_lineTotal;
public Ord... |
375b632c7567d6a5dc3cbf0266432a7e751c3624 | C# | KowalskiVevo/NeuroLab2.0 | /Backup/NeuronInformation.cs | 2.71875 | 3 | 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;
namespace Neuron
{
public partial class NeuronInformation : Form
{
Neuron neuronInformation;
Drawer drawer;
... |
f02b96eb3a1526b48dce143692590c81784ca62c | C# | Marjani/ServiceLayer | /MyApp.Framework/Extensions/JsonExtensions.cs | 2.90625 | 3 | using System;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
namespace MyApp.Framework.Extensions
{
public static class JsonExtensions
{
public static string StringArray... |
bcce1ac7eb6ce9125800836f54c04c019259a021 | C# | sjohag/MallFormular | /MallFormulär/DTO/Data.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace MallFormulär.DTO
{
public class Bas
{
[Required, StringLength(5, MinimumLength = 1)]
public string BasText { get; set; }
[Range(10, 20... |
f5bf335cb69b5bab357470ae7cdbf34054af6dca | C# | tsrancsik/Data-Science-In-.NET-Core | /StockAnalysisConsoleApp - p3/PlotSeries.cs | 3.078125 | 3 | using System;
using System.Reflection;
using System.Linq;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using ScottPlot;
namespace StockAnalysis
{
public class PlotSeries
{
public static void PlotOHLC(List<StockHistoryDay> stockHistory, string folderName, string fileName)
... |
23902d7cfea224b55009bfc538818519b4260913 | C# | connellsharp/Firestorm | /src/Firestorm.Engine.Additives/Readers/BasicFieldCollator.cs | 2.828125 | 3 | using System;
using System.Linq.Expressions;
using System.Reflection;
using Firestorm.Engine.Fields;
using JetBrains.Annotations;
namespace Firestorm.Engine.Additives.Readers
{
/// <summary>
/// A collator that enables basic filtering and sorting using the select expression
/// from an <see cref="IFieldRe... |
ccca9fc326eab07fc885d6787cec2f94da88e6f7 | C# | AnatoliDimitrov/Softuni-Open-Courses | /Algorithms/Algorithms Fundamentals/12_MinimumEditDistance/StartUp.cs | 3.390625 | 3 | namespace _12_MinimumEditDistance
{
using System;
class StartUp
{
private static int[,] matrix;
static void Main()
{
var replace = int.Parse(Console.ReadLine());
var insert = int.Parse(Console.ReadLine());
var delete = int.Parse(Console.ReadLine... |
049d3282c471e2bcf9384c5e696a37ed622d80e4 | C# | Nick-T-Hansen/StudentExercisesPart4 | /StudentExercisesPart4/Data/Repository.cs | 3.0625 | 3 | using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Text;
namespace StudentExercisesPart4.Data
{
public class Repository
{
public SqlConnection Connection
{
get
{
string connectionString = "Server=DESKTOP-T1CK9M7\\SQ... |
135afdafcf96ccaff7b742d393cdb9892a5b0483 | C# | Link2510/Btmang | /palindrome/Program.cs | 3.71875 | 4 | using System;
namespace palindrome
{
class Program
{
static bool checkPalindrome(string inputString)
{
int n = inputString.Length / 2;
int m = inputString.Length - 1;
for (int i = 0; i <= n; i++)
{
if (inputString[i] != inputStrin... |
b53347e742cb4b36210f219480de1527e440ad4f | C# | allantargino/sql2cdm | /src/Sql2Cdm.Library/Sql/Text/Splitter/SqlAnnotationSplitException.cs | 2.671875 | 3 | using System;
namespace Sql2Cdm.Library.Sql.Text.Splitter
{
public class SqlAnnotationSplitException : Exception
{
public string Annotation { get; }
public SqlAnnotationSplitException(string annotation) : this(annotation, null) { }
public SqlAnnotationSplitException(string annotation... |
fdf4d9c3c05c9153ea48e225d8d80940b0359c35 | C# | RAWeber/Unity | /Game00/Assets/Scripts/New System/Stats/StatTypes/VitalStat.cs | 2.640625 | 3 | using UnityEngine;
using System.Collections;
using System;
[Serializable]
public class VitalStat : LinkableStat {
public event EventHandler OnCurrentValueChange;
private int currentValue;
public int CurrentValue
{
get
{
if (currentValue > TotalStatValue)
{
... |
7a47e36c6a0a371d52d92a99874a0c6c87ea8bb4 | C# | wIksS/SoftuniExcersises | /CSharpFundamentalsMay2021/03.Arrays/StringJoin/Program.cs | 3.5 | 4 | using System;
namespace StringJoin
{
class Program
{
static void Main(string[] args)
{
int[] array = { 1, 2, 3, 4, 5 };
string joined = String.Join(" ", array);
Console.WriteLine(joined);
for (int i = 0; i < array.Length; i++)
{
... |
a3526c8c5027cf70cc10e5687362666bf004f417 | C# | IgorPR0/DoadorSangue | /Program.cs | 3.515625 | 4 | using System;
namespace DoadorSangue
{
class Program
{
static void Main(string[] args)
{
double idade;
Console.ForegroundColor = ConsoleColor.DarkMagenta;
Console.Write("= Doador de Sangue =");
Console.ResetColor();
... |
ee8e36a7708f96566aa1675dcd71b0422b1af0d5 | C# | todd-skelton/EventSourcR | /src/EventSourcR.Abstractions/ITypeMapper.cs | 2.625 | 3 | using System;
namespace EventSourcR
{
/// <summary>
/// Gets a type using a configured name.
/// </summary>
public interface ITypeMapper
{
Type GetEventType(string name);
string GetEventName<T>();
string GetEventName(Type type);
void MapEvent<T>(string name);
... |
e2dab9a812d07e99e94beda425cd28de91fd3f42 | C# | gueretamartin/SISTEMA_ACADEMIA | /Laboratorios/Unidad 3/Academia/Academia/formularioLogin.cs | 2.703125 | 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 Entidades;
using Negocio;
namespace Escritorio
{
public partial class formularioLogin : Form
... |
ff60b7090b45ba0ce8a7c4959cc633c4c344fe7c | C# | endink/Chopin | /src/Chopin.Pooling/Impl/DefaultEvictionPolicy.cs | 2.640625 | 3 | // Copyright (c) labijie.com. All rights reserved.
namespace Chopin.Pooling.Impl
{
/// <summary>
/// Provides the default implementation of {@link EvictionPolicy} used by the
/// pools. Objects will be evicted if the following conditions are met:
/// This class is immutable and thread-safe... |
eaa6e020f0a868937eb5d6528527985e9df0632b | C# | wukejiong/EasyPM | /code/EasyPM/Easy.PM.Build/MainForm.cs | 2.625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Easy.PM.Build.Util;
namespace Easy.PM.Build
{
public partial class MainForm :... |
95d154dd4204ce4a6d2113eef241d67a4a7ed046 | C# | Stereotype97/work | /KPI/CourseWorkOOP2/CourseWorkOOP2/Observers/ConsoleObserver.cs | 3.203125 | 3 | using CourseWorkOOP2.Interfaces;
using System;
namespace CourseWorkOOP2.Observers
{
//Класс Спостерігача(Консолі)
class ConsoleObserver : IObserver//Розширення класу за допомогою інтерфейсу
{
//Перевизначення методу інтерфейса
//Пише на екрані консолі Спостерігач: і повідомлення, яке буде ... |
2965eba7ea15073a5c526da6591337d5b842fb0c | C# | Stompyy/comp260-server-1617 | /Server/Dungeon/Dungeon.cs | 2.953125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
namespace Dungeon
{
public class DungeonClass
{
Dictionary<String, Room> roomMap;
// Item instantiation
Item grog = new Item("grog", 0.5f, 4.0f, ... |
af072ad741ca39afc43157ac48452cb6b14af3ab | C# | squahtx/Routecraft | /Routecraft/DataWriter.cs | 3.09375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Routecraft
{
public class DataWriter
{
private List<byte> Buffer = new List<byte>();
public DataWriter()
{
}
public byte[] Bytes
{
get
{
... |
50d0ac43dcf5fe17c0c25e9eac1f6f3bc981a72c | C# | daschen/Overwatch-Script-To-Workshop | /Deltinteger/Deltinteger/Parse/VariableResolve.cs | 2.5625 | 3 | using System;
using System.Linq;
using Deltin.Deltinteger.Compiler;
using Deltin.Deltinteger.Elements;
namespace Deltin.Deltinteger.Parse
{
public class VariableResolve
{
public bool DoesResolveToVariable { get; }
private DocRange NotAVariableRange { get; }
private DocRange VariableRan... |
7493db5afdddffc287fb3b083fc0492217971d70 | C# | shendongnian/download4 | /first_version_download2/479065-43089410-141809955-2.cs | 3.09375 | 3 | public class Entry
{
public Entry(TimeSpan time, double x, double y)
{
Time = time;
X = x;
Y = y;
}
public TimeSpan Time { get; }
public double X { get; }
public double Y { get; }
}
|
345043fda46ff90c3bb96ba966abbb16fd03506c | C# | mechgt/meanmax | /Data/CriticalLineDefinition.cs | 2.703125 | 3 | using System.Xml.Serialization;
using ZoneFiveSoftware.Common.Data.Measurement;
using System;
using System.Drawing;
namespace MeanMax.Data
{
[XmlRootAttribute(ElementName = "CriticalPowerLine", IsNullable = false)]
public class CriticalLineDefinition
{
private Guid id;
public CriticalLine... |
7daf8305c6b410696722e2a2128a524465404585 | C# | rmanley/Dugtrio | /TermProject/public/chatFiles/0.5630Query1.cs | 3.359375 | 3 | using System;
using System.Linq;
class Program
{
static void Main(string[] args)
{
int[] testScores = { 100, 37, 88, 76, 89, 96, 78, 80, 93 , 90 };
var topScores =
from score in testScores
where score >= 90
orderby score descending
select score;... |