max_stars_repo_path stringlengths 3 255 | max_stars_repo_name stringlengths 5 116 | max_stars_count int64 0 107k | id stringlengths 1 7 | content stringlengths 63 1.05M |
|---|---|---|---|---|
TestApplication/PrismExtensions/ScopeContainer.cs | RomanPankin/StreetLights | 0 | 7062852 | <reponame>RomanPankin/StreetLights
using Microsoft.Practices.Unity;
using System;
using System.Collections.Generic;
using System.Web.Http.Dependencies;
namespace TestApplication.PrismExtensions
{
public class ScopeContainer : IDependencyScope
{
private IUnityContainer _container;
protected IUn... |
Data structure/Binary heap/Program.cs | eProw/Console | 0 | 7062853 | <reponame>eProw/Console
using System;
using System.Collections.Generic;
using System.Linq;
namespace Heap
{
public sealed class BinaryMaxHeap : IEnumerable<int>
{
private int[] _items;
public int Size => _items.Length;
public BinaryMaxHeap(int[] array)
{
_items = ... |
D_screenShake.cs | TylerWoodCode/Scripts | 0 | 7062854 | //<NAME>
//https://www.TylerWoodCode.com
//<EMAIL>
//Script for enabling screen shake to be added to the camera object. Modifiable by altering the included parameters.
public class screenShake{
private bool restorexlt = false;
private bool restorexgt = false;
private bool restoreylt = false;
private bool... |
src/AspNetVueSite/Pages/_Layout.cshtml | mrityunjaya-kumar/AspNetCore-Vue-Starter | 3 | 7062855 | <reponame>mrityunjaya-kumar/AspNetCore-Vue-Starter<gh_stars>1-10
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - AspNetVueSite</title>
<link type="text/css" rel="stylesheet" href="//unpk... |
tweetz/tweetz5/Model/MarkupNode.cs | mike-ward/tweetz-desktop | 72 | 7062856 | namespace tweetz5.Model
{
public enum MarkupNodeType
{
Text,
Url,
Mention,
HashTag,
Media
}
public class MarkupNode
{
public MarkupNode(MarkupNodeType markupNodeType, string text)
{
MarkupNodeType = markupNodeType;
... |
RobotCloud.YoloCreatorDataTrain/frmCollection.cs | badpaybad/darknet-yolo-dataset-creator | 0 | 7062857 | <reponame>badpaybad/darknet-yolo-dataset-creator<filename>RobotCloud.YoloCreatorDataTrain/frmCollection.cs
using Newtonsoft.Json;
using RobotCloud.YoloCreatorDataTrain.Extensions;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
usi... |
src/NetStandard/Core/Core/src/Utils/SystemParametersUtils.cs | DawidIzydor/Teronis.DotNet | 0 | 7062858 | <gh_stars>0
namespace Teronis.Utils
{
public static class SystemParametersUtils
{
public static int CalculateKeyboardDelayInterval(int keyboardDelay)
=> (keyboardDelay + 1) * 250;
}
}
|
BBX.Web/usercpcreditsbuy.cs | NewLifeX/BBX | 52 | 7062859 | using System;
using System.Data;
using System.Web;
using BBX.Common;
using BBX.Entity;
using BBX.Forum;
using BBX.Plugin.Payment;
using BBX.Plugin.Payment.Alipay;
using BBX.Web.UI;
namespace BBX.Web
{
public class usercpcreditsbuy : UserCpPage
{
public float creditstax = Scoresets.GetCreditsTax();
... |
src/ExaVault/Model/PlanDetailsWebhookOptions.cs | JuanuMusic/evapi-csharp | 4 | 7062860 | <reponame>JuanuMusic/evapi-csharp<gh_stars>1-10
/*
* ExaVault API
*
* See our API reference documentation at https://www.exavault.com/developer/api-docs/
*
* OpenAPI spec version: 2.0
* Contact: <EMAIL>
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using... |
FerretEngine/src/Physics/CollisionCheck.cs | pacojq/Ferret | 1 | 7062861 | using System;
using System.Runtime.CompilerServices;
using FerretEngine.Components.Colliders;
using FerretEngine.Utils;
using Microsoft.Xna.Framework;
namespace FerretEngine.Physics
{
public static class CollisionCheck
{
/*
COLLISION CHECK IMPLEMENTATIONS
... |
sdk/dotnet/Log/OssShipper.cs | pulumi/pulumi-alicloud | 42 | 7062862 | <gh_stars>10-100
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Seri... |
test/Savvyio.EventDriven.Tests/IntegrationEventTest.cs | codebeltnet/classlib-savvyio | 5 | 7062863 | using System;
using Cuemon.Extensions.Reflection;
using Cuemon.Extensions.Xunit;
using Savvyio.Assets.Events;
using Xunit;
using Xunit.Abstractions;
namespace Savvyio.EventDriven
{
public class IntegrationEventTest : Test
{
public IntegrationEventTest(ITestOutputHelper output) : base(output)
{... |
_no_namespace/TransformTweenBehaviour.cs | SinsofSloth/RF5-global-metadata | 1 | 7062864 | [Serializable]
public class TransformTweenBehaviour : PlayableBehaviour // TypeDefIndex: 6094
{
// Fields
public Transform startLocation; // 0x10
public Transform endLocation; // 0x18
public bool tweenPosition; // 0x20
public bool tweenRotation; // 0x21
public TransformTweenBehaviour.TweenType tweenType; // 0x24
... |
src/Core/Application/Users/Command/Login/LoginResponse.cs | omidah/CleanArchitecture-Template | 9 | 7062865 | <reponame>omidah/CleanArchitecture-Template
namespace Application.Users.Command.Login
{
public class LoginResponse
{
public readonly static LoginResponse Empty = new LoginResponse();
public string accessToken { get; set; }
public string refreshToken { get; set; }
}
}
|
test/TauCode.Testing.Tests.Core/Features/Watchers/GetWatcherCurrencies/GetWatcherCurrenciesQuery.cs | taucode/taucode.testing | 0 | 7062866 | using System;
namespace TauCode.Testing.Tests.Core.Features.Watchers.GetWatcherCurrencies
{
public class GetWatcherCurrenciesQuery
{
public long WatcherId { get; set; }
public DateTimeOffset? Date { get; set; }
}
}
|
src/Framework.Common.Web/UI/AngularInputModel.cs | maxigs7/MyLibrary | 0 | 7062867 | using System.Web.Mvc;
namespace Framework.Common.Web.UI
{
public class AngularInputModel <T>
{
#region Constructors
public const string KeyNgBlur = "NgBlur";
public const string KeyNgClick = "NgClick";
public const string KeyNgChange = "NgChange";
public const string K... |
C#/C# 2/Homework Text Files/Problem 13. Count words/Program.cs | Telerik-Homework-ValentinRangelov/Homework | 1 | 7062868 | <reponame>Telerik-Homework-ValentinRangelov/Homework<gh_stars>1-10
//Write a program that reads a list of words from a file words.txt and finds how many times each of the words is
//contained in another file test.txt. The result should be written in the file result.txt and the words should be
//sorted by the numbe... |
src/SettingsStoreExplorer/DwordToStringConverter.cs | pharring/SettingsStoreExplorer | 25 | 7062869 | // Copyright (c) <NAME>. All Rights Reserved. Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Globalization;
namespace SettingsStoreExplorer
{
internal sealed class DwordToStringConverter : IntegerToStringConverter
{
public static readonly Dwor... |
Scripts/Mobiles/Monsters/ML/Bedlam/SirPatrick.cs | greeduomacro/vivre-uo | 0 | 7062870 | using System;
using System.Collections;
using System.Collections.Generic;
using Server;
using Server.Items;
namespace Server.Mobiles
{
[CorpseName( "a <NAME> corpse" )]
public class SirPatrick : SkeletalKnight
{
[Constructable]
public SirPatrick()
{
IsParagon = true;
Name = "<NAME>";
Hue = 0x47E;
... |
Android/SquareAndroidTimesSquare/source/Square.AndroidTimesSquare/CalendarCellView.cs | SaViGnAnO/XamarinComponents | 75 | 7062871 | <reponame>SaViGnAnO/XamarinComponents
using System;
using Java.Util;
namespace Square.TimesSquare
{
partial class CalendarCellView
{
[Obsolete("Use Highlighted instead")]
public void SetHighlighted(bool isHighlighted)
{
Highlighted = isHighlighted;
}
[Obsole... |
azure-auth-app-sample/Program.cs | sbormolini/MicrosoftAzure | 0 | 7062872 | using System.Threading.Tasks;
using Microsoft.Identity.Client;
namespace azure_auth_app_sample;
// source https://docs.microsoft.com/en-us/learn/modules/implement-authentication-by-using-microsoft-authentication-library/4-interactive-authentication-msal
class Program
{
private const string _clientId = "APPLICATI... |
99. Exams/2016.08.28/03. Hotel Room/03. Hotel Room.cs | bobo4aces/01.SoftUni-ProgramingBasics | 1 | 7062873 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _03.Hotel_Room
{
class Program
{
static void Main(string[] args)
{
string month = Console.ReadLine();
int nightsCount = int.Parse(Console.ReadLi... |
Moonscraper Chart Editor/Assets/Scripts/Native File Explorer/FileExplorer/ExtensionFilter.cs | utybo/Moonscraper-Chart-Editor | 128 | 7062874 | <gh_stars>100-1000
public struct ExtensionFilter
{
public string name;
public string[] extensions;
public ExtensionFilter(string filterName, params string[] filterExtensions)
{
name = filterName;
extensions = filterExtensions;
}
}
|
src/XamAR.Platform.Android.Sceneform/GeometryExtensions.cs | awesome7/xamar | 14 | 7062875 | <gh_stars>10-100
using ar = Google.AR.Sceneform.Math;
using num = System.Numerics;
namespace XamAR.Platform.Android.Sceneform
{
public static class GeometryExtensions
{
public static ar.Vector3 ToAR(this num.Vector3 v)
=> new ar.Vector3(v.X, v.Y, v.Z);
public static num.Vector3 ToN... |
DotnetworkersLib/DnwBase/EditorType.cs | SabrinaCs/DotnetworkersLib | 1 | 7062876 | // ---------------------------------------------------------------
// DATI FILE EditorType.cs
// ---------------------------------------------------------------
// Soluzione...............: DnwLibraries
// Progetto................: DnwBase
// File....................: EditorType.cs
// Namespace...............: Dnw.Bas... |
Csharp/YodiwoSharp/Extensions/DateTime.cs | yodiwo/plegma | 6 | 7062877 | <reponame>yodiwo/plegma<filename>Csharp/YodiwoSharp/Extensions/DateTime.cs<gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Linq;
namespace Yodiwo
{
public static partial class Extensions
{
//-----------------------------------------------------------------------------------... |
src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/DevModeTrueTypeOption.cs | KodamaSakuno/wpf | 5,937 | 7062878 | <filename>src/Microsoft.DotNet.Wpf/src/ReachFramework/MS/Internal/Printing/Configuration/DevModeTrueTypeOption.cs
// 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.
... |
Lookif.Layers.Core/Infrastructure/DataInitializer/IDataInitializer.cs | Farshadhn/Lookif.Layers.Core | 1 | 7062879 | <reponame>Farshadhn/Lookif.Layers.Core<filename>Lookif.Layers.Core/Infrastructure/DataInitializer/IDataInitializer.cs
namespace Lookif.Layers.Core.Infrastructure.Base.DataInitializer
{
public interface IDataInitializer : IScopedDependency
{
int order { get; set; }
void InitializeData();
}
}... |
src/Members/Common/IMethodBase.cs | phiplatform/metadata | 2 | 7062881 | <reponame>phiplatform/metadata
using NoRealm.Phi.Metadata.Extensions;
using System.Reflection;
namespace NoRealm.Phi.Metadata.Members
{
/// <summary>
/// represent method common information
/// </summary>
public interface IMethodBase : IMember, IParameters
{
/// <summary>
/// get .... |
Core/Modules/Maintenance/MaintenanceSchedule.cs | lbotinelly/Nyan | 27 | 7062882 | using System;
namespace Nyan.Core.Modules.Maintenance {
public class MaintenanceSchedule
{
public string Id;
public int Priority;
public DateTime LastRun;
public TimeSpan Schedule;
public MaintenanceTaskSetupAttribute Setup;
internal IMaintenanceTask Task;
... |
Pangea.Domain/GpsLocation.cs | rubenrorije/Pangea.Domain | 1 | 7062883 | <reponame>rubenrorije/Pangea.Domain<filename>Pangea.Domain/GpsLocation.cs
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Text;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;
using static Pangea.Domain.Util.Math... |
Adblock/Adblock.cs | danmarg/AdblockIE | 1 | 7062884 | <filename>Adblock/Adblock.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using MSHTML;
using SHDocVw;
using System.Text.RegularExpressions;
using System.Diagnostics;
using Microsoft.Win32;
using System.IO;
namespace af0.Adblock
{
/// <... |
tests/Dynatrace.OpenKit.Tests/Core/Objects/SessionTest.cs | jamaravilla/openkit-dotnet | 17 | 7062885 | <filename>tests/Dynatrace.OpenKit.Tests/Core/Objects/SessionTest.cs
//
// Copyright 2018-2021 Dynatrace LLC
//
// 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.or... |
webapi/Hubs/MainHub.cs | deanilvincent/ASP.NET-Core-Web-API-with-Angular-Basic-Crud | 1 | 7062886 | using System.Threading.Tasks;
using Microsoft.AspNetCore.SignalR;
using webapi.Contracts;
namespace webapi.Hubs
{
public class MainHub : Hub, IMainHub
{
private readonly IHubContext<MainHub> hubContext;
public MainHub(IHubContext<MainHub> hubContext)
{
this.hubContext = hubC... |
Assets/SuperTiled2Unity/Scripts/Editor/Settings/ST2USettings.cs | macetini/TunaManExtreme | 0 | 7062887 | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Xml;
using System.Xml.Linq;
using UnityEditor;
using UnityEngine;
namespace SuperTiled2Unity.Editor
{
public class ST2USettings : ScriptableObject
{
[SerializeField]
private stri... |
Enums/Mouse/MouseKeys.cs | trksyln/CSInputs | 1 | 7062888 | <gh_stars>1-10
namespace CSInputs.Enums
{
public enum MouseKeys
{
None = 0,
MouseLeft = 1,
MouseRight = 4,
MouseMiddle = 16,
XButton1 = 64,
XButton2 = 256,
MouseWheel = 1024,
MouseWheelForward = 3932672,
MouseWheelBackward = -3... |
FunctionBot/Bots/SimpleBot.cs | enzocanoo/json-func-bot | 3 | 7062889 | <gh_stars>1-10
namespace FunctionBot.Bots
{
using Microsoft.Bot.Builder;
using Microsoft.Bot.Schema;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
public class SimpleBot: ActivityHandler
{
protected override Task OnMe... |
WSCT.Fake.JavaCard/Applet.cs | wsct/WSCT-Fake-TB100Like | 1 | 7062890 | <reponame>wsct/WSCT-Fake-TB100Like
namespace WSCT.Fake.JavaCard
{
public abstract class Applet
{
public abstract void process(APDU apdu);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "JavaCard method")]
public virtual bool select()
... |
samples/Sample.SqlServerShardingDataSource/MyDbContext.cs | starsoft35/sharding-core | 91 | 7062891 | using System;
using System.Linq;
using System.Text;
using Microsoft.EntityFrameworkCore;
using Namotion.Reflection;
using Sample.SqlServerShardingDataSource.Entities;
using ShardingCore.Core.VirtualRoutes.TableRoutes.RouteTails.Abstractions;
using ShardingCore.Sharding;
using ShardingCore.Sharding.Abstractions;
names... |
CsvFrequencyReader.cs | nissafors/SineAndSoul | 0 | 7062892 | //-----------------------------------------------------------------------
// SineAndSoul: CsvFrequencyReader.cs
//
// Copyright (c) 2014 <NAME>
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
//-----------------------------------------------... |
test/NetUV.Core.Tests/Buffers/WrappedCompositeByteBufferTests.cs | belveder79/NetUV | 75 | 7062893 | // Copyright (c) <NAME>. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace NetUV.Core.Tests.Buffers
{
using NetUV.Core.Buffers;
public class WrappedCompositeByteBufferTests : CompositeByteBufferTests
{
internal sea... |
src/NUnitTestGenerator/TestGenerator.cs | EugeneKrapivin/NUnitTestGenerator | 0 | 7062894 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using static NUnitTestGenerator.TestDescriptor;
namespace NUnitTestGenerator
{
public class TestGenerator
{
public FixtureDescriptor Fixture { get; }... |
Kudu.Services/Authorization/BasicAuthorizeAttribute.cs | RaleighHokie/kudu | 0 | 7062896 | #region License
//
// Parts of this code come from http://bonobogitserver.codeplex.com
// License: Microsoft Public License (Ms-PL)
#endregion
using System;
using System.Text;
using System.Web.Mvc;
namespace Kudu.Services.Authorization {
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
pu... |
NotificationService/NotificationService.Common/Exceptions/ErrorDetails.cs | cblessingms1/notification-provider | 19 | 7062897 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace NotificationService.Common.Exceptions
{
using Newtonsoft.Json;
/// <summary>
/// Model for Error Info in response in case of exception.
/// </summary>
public class ErrorDetails
{
/// <summary>
... |
C# 2/DomNumeralSystems/06.BinaryToHexadecimal/BinaryToHexadecimal.cs | Producenta/TelerikAcademy | 0 | 7062898 | <gh_stars>0
// Write a program to convert binary numbers to hexadecimal numbers (directly).
using System;
class BinaryToHexadecimal
{
static string BinToHex(string bin)
{
string hexadecimal = "";
int remainder = bin.Length % 4;
if (remainder != 0)
{
bin = b... |
Extension/Xamarin.Forms.HotReload.Extension/Presenters/ConnectionsPresenter.cs | slang25/HotReload | 473 | 7062899 | <filename>Extension/Xamarin.Forms.HotReload.Extension/Presenters/ConnectionsPresenter.cs
using System.Linq;
using Xamarin.Forms.HotReload.Extension.Abstractions.Dialogs;
using Xamarin.Forms.HotReload.Extension.Models;
namespace Xamarin.Forms.HotReload.Extension.Presenters
{
public class ConnectionsPresenter
{... |
MonoGame-Helpers/MonoGame-Helpers.Shared/Game1.cs | SpoonmanGames/Monogame-Helpers | 1 | 7062900 | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
namespace MonoGame_Helpers
{
/// <summary>
/// This is the main type for your game.
/// </summary>
public class Game1 : Game
{
GraphicsDeviceManager graphics;
/**
... |
FDFEditor/Backend/Crypt.cs | Kraballa/FDFEditor | 1 | 7062901 | using System;
using System.Collections.Generic;
using System.IO;
using System.Security.Cryptography;
using System.Text;
using System.Windows;
namespace FDFEditor.Backend
{
public static class Crypt
{
public enum Game
{
FDF1,
FDF2
}
private static byte[... |
MarkupDoc/Utils/IsNewUtils.cs | adamecr/MarkupDoc | 0 | 7062902 | using System;
using System.Collections.Generic;
using System.Reflection;
using Microsoft.CodeAnalysis;
namespace net.adamec.dev.markupdoc.Utils
{
/// <summary>
/// Helpers to get the access to internal ISymbol.IsNew property
/// </summary>
public static class IsNewUtils
{
/// <summary>
... |
BitBot/MainWindow.Designer.cs | fostmic/BitBot2 | 0 | 7062903 | <reponame>fostmic/BitBot2
namespace BitBot
{
partial class MainWindow
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
... |
TasksEverywhere.DataLayer/Models/Account.cs | Crasso91/TasksEverywhere | 1 | 7062904 | <gh_stars>1-10
using TasksEverywhere.DataLayer.Enumerators;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TasksEverywhere.DataLayer.Models
{
public class Account
{
public long AccountID { get; set; }... |
DGP.Genshin/Controls/Records/RecordFloorExpander.xaml.cs | benx1n/Snap.Genshin | 1 | 7062905 | <reponame>benx1n/Snap.Genshin
using System.Windows.Controls;
namespace DGP.Genshin.Controls.Records
{
/// <summary>
/// RecordFloorExpander.xaml 的交互逻辑
/// </summary>
public partial class RecordFloorExpander : Expander
{
public RecordFloorExpander()
{
this.InitializeComp... |
src/SIM.Base/FileSystem/UncFileProvider.cs | jammykam/Sitecore-Instance-Manager | 0 | 7062906 | <filename>src/SIM.Base/FileSystem/UncFileProvider.cs
using System;
using System.IO;
using Sitecore.Diagnostics.Base;
using JetBrains.Annotations;
namespace SIM.FileSystem
{
public class UncFileProvider : FileProvider
{
#region Fields
[NotNull]
private readonly FileSystem fileSystem;
#endregion
... |
Scripts/Colors.cs | jmickle66666666/JazzBox | 40 | 7062907 | <reponame>jmickle66666666/JazzBox<filename>Scripts/Colors.cs
using UnityEngine;
public class Colors {
public static Color32 black = new Color32(0x00,0x00,0x00,0xff);
public static Color32 gray = new Color32(0x9D,0x9D,0x9D,0xff);
public static Color32 white = new Color32(0xFF,0xFF,0xFF,0xff);
public sta... |
Assets/Scripts/Wood.cs | tgbonin/firekeeper | 0 | 7062908 | using UnityEngine;
using System.Collections;
public class Wood : MonoBehaviour {
GameObject fire;
bool onFire;
[SerializeField]
int woodAmount;
public int WoodAmount {
get {
return woodAmount;
}
set {
woodAmount = value;
}
}
// Use this for... |
MITA.Auth/ServiceCollectionExtensions.cs | taihon/mita-final | 0 | 7062909 | <gh_stars>0
using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace MITA.Auth
{
public static class ServiceCollectionExtensions
{
public static IServiceCollection AddCustomAuth(this IS... |
test/unit/NatsnudasoftTests/TestExtension/DoesNotThrowAssertionTests.cs | natsnudasoft/NatsnudaLibrary | 0 | 7062910 | // <copyright file="DoesNotThrowAssertionTests.cs" company="natsnudasoft">
// Copyright (c) <NAME>. All rights reserved.
//
// 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://... |
src/Microsoft.MobileBlazorBindings/Elements/AttributeHelper.CornerRadius.cs | Kahbazi/MobileBlazorBindings | 0 | 7062911 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
using System;
using System.Globalization;
using Xamarin.Forms;
namespace Microsoft.MobileBlazorBindings.Elements
{
public static partial class AttributeHelper
{
/// <summary>
/// Helper method to serialize <see cref="C... |
Assets/Scripts/MoveCamera.cs | balohmatevz/manufactury | 0 | 7062912 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MoveCamera : MonoBehaviour
{
private bool _thresholdPassed = false;
private Vector2 _lastMousePosition = Vector2.zero;
private Vector2 _clickStartMousePosition = Vector2.zero;
// Use this for initialization
... |
TankLib/STU/Types/STU_108981C8.cs | Mike111177/OWLib | 1 | 7062913 | // Instance generated by TankLibHelper.InstanceBuilder
// ReSharper disable All
namespace TankLib.STU.Types {
[STUAttribute(0x108981C8)]
public class STU_108981C8 : STUConfigVarStringBase {
[STUFieldAttribute(0xB3EC7449, ReaderType = typeof(EmbeddedInstanceFieldReader))]
public STUConfigVar m_B... |
CybtansSDK/Tests/Cybtans.Tests.Gateway/Program.cs | ansel86castro/cybtans-sdk | 14 | 7062914 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace Cybtans.Tests.... |
C#/C# Fundamentals/05. ARRAYS/EXERCISE/Arrays - More exercises/Arrays - More Exercises/04. Fold and Sum/StartUp.cs | AntoniyaIvanova/SoftUni | 0 | 7062915 | namespace _04._Fold_and_Sum
{
using System;
public class StartUp
{
public static void Main()
{
string[] input = Console.ReadLine().Split();
int[] numbers = new int[input.Length];
for (int i = 0; i < input.Length; i++)
{
number... |
MvvmCrossAutoMapperSample.Core/Models/Tiles/TemperatureTile.cs | CuriousCurmudgeon/MvvmCrossAutoMapperSample | 3 | 7062916 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MvvmCrossAutoMapperSample.Core.Models.Tiles
{
public class TemperatureTile : Tile
{
public double Temperature { get; set; }
}
}
|
Methods/09.MaxElement/Program.cs | bstaykov/Telerik-CSharp-Part-2 | 0 | 7062917 | <reponame>bstaykov/Telerik-CSharp-Part-2
namespace _09.MaxElement
{
using System;
class Program
{
// Write a method that return the maximal element in a portion of array of integers starting at given index.
// Using it write another method that sorts an array in ascending / descendi... |
csharp-advanced/01.StacksQueues/L04.MatchingBrackets/Program.cs | vassdeniss/software-university-courses | 7 | 7062918 | using System;
using System.Collections.Generic;
namespace L04.MatchingBrackets
{
internal class Program
{
static void Main(string[] args)
{
string expression = Console.ReadLine();
Stack<int> bracketIndices = new Stack<int>();
for (int i = 0; i < expression.... |
SampledStreamConsumerConsole/StreamProcessors/Abstractions/ISampledTweetStreamProcessor.cs | pwingrove57/TwitterApiV2SampledStreamConsumer | 0 | 7062919 | <gh_stars>0
using System.Threading.Tasks;
using SampledStreamConsumerConsole.Clients.Abstractions;
using SampledStreamConsumerConsole.ConsoleMessaging.Abstractions;
using SampledStreamConsumerConsole.ConstantsConfigsSettings.Abstractions;
using SampledStreamConsumerConsole.Queueing.Abstractions;
namespace SampledStre... |
PRJ/HopeLine.Service/Configurations/SeedDatabase.cs | ejricahuerta/hopeline | 13 | 7062920 | using HopeLine.DataAccess.DatabaseContexts;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
namespace HopeLine.Service.Configurations
{
public static class SeedDatabase
{
public static void Initialize(this IApplicationBuilder builder)
{
var provi... |
SAM.Taskboard.Model/Task/CreateTaskViewModel.cs | dmitry-yuzefchik/SAM.Taskboard | 0 | 7062922 | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web;
namespace SAM.Taskboard.Model.Task
{
public class CreateTaskViewModel
{
public int ProjectId { get; set; }
public int BoardId { get; set; }
public int ColumnId { get; set; }
[Req... |
Laporan/FrmLFlexCor.cs | husniaditya/it-inventory | 1 | 7062923 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using KASLibrary;
using DevExpress.XtraReports.UI;
namespace CAS.Laporan
{
public partial class FrmLFlexCor : BaseLaporan
{
double grandto... |
Strados.Obd/Specification/SecondaryAirStatus.cs | nsamala/strados | 15 | 7062924 | <reponame>nsamala/strados
using Strados.Obd.Helpers;
namespace Strados.Obd.Specification
{
public enum SecondaryAirStatus : int
{
Upstream = 1,
Downstream = 2,
OutsideAtmosphereOrOff = 4,
PumpCommandedOnDiagnostics = 8
}
}
|
RVAprojekat/Client/Command/OtvoriProzorKomande/otvoriProzorIzmeniGrupeKorisnikaCommand.cs | sofijailic/RVAprojekat | 0 | 7062925 | using Client.View;
using Client.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Client.Command.OtvoriProzorKomande
{
public class otvoriProzorIzmeniGrupeKorisnikaCommand : ClientCommand
{
private PocetnaViewModel... |
QTD/QTD/Entities/BaseRunner.cs | SquirtingElephant/QTD | 0 | 7062926 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using XNALib;
namespace QTD
{
public class BaseRunner : IEntity, ITargetable
{
... |
LazZiya.ExpressLocalization/DataAnnotations/ExRangeAttribute.cs | LazZiya/ExpressLocalization | 36 | 7062927 | using LazZiya.ExpressLocalization.Messages;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace LazZiya.ExpressLocalization.DataAnnotations
{
/// <summary>
/// Specifies the numeric range constraints for the value of a data field. And produ... |
ExamplesAndTests/BigCsvFileViewer/BigTextFileViewModel/LogFileLinesProvider.cs | vslee/SwordfishCollections | 48 | 7062928 |
using System;
using System.Diagnostics;
using System.IO;
namespace BigCsvFileViewer.BigTextFileViewModel
{
public class LogFileLinesProvider : FileLinesProvider
{
private Stream _outputStream;
private StreamWriter _writer;
/// <summary>
/// Initializes a new instance of the <... |
HealthHub 3.0/Web/HealthHub.Web/Areas/Administration/Views/Doctors/Details.cshtml | DenitsaDey/My-Projects | 2 | 7062929 | @model HealthHub.Web.ViewModels.Doctor.DoctorsViewModel
@{
this.ViewData["Title"] = "Dr. " + Model.FullName;
Layout = "~/Views/Shared/_Layout.cshtml";
}
<partial name="_AdminHeaderPartial" />
<div class="row row-eq-height">
<!-- Info Box -->
<div class="col-lg-4 info_box_col">
<div class="info... |
WP7StockListDemo/App.xaml.cs | Lightstreamer/Lightstreamer-example-StockList-client-winphone | 0 | 7062930 | #region License
/*
* Copyright (c) Lightstreamer Srl
*
* 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 applicable law or a... |
src/glue/nasm/literals/NasmOptionKind.cs | 0xCM/z0 | 0 | 7062931 | //-----------------------------------------------------------------------------
// Copyright : (c) <NAME>, 2020
// License : MIT
//-----------------------------------------------------------------------------
namespace Z0
{
using System;
using static Pow2x32;
[Flags]
public enum NasmOptionKind... |
DaemonEngine.Graphics/Renderer/Model.cs | daemon-engine/DaemonEngine | 0 | 7062932 | using DaemonEngine.Extensions.AssimpNet;
using DaemonEngine.Graphics.Factories;
namespace DaemonEngine.Graphics.Renderer;
public class Model
{
private readonly BufferLayout _bufferLayout;
private readonly IMeshFactory _meshFactory;
public Model(IMeshFactory meshFactory, IShader shader, string filepath)
... |
src/Dromedary/Extensions/DictionaryExtensions.cs | lillo42/dromedary | 0 | 7062933 | <reponame>lillo42/dromedary<filename>src/Dromedary/Extensions/DictionaryExtensions.cs
using System.ComponentModel;
namespace System.Collections.Generic
{
public static class DictionaryExtensions
{
private static T ConvertFrom<T>(object value)
{
var type = typeof(T);
if ... |
src/Pomelo.AspNetCore.Extensions/Others/Marked.cs | qinxiaowen/dotNETCore-Extensions | 190 | 7062934 | <reponame>qinxiaowen/dotNETCore-Extensions
namespace Pomelo.AspNetCore.Extensions.Others
{
public class Marked
{
public static string Parse(string md)
{
return Pomelo.Marked.Instance.Parse(md);
}
}
}
namespace Microsoft.AspNetCore.Mvc.Rendering
{
using Microsoft.Asp... |
Src/AjTalk.Tests/MachineTests.cs | ajlopez/AjTalk | 2 | 7062935 | namespace AjTalk.Tests
{
using System;
using System.Collections.Generic;
using System.Text;
using AjTalk;
using AjTalk.Compiler;
using AjTalk.Language;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
public class MachineTests
{
[TestMethod]
... |
forge.wpf.csharp/App.xaml.cs | Autodesk-Forge/forge.wpf.csharp | 8 | 7062936 | //
// Copyright (c) 2017 Autodesk, Inc.
//
// 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, copy, modify, merge, pub... |
aliyun-net-sdk-sas/Sas/Transform/V20181203/ModifyPushAllTaskResponseUnmarshaller.cs | pengweiqhca/aliyun-openapi-net-sdk | 572 | 7062937 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
Rebus.AwsSnsAndSqs/Extensions/StringExtension.cs | ThomasEg/Rebus.AwsSnsAndSqs | 6 | 7062938 | <gh_stars>1-10
namespace Rebus.AwsSnsAndSqs.Extensions
{
using System;
internal static class StringExtension
{
public static byte[] GetBodyBytes(this string bodyText)
{
return Convert.FromBase64String(bodyText);
}
}
}
|
XamarinStripe/StripeLineItem.cs | xamarin/XamarinStripe | 62 | 7062939 | /*
* Copyright 2011 <NAME>, 2012 Xamarin, Inc.
*
* Author(s):
* <NAME> (<EMAIL>)
*
* 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... |
Assets/Scripts/Themes/ThemeDatabase.cs | Berklee-Game-Audio/Unity-Wwise-Game-Template-Trashcat | 0 | 7062940 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using AssetBundles;
// Handles loading data from the Asset Bundle to handle different themes for the game
public class ThemeDatabase
{
static protected Dictionary<string, ThemeData> themeDataList;
static public Dictionary<... |
Assets/Scripts/Character/Character.cs | YanaPIIDXer/UnityGameDevPackage | 0 | 7062941 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace GameDev.Character
{
/// <summary>
/// キャラクタクラス
/// </summary>
public abstract class Character : MonoBehaviour
{
/// <summary>
/// Componentリスト
/// </summary>
priva... |
Nextwin/Util/EnumConverter.cs | nextwingames/unity-framework | 0 | 7062942 | using System;
using UnityEngine;
namespace Nextwin.Util
{
public static class EnumConverter
{
public static T ToEnum<T>(string value)
{
if(!Enum.IsDefined(typeof(T), value))
{
Print.LogError($"{value} is not defined in enum {typeof(T)}.");
... |
src/PackCreator/BuildSettings.cs | agc93/acmi | 4 | 7062943 | using static PackCreator.PackingHelpers;
namespace PackCreator {
public class BuildSettings {
public OutputModes OutputMode {get;set;}
public string Prefix {get;set;}
}
} |
RSASignature/ControlPanel.Designer.cs | Softenraged/RSADigitalSignature | 0 | 7062944 | namespace RSASignature
{
partial class ControlPanel
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
///... |
Assets/Maxen/DeathExplosive.cs | Fornan-II/GameProductionCoolGame01 | 0 | 7062945 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DeathExplosive : MonoBehaviour
{
public Explosion explosionData;
public GameObject explosionParticles;
[SerializeField] protected DamageReceiver _damageReceiver;
protected virtual void Start()
{
... |
development/NET/samples/server/DemoServer/CS/DaAddressSpaceElement.cs | Movares/OPC-Classic-SDK | 19 | 7062946 | using System;
using System.Collections;
using Softing.OPCToolbox;
using Softing.OPCToolbox.Server;
namespace DemoServer
{
public abstract class DemoDaAddressSpaceElement : DaAddressSpaceElement
{
#region Constructors
//------------------------------
public DemoDaAddressSpaceElement(
string anItemID,
st... |
src/KubernetesClient/generated/Models/V1ScopedResourceSelectorRequirement.cs | Frassle/csharp | 2 | 7062947 | // <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace k8s.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
using Sys... |
DfuSe.Core/DfuFunctionalDescriptor.cs | josesimoes/DfuSe.Net | 0 | 7062948 | <filename>DfuSe.Core/DfuFunctionalDescriptor.cs
using System.Runtime.InteropServices;
namespace DfuSe.Core
{
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public class DfuFunctionalDescriptor
{
public const int DefaultSize = 9;
public const int Type = 0x21;
public byte bLength;
... |
Assets/Code/Countdown.cs | Reintjuu/fasttype | 0 | 7062950 | <filename>Assets/Code/Countdown.cs
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using System.Diagnostics;
using System;
public class Countdown : MonoBehaviour
{
[SerializeField]
Text textField;
Stopwatch stopWatch;
TimeSpan countFrom;
Action cb;
// Use this for initialization
void Start(... |
C# MVC Frameworks - ASP.NET Core/News System/NewsSystem.Services/Models/Home/CategoryHomeListModel.cs | BlueDress/School | 0 | 7062951 | namespace NewsSystem.Services.Models.Home
{
using System.Collections.Generic;
using NewsSystem.Data.Models;
public class CategoryHomeListModel
{
public string Name { get; set; }
public IEnumerable<Article> Articles { get; set; }
}
}
|
PlayGen.SUGAR.Server.Core.Tests/AchievementProgressControllerTests.cs | playgen/SUGAR-SocialGamification | 12 | 7062952 | <gh_stars>10-100
using Xunit;
namespace PlayGen.SUGAR.Server.Core.Tests
{
public class AchievementProgressControllerTests : CoreTestBase
{
/*
#region Configuration
private readonly UserDbController _userDbController;
private readonly GameDbController _gameDbController;
private readonly UserDataDbControlle... |
Commands/ExtensionMethods.cs | bowfield/xTerminal | 1 | 7062953 | <filename>Commands/ExtensionMethods.cs
using System;
using System.Collections.Generic;
using System.Linq;
namespace Commands
{
internal static class ExtensionMethods
{
internal static bool ContainsText(this string source, string searchText)
{
return !string.IsNullOrWhiteSpace(sourc... |
SkyDrive.FileWatcher.Tests/FileWatcherTests.cs | aquiladev/SkyDrive.FileWatcher | 1 | 7062954 | <reponame>aquiladev/SkyDrive.FileWatcher
using System;
using System.IO;
using System.Reflection;
using System.Security.Cryptography;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using NUnit.Framework;
using Rhino.Mocks;
using SkyDrive.Threading;
namespace SkyDrive.Tests
{
[TestFixture]
p... |
srcs/KBot.Network/Processor/Characters/CInfoProcessor.cs | Roxeez/KBot | 2 | 7062955 | using KBot.Common.Logging;
using KBot.Game;
using KBot.Game.Entities;
using KBot.Network.Packet.Characters;
namespace KBot.Network.Processor.Characters
{
public class CInfoProcessor : PacketProcessor<CInfo>
{
protected override void Process(GameSession session, CInfo packet)
{
Char... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.