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 |
|---|---|---|---|---|
Ketabex/Ketabex.Android/AppcompatBaseActivity.cs | hkhoshraftar/KetabexApp | 0 | 7060101 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Support.V7.App;
using Android.Views;
using Android.Widget;
using Ketabex.Droid.Surface;
namespace Ketabex.Droid
{
[Activity( Theme... |
Assets/Impossible Odds/Toolkit/Editor/CopyAssetPath.cs | juniordiscart/ImpossibleOdds-Toolkit | 7 | 7060102 | #if IMPOSSIBLE_ODDS_ENABLE_EDITOR_EXT
namespace ImpossibleOdds.Editor
{
using UnityEditor;
public class CopyAssetPathToClipboard : Editor
{
[MenuItem("Assets/Copy asset path")]
private static void GetAssetPath()
{
if (Selection.activeObject == null)
{
return;
}
try
{
string assetPath ... |
Assets/Scripts/UnityToykit/AnimationView.cs | ethankennerly/one-room | 0 | 7060103 | <reponame>ethankennerly/one-room<filename>Assets/Scripts/UnityToykit/AnimationView.cs<gh_stars>0
using UnityEngine/*<GameObject>*/;
using System.Collections.Generic/*<Dictionary>*/;
namespace Finegamedesign.Utils
{
public sealed class AnimationView
{
public static bool isVerbose = false;
private static Dictionar... |
src/KsWare.Presentation.UITestApp/Properties/AssemblyInfo.cs | KsWare/master | 0 | 7060104 | <gh_stars>0
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
using System.Windows;
#if NET5_0_OR_GREATER
[assembly: System.Runtime.Versioning.SupportedOSPlatform("Windows7.0")]
#endif
[assembly: SuppressMessage("Interoperability", "CA1416:Validate platform compatibility", Justification = "... |
ehaugw's mods/Juggernaught/Juggernaut/Weapon_GetStamCost.cs | Daimyo21/Outward-Mods | 0 | 7060105 | using System;
using HarmonyLib;
namespace Juggernaut
{
// Token: 0x0200000C RID: 12
[HarmonyPatch(typeof(Weapon), "GetStamCost")]
public class Weapon_GetStamCost
{
// Token: 0x06000036 RID: 54 RVA: 0x00002FEC File Offset: 0x000011EC
[HarmonyPostfix]
public static void Postfix(Weapon __instance, ref float __... |
front-win/iQueue-front-end/iQueue/Information.cs | zhangsht/HQS | 0 | 7060106 | <gh_stars>0
namespace BLL.Network
{
//用户
public class User
{
public string username { get; set; }
public string password { get; set; }
}
//病人信息
public class PatientInfo
{
public string patientID { get; set; }
public string name { get; set; }
public st... |
InfiniEngine/UI/IControl.cs | Toxoid49b/InfiniEngine | 0 | 7060107 | using System;
using UnityEngine;
namespace InfiniEngine.UI {
/// <summary>
/// Defines a new control
/// </summary>
public interface IControl {
Rect controlRegion { get; set; }
GUIStyle controlStyle { get; set; }
void OnRender();
}
}
|
Flamingo/Attributes/Filters/ShippingQueryFiltersAttribute.cs | immmdreza/FlamingoFramework | 3 | 7060109 | <reponame>immmdreza/FlamingoFramework<gh_stars>1-10
using Flamingo.Condiments;
using Flamingo.Filters;
using System;
using Telegram.Bot.Types.Payments;
namespace Flamingo.Attributes.Filters
{
/// <summary>
/// Base class to build filter attributes for shipping queries
/// </summary>
[AttributeUsage(At... |
WebApiMonitor/WebApiMonitor.Agent/Collectors/MeasurementData.cs | evsienko/legendary-spoon | 0 | 7060110 | <reponame>evsienko/legendary-spoon
using System.Diagnostics;
namespace WebApiMonitor.Agent
{
public class MeasurementData
{
public string Measurement { get; set; }
public PerformanceCounter Counter { get; set; }
}
}
|
src/api/LMSEntities/Models/AssetPhoto.cs | lawrencefej/LibraryManagementAPI | 0 | 7060111 | namespace LMSEntities.Models
{
public class AssetPhoto : Photo
{
public LibraryAsset LibraryAsset { get; set; }
public int LibraryAssetId { get; set; }
}
}
|
CodeWars/8kyu/KeepUpHoop.cs | a-kozhanov/codewars_csharp | 11 | 7060112 | /*
https://www.codewars.com/kata/keep-up-the-hoop/csharp
https://www.codewars.com/kata/55cb632c1a5d7b3ad0000145/csharp
8 kyu
Keep up the hoop
Alex just got a new hula hoop, he loves it but feels discouraged because his little brother is better than him
Write a program where Alex can input (n) how many times the hoop... |
Source/MedSupp/MSClarity/MSHDCompProperties_AntiPsychotic.cs | emipa606/MedicalSupplements | 0 | 7060113 | <reponame>emipa606/MedicalSupplements
using Verse;
namespace MSClarity
{
// Token: 0x02000024 RID: 36
public class MSHDCompProperties_AntiPsychotic : HediffCompProperties
{
// Token: 0x04000066 RID: 102
public IntRange disappearsAfterTicks;
// Token: 0x060000B5 RID: 181 RVA: 0x000... |
src/GpioService.Service/Common/GpioManager.cs | Y56380X/GpioService | 0 | 7060114 | <reponame>Y56380X/GpioService
using System.IO;
using GpioService.Interface;
namespace GpioService.Service.Common
{
internal class GpioManager : IGpioManager
{
public bool TryExport(int pinNumber, out IGpioPin pin)
{
// Export gpio pin
try
{
using (var export = File.OpenWrite("/sys/class/gpio/export"... |
CGbR/ClassModel/ModelValueType.cs | Toxantron/CGbR | 16 | 7060115 | namespace CGbR
{
/// <summary>
/// Type representation of property types
/// </summary>
public enum ModelValueType
{
/// <summary>
/// Single character
/// </summary>
[TypeAlias("char", "Char")]
Char,
/// <summary>
/// Single byte interpreted ... |
Assets/Scripts/Tooltip.cs | louis-bompart/8INF830 | 1 | 7060116 | <gh_stars>1-10
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using ItemNS;
namespace Inventory
{
public class Tooltip : MonoBehaviour
{
/// <summary>
/// The item the tooltip is linked to.
/// </summary>
private Item item;
... |
NakedFramework/NakedFramework.DependencyInjection/Extensions/NakedCoreOptions.cs | e-manual-goldstein/NakedObjectsFramework | 0 | 7060117 | <gh_stars>0
// // Copyright Naked Objects Group Ltd, 45 Station Road, Henley on Thames, UK, RG9 1AT
// // 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... |
CsCodeGenerator.Tests/WriteTests.cs | michaelhutchful/CodeGenerator | 0 | 7060118 | <reponame>michaelhutchful/CodeGenerator<filename>CsCodeGenerator.Tests/WriteTests.cs
using CodeGenerator.Enums;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using Xunit;
namespace CodeGenerator.Tests
{
// CONSOLE: dotnet new -t xunittest // create
// d... |
aspnetcore/security/data-protection/configuration/samples/6.x/DataProtectionConfigurationSample/Snippets/SampleDbContext.cs | jongalloway/AspNetCore.Docs | 5,343 | 7060119 | using Microsoft.AspNetCore.DataProtection.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
namespace DataProtectionConfigurationSample.Snippets;
public class SampleDbContext : DbContext, IDataProtectionKeyContext
{
public SampleDbContext(DbContextOptions<SampleDbContext> dbContextOptions)
: base(... |
src/server apps/DiFYCore/DiFYWebApp/Modules/Social/DiFY.Modules.Social.Domain/FriendshipRequest/AddresseeId.cs | BohdanLiuisk/mini-crm-pet | 0 | 7060120 | <reponame>BohdanLiuisk/mini-crm-pet
using DiFY.BuildingBlocks.Domain;
using System;
namespace DiFY.Modules.Social.Domain.FriendshipRequests
{
public class AddresseeId : TypedIdValueBase
{
public AddresseeId(Guid value) : base(value) { }
}
}
|
LD42/Assets/_Scripts/Editor/MazeEditor.cs | Caedo/LD42 | 0 | 7060121 | using UnityEngine;
using UnityEditor;
[CustomEditor(typeof(Maze))]
public class MazeEditor : Editor
{
public override void OnInspectorGUI()
{
DrawDefaultInspector();
if (GUILayout.Button("Generate"))
{
var maze = (Maze) target;
maze.DestroyMaze();
ma... |
aspnet-core/src/FengWo.BackgroundWorker/Hangfire/IBackgroundWorkerDo.cs | Mohongzhi/FengWo-ABP | 0 | 7060122 | using System;
using System.Collections.Generic;
using System.Text;
namespace FengWo.BackgroundWorker.Hangfire
{
/// <summary>
/// 所有的后台工作者类都应实现该接口
/// </summary>
public interface IBackgroundWorkerDo
{
/// <summary>
/// 执行具体的任务
/// </summary>
void DoWork();
}
}
|
src/Frank.Libraries.Ubl/UBL/ItemIdentificationType.cs | frankhaugen/Frank.Extensions | 0 | 7060123 | namespace Frank.Libraries.Ubl;
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:... |
NexusParser/ir/File.cs | Creepsky/Nexus | 0 | 7060124 | <filename>NexusParser/ir/File.cs
using System;
using System.Collections.Generic;
using System.Linq;
using Nexus.common;
using Nexus.gen;
using Nexus.ir.expr;
using Nexus.ir.stmt;
using Zio;
namespace Nexus.ir
{
public class File : IGenerationElement
{
private string _path;
public stri... |
05 Reflection/(Lab) Exercises/Program.cs | nikolaydechev/CSharp-OOP-Advanced | 0 | 7060125 | using System;
public class Program
{
public static void Main()
{
//EX.1
//string result = spy.StealFieldInfo("Hacker", "username", "password");
//EX.2
//string result = spy.AnalyzeAcessModifiers("Hacker");
//EX.3
//string result = spy.RevealPrivateMethods("Hacke... |
Assets/Imported Assets/FES/Scripts/Demos/StressTest/ScenePrimitiveTest.cs | oprel/buildingplayfulworlds | 0 | 7060126 | <filename>Assets/Imported Assets/FES/Scripts/Demos/StressTest/ScenePrimitiveTest.cs
namespace FESDemo
{
using UnityEngine;
/// <summary>
/// Demonstrate drawing apis
/// </summary>
public class ScenePrimitiveStress : SceneStress
{
/// <summary>
/// Run the stress test
/... |
beta-prototype/api/NHSD.GPITF.BuyingCatalog/NHSD.GPITF.BuyingCatalog/Authentications/BearerAuthentication.cs | TrevorDArcyEvans/NHSBuyingCatalogue | 0 | 7060127 | <gh_stars>0
using IdentityModel.Client;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http;
using Microsoft.Extensions.Configuration;
using NHSD.GPITF.BuyingCatalog.Interfaces;
using NHSD.GPITF.BuyingCatalog.Models;
using System;
using System.Collections.G... |
AutoRepair/AutoRepair/Lists/Announcements.cs | CitiesSkylinesMods/AutoRepair | 5 | 7060128 | namespace AutoRepair.Lists {
using AutoRepair.Catalogs;
using System.Collections.Generic;
/// <summary>
/// Announcements that can be shown in settings UI and report.
/// </summary>
public class Announcements {
public static Dictionary<ulong, string> Notes = new Dictionary<ulong, strin... |
src/DatenMeister.WPF/Windows/TreeViewWindow.xaml.cs | mbrenn/datenmeister-new | 1 | 7060129 | <reponame>mbrenn/datenmeister-new
#nullable enable
using System;
using System.Collections.Generic;
using System.Windows;
using DatenMeister.Core.EMOF.Interface.Reflection;
using DatenMeister.WPF.Modules.ViewExtensions.Definition;
using DatenMeister.WPF.Navigation;
namespace DatenMeister.WPF.Windows
{
/// <summar... |
ortools/sat/samples/AssignmentSat.cs | AlohaChina/or-tools | 8,273 | 7060130 | // Copyright 2010-2021 Google 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.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
src/UnitConv/Enums/Languages.cs | Rosen369/NetMetrology | 3 | 7060132 | <reponame>Rosen369/NetMetrology
using System;
using System.Collections.Generic;
using System.Text;
namespace UnitConv
{
/// <summary>
/// available display languages
/// </summary>
public enum Languages
{
Chinese,
Symbol,
English
}
}
|
src/Microsoft.FileFormats/Helpers.cs | mikem8361/symstore | 116 | 7060133 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.FileFormats
{
internal static class Helpers
{
// Based on Convert.FromHexString, as we don't yet target TFMs where it's av... |
main/RainbowWords.XForms/RainbowWords.XForms/MainPage.xaml.cs | ebekker/RainbowWords.XForms | 0 | 7060134 | using RainbowWords.XForms.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace RainbowWords.XForms
{
public partial class MainPage : ContentPage
{
private MainPageViewModel _vm;
public MainPage()
{
_vm... |
Samples/Offloading And Scheduling With Hangfire Microservices/CT.Examples.OffloadToHangfire.Shared/Models/CallApiExampleData.cs | CamiloTerevinto/Blog | 0 | 7060135 | namespace CT.Examples.OffloadToHangfire.Shared.Models
{
public class CallApiExampleData
{
public string Url { get; set; }
public string SomeOtherImportantData { get; set; }
}
}
|
Comm_Y64/Form1.cs | IanusInferus/cmdt | 8 | 7060136 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Imaging;
using System.Diagnostics;
namespace Comm_Y64
{
public partial class Form1 : Form
{
Y64 y64;
Bitmap bmp;
public Form1()
... |
src/UIKit/UIBezierPath.cs | akoeplinger/xamarin-macios | 2,441 | 7060137 | //
// UIBezierPath.cs: Extra methods for UIBezierPath
//
// Authors:
// <NAME>
//
// Copyright 2014-2015, Xamarin Inc
//
using System;
using System.Collections;
using ObjCRuntime;
using Foundation;
namespace UIKit {
public partial class UIBezierPath {
// from AppKit/NSBezierPath.cs
public unsafe void GetLineD... |
CalcLang/Interpreter/ScopeValuesDictionary.cs | hstde/Calc2 | 2 | 7060138 | <reponame>hstde/Calc2<gh_stars>1-10
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CalcLang.Interpreter
{
public class ScopeValuesDictionary : IDictionary<string, object>
{
private Scope scope;
... |
ESIConnectionLibrary/ESIConnectionLibrary/ESIModels/EsiRevokeTokenType.cs | Dusty-Meg/ESIConnectionLibrary | 4 | 7060139 | using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace ESIConnectionLibrary.ESIModels
{
[JsonConverter(typeof(StringEnumConverter))]
internal enum EsiRevokeTokenType
{
[EnumMember(Value = "accessToken")]
AccessToken,
[EnumMember(Valu... |
SlackAPI/Models/WebSocketMessages/ChannelCreated.cs | xavierjefferson/SlackAPI | 0 | 7060140 | <gh_stars>0
using SlackAPI.Attributes;
namespace SlackAPI.Models.WebSocketMessages
{
[SlackSocketRouting("channel_created")]
public class ChannelCreated
{
public Channel channel { get; set; }
}
} |
TaxStuff/DataImport/OfxXmlImporter.cs | AustinWise/TaxStuff | 1 | 7060141 | <reponame>AustinWise/TaxStuff
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Xml;
using System.Xml.Serialization;
using TaxStuff.DataImport.OFX;
using TaxStuff.FormModel;
namespace TaxStuff.DataImport
{
/// <summary>
/// Mostly based on the files exported by Schwab, w... |
Assets/SsitFramework/SsitEngine.Unity/UI/Common/Curve/VectorKeyFrame.cs | jojo-WJ/SsitEngine | 2 | 7060142 | <reponame>jojo-WJ/SsitEngine<gh_stars>1-10
using System;
using UnityEngine;
namespace SsitEngine.Unity.UI.Common.Curve
{
/// <summary>Vector keyframe.</summary>
[Serializable]
public struct VectorKeyFrame
{
/// <summary>Key of keyframe.</summary>
public float key;
/// <summary... |
NActiviti/Sys.Bpm.Engine.API/Engine/api/http/DefaultAccessTokenProvider.cs | 18502079446/cusss | 7 | 7060143 | using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Primitives;
using Newtonsoft.Json;
using Sys.Workflow.Engine.Impl.Identities;
using Sys.Workflow;
using System;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Security.Authentication;
using System.Te... |
aspnetcore-webapi/ASPNETCoreRabbitMQ/Tests/ASPNETCoreRabbitMQUnitTest.cs | Omarookolosio94/CodeMazeGuides | 33 | 7060144 | <filename>aspnetcore-webapi/ASPNETCoreRabbitMQ/Tests/ASPNETCoreRabbitMQUnitTest.cs<gh_stars>10-100
using Producer.Controllers;
using Producer.Data;
using Producer.Dtos;
using Producer.RabbitMQ;
using MockQueryable.Moq;
using Moq;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using X... |
src/TQVaultAE.GUI/Helpers/WinFormExtension.cs | afjback/TQVaultAE | 215 | 7060145 | using System;
using System.Windows.Forms;
using TQVaultAE.GUI.Components;
using TQVaultAE.GUI.Models.SearchDialogAdvanced;
namespace TQVaultAE.GUI.Helpers
{
public static class WinFormExtension
{
public static void ProcessAllControls(this Control rootControl, Action<Control> action)
{
foreach (Control childC... |
TileDB.Cloud.Rest/src/TileDB.Cloud.Rest.Test/Model/UserTests.cs | TileDB-Inc/TileDB-Cloud-CSharp | 0 | 7060146 | <filename>TileDB.Cloud.Rest/src/TileDB.Cloud.Rest.Test/Model/UserTests.cs
/*
* TileDB Storage Platform API
*
* TileDB Storage Platform REST API
*
* The version of the OpenAPI document: 2.2.19
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using NUnit.Framework;
using System;
usin... |
src-native/THNETII.WinApi.Headers.WinNT/XSAVE_AREA.cs | couven92/thnetii-windows-api | 5 | 7060147 | <reponame>couven92/thnetii-windows-api<gh_stars>1-10
using System.Runtime.InteropServices;
namespace THNETII.WinApi.Native.WinNT
{
[StructLayout(LayoutKind.Sequential, Pack = 16)]
public struct XSAVE_AREA
{
public XSAVE_FORMAT LegacyState;
public XSAVE_AREA_HEADER Header;
}
}
|
GamePlugins/VoiceAttack/snVoiceAttack.cs | fscats/SPAD.neXt | 9 | 7060148 | <filename>GamePlugins/VoiceAttack/snVoiceAttack.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SPAD.neXt.GamePlugins.VoiceAttack
{
/// <summary>
/// VoiceAttack SPAD.neXt plugin
/// </summary>
c... |
src/MithrilShards.Chain.Bitcoin/Events/BlockValidationSucceeded.cs | MithrilMan/MithrilShards | 19 | 7060149 | <filename>src/MithrilShards.Chain.Bitcoin/Events/BlockValidationSucceeded.cs
using MithrilShards.Chain.Bitcoin.Protocol.Types;
using MithrilShards.Core.EventBus;
using MithrilShards.Core.Network;
namespace MithrilShards.Chain.Events
{
/// <summary>
/// A block header batch has succeeded.
/// </summary>
//... |
Application/EdFi.Ods.AdminApp.Management/Database/Ods/Reports/ReportsConfig.cs | stephenfuqua/Ed-Fi-ODS-AdminApp | 3 | 7060150 | // SPDX-License-Identifier: Apache-2.0
// Licensed to the Ed-Fi Alliance under one or more agreements.
// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
// See the LICENSE and NOTICES files in the project root for more information.
using System;
using EdFi.Common.Configuration;
usi... |
AntX/Data/WeatherForecast.cs | Roytin/Humstore | 0 | 7060153 | using System;
namespace AntX.Data
{
public class WeatherForecast
{
public string Id { get; set; }
public DateTime Date { get; set; }
public int TemperatureC { get; set; }
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
public string Summary { get; set; ... |
Assets/TerrainComposer2/Scripts/Editor/TC_RawImageEditor.cs | MelDv/DistributedShooter | 1 | 7060154 | using UnityEngine;
using UnityEditor;
using System.Collections;
namespace TerrainComposer2
{
[CustomEditor(typeof(TC_RawImage))]
public class TC_RawImageEditor : Editor
{
void OnEnable()
{
Transform t = ((MonoBehaviour)target).transform;
t.hideFlags = HideFlags.NotE... |
Assets/CameraController.cs | Diddylcp/Proyecto-II | 0 | 7060155 | <reponame>Diddylcp/Proyecto-II
using UnityEngine;
public class CameraController : MonoBehaviour
{
public float panSpeed = 1f;
public float panBorderThickness = 10f;
public Vector2 panMaxLimit;
public Vector2 panMinLimit;
/*public float scrollSpeed = 20f;
public float maxZ = -6f;
... |
src/2Day.Exchange.Shared/Ews/Schema/EwsPropertyDefinition.cs | gordonlyle/2DAY | 34 | 7060156 | using System;
using System.Diagnostics;
namespace Chartreuse.Today.Exchange.Ews.Schema
{
[DebuggerDisplay("Field {fieldUri}")]
public abstract class EwsPropertyDefinition
{
private readonly EwsFieldUri fieldUri;
public EwsFieldUri FieldUri
{
get { return this.fieldUri; ... |
src/TelemetryViewer/Views/LoginWindow.xaml.cs | ugcs/ugcs-telemetry-viewer | 1 | 7060157 | using Avalonia;
using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Markup.Xaml;
using UGCS.TelemetryViewer.ViewModels;
using UGCS.UcsServices;
namespace UGCS.TelemetryViewer.Views
{
public class LoginWindow : Window
{
public LoginWindow()
{
this.initializeCompone... |
BJD/acl/Acl.cs | misogihagi/bjd5 | 38 | 7060158 | <filename>BJD/acl/Acl.cs
using Bjd.net;
namespace Bjd.acl {
public abstract class Acl : ValidObj {
public bool Status { get; protected set; }
public string Name { get; protected set; }
public Ip Start { get; protected set; }
public Ip End { get; protected set; }
public abst... |
Assets/aci-unity-tools/Scripts/UI/Binding/PropertyBinder.cs | umfahrem/aci-unity-tools | 1 | 7060159 | <reponame>umfahrem/aci-unity-tools
using System;
using System.Reflection;
using UnityEngine;
using UnityEngine.Events;
namespace Aci.UI.Binding
{
[DefaultExecutionOrder(-100)]
public class PropertyBinder : MonoBehaviour
{
[SerializeField]
private MonoBehaviour m_BindingContext;
[S... |
WorkData.CallBack/CallBackService.cs | wulaiwei/WorkData.QueueScheduling | 0 | 7060160 | <reponame>wulaiwei/WorkData.QueueScheduling
// ------------------------------------------------------------------------------
// Copyright 吴来伟个人 版权所有。
// 项目名:WorkData.CallBack
// 文件名:CallBackService.cs
// 创建标识:吴来伟 2018-04-20 9:03
// 创建描述:
//
// 修改标识:吴来伟2018-04-20 9:22
// 修改描述:
// ------------------------------------... |
Microsoft.Research/Contracts/MsCorlib/Original/System.IO.FileInfo.cs | jeroen-mostert/CodeContracts | 778 | 7060161 | // CodeContracts
//
// Copyright (c) Microsoft Corporation
//
// All rights reserved.
//
// MIT License
//
// 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 wit... |
AkaneFacialOSCTest/UnitTest1.cs | azwjp/AkaneFacialOSC | 1 | 7060162 | using Azw.FacialOsc.Model;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;
namespace Azw.FacialOsc.Tracking
{
[TestClass]
public class UnitTest1
{
static readonly IDictionary<FaceKey, float> data = new Dictionary<FaceKey, flo... |
src/Mazes/WeightedCell.cs | Nekketsu/MazesForProgrammers | 3 | 7060163 | <filename>src/Mazes/WeightedCell.cs
using System.Collections.Generic;
using System.Linq;
namespace Mazes
{
public class WeightedCell : Cell
{
public int Weight { get; set; }
public WeightedCell(int row, int column) : base(row, column)
{
Weight = 1;
}
publi... |
DScrib2/Views/Reviews/Index.cshtml | mikedll/dscrib | 0 | 7060164 | <filename>DScrib2/Views/Reviews/Index.cshtml<gh_stars>0
@using Newtonsoft.Json
@section head
{
<script type="text/javascript">
__bootstrap = @Html.Raw(JsonConvert.SerializeObject(ViewBag.Reviews));
</script>
}
<div class="app-container">
@if(ViewBag.Error != "")
{
<div class="error">@ViewBa... |
src/TheGame/TheGame.App/Form3.cs | imanushin/TheGame | 0 | 7060165 | using System;
using System.Drawing;
using System.Windows.Forms;
namespace TheGame.App
{
public partial class Form3 : Form
{
System.IO.StreamReader sr;
public Form3()
{
int m,s,nz;
InitializeComponent();
sr = new System.IO.StreamReader("D:\\PV\\sost.t... |
aspnet-core/src/SalesManagement.Web.Core/Models/TokenAuth/ExternalLoginProviderInfoModel.cs | NguyenVanTung11041998/SalesManaementApi | 0 | 7060166 | <gh_stars>0
using Abp.AutoMapper;
using SalesManagement.Authentication.External;
namespace SalesManagement.Models.TokenAuth
{
[AutoMapFrom(typeof(ExternalLoginProviderInfo))]
public class ExternalLoginProviderInfoModel
{
public string Name { get; set; }
public string ClientId { get; set; ... |
Assets/Scripts/Core/Audio/MusicPlayer.cs | demonixis/TES3Unity | 16 | 7060167 | using System.Collections.Generic;
using UnityEngine;
// shuffles and repeats
public class MusicPlayer
{
private List<string> songFilePaths = new List<string>();
private int currentSongIndex = -1;
private GameObject currentAudioSourceObj;
public void AddSong(string songFilePath) => songFilePaths.Add(s... |
application/Core/MORR/Data/Capture/Video/Desktop/Utility/GraphicsCaptureHelper.cs | insightmind/MORR | 5 | 7060168 | <filename>application/Core/MORR/Data/Capture/Video/Desktop/Utility/GraphicsCaptureHelper.cs
// ---------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// The MIT License (MIT)
//
// Permission is hereby granted, free of ch... |
src/libraries/System.Reflection.Emit.ILGeneration/ref/System.Reflection.Emit.ILGeneration.cs | belav/runtime | 0 | 7060170 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// ------------------------------------------------------------------------------
// Changes to this file must follow the https://aka.ms/api-review process.
// -----------------------... |
src/Domain/CodescoveryCaptureManager.Domain/Helpers/OperatingSystemHelper.cs | codescovery/captureManager | 0 | 7060171 | using System;
using CodescoveryCaptureManager.Domain.Enums;
namespace CodescoveryCaptureManager.Domain.Helpers
{
public static class OperatingSystemHelper
{
private static readonly PlatformID Platform = Environment.OSVersion.Platform;
public static bool IsWindows()
=> Platform == P... |
test/Tester.net/MainWindow.cs | malachi-iot/mc-coap | 3 | 7060172 | <filename>test/Tester.net/MainWindow.cs
using System;
using Gtk;
using CoAPNet;
using CoAPNet.Udp;
using CoAPNet.Options;
using System.Threading.Tasks;
using System.Linq;
using System.Text;
using System.IO;
public partial class MainWindow : Gtk.Window
{
const string mruuripath = "mruuri.txt";
public MainWin... |
AaronLuna.AsyncSocketServer.CLI/Menus/ServerConfigurationMenus/LocalServerSettingsMenuItems/SetUpdateIntervalMenu.cs | a-luna/tpl-sockets | 9 | 7060173 | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using AaronLuna.AsyncSocketServer.CLI.Menus.CommonMenuItems;
using AaronLuna.Common.Console.Menu;
using AaronLuna.Common.Result;
namespace AaronLuna.AsyncSocketServer.CLI.Menus.ServerConfigurationMenus.LocalServerSettingsMenuItems
{
cla... |
src/Mine.Commerce.Application/Features/Products/Model/ProductImageDto.cs | phuocquach/ms-service | 0 | 7060174 | <filename>src/Mine.Commerce.Application/Features/Products/Model/ProductImageDto.cs
using System;
namespace Mine.Commerce.Application.Products
{
public class ProductImageDto
{
public Guid Id { get; set; }
public string StorageUrl { get; set; }
public bool IsPrimary { get; set; }
}
} |
src/libraries/System.Text.Encodings.Web/tests/Extensions.cs | pyracanda/runtime | 9,402 | 7060175 | <filename>src/libraries/System.Text.Encodings.Web/tests/Extensions.cs
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace System.Text.Encodings.Web.Tests... |
Tutorials/WPF/Classic/CS/CollectionExtensionMethods.cs | an10nimus/XPO | 75 | 7060176 | <filename>Tutorials/WPF/Classic/CS/CollectionExtensionMethods.cs
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Linq;
using System.Threading.Tasks;
using DevExpress.Xpo;
namespace WpfApplication {
static class CollectionExte... |
Sources/TimeTable/MyStik.TimeTable.Web/Controllers/RoomsController.cs | AccelerateX-org/NINE | 4 | 7060177 | <gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MyStik.TimeTable.Web.Models;
namespace MyStik.TimeTable.Web.Controllers
{
public class RoomsController : BaseController
{
// GET: Rooms
public ActionResult Index()
... |
Src/Wide/Core/Services/ThemeManager.cs | Egnima/Wide | 88 | 7060178 | #region License
// Copyright (c) 2013 <NAME>
//
// 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, publi... |
Web/WebApp/Security/AuthenticateAttribute.cs | Mercally/Demos.Net | 0 | 7060179 | <reponame>Mercally/Demos.Net<gh_stars>0
using Seguridad.Common;
using System.Web.Mvc;
using System.Web.Routing;
namespace WebApp.Security
{
// Si no estamos logeado, regresamos al login
public class AuthenticateAttribute : ActionFilterAttribute
{
public override void OnActionExecuting(ActionExecut... |
CsCore/CsCoreUnity/Plugins/CsCoreUnity/com/csutil/ui/Components/ImageAspectRatioFitter.cs | dignati/cscore | 134 | 7060180 | <reponame>dignati/cscore
using UnityEngine;
using UnityEngine.UI;
namespace com.csutil.ui.Components {
[RequireComponent(typeof(Image))]
[RequireComponent(typeof(AspectRatioFitter))]
class ImageAspectRatioFitter : MonoBehaviour {
/// <summary> Set this to 0 to disable vertical parallax </summary... |
src/Pomelo.AspNetCore.Extensions/BlobStorage/IBlobAccessAuthorizationProvider.cs | qinxiaowen/dotNETCore-Extensions | 190 | 7060181 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Pomelo.AspNetCore.Extensions.BlobStorage
{
public interface IBlobAccessAuthorizationProvider<TKey>
where TKey : IEquatable<TKey>
{
bool IsAbleToDownload(TKey BlobId);
}
}
|
src/DX.Contracts/ContractMemberAttribute.cs | delimaxdev/DX.CQRS | 0 | 7060182 | using System;
namespace DX.Contracts {
[AttributeUsage(
AttributeTargets.Property,
AllowMultiple = false,
Inherited = false)]
public sealed class ContractMemberAttribute : Attribute {
public string? Name { get; set; }
public ContractMemberAttribute() { }
pub... |
cds/webapi/C#/MetadataOperations/MetadataTypes/Query/MetadataQueryExpression.cs | SrinathPegaCRM/PowerApps-Samples | 714 | 7060183 | using Newtonsoft.Json;
namespace PowerApps.Samples.Metadata.Query
{
[JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)]
public abstract class MetadataQueryExpression : MetadataQueryBase
{
public MetadataFilterExpression Criteria { get; set; }
public MetadataPropertiesExpression ... |
Listing 2-28 Using a proterty/Program.cs | benccalcyxzfi/70-483-programming-csharp | 8 | 7060184 | <reponame>benccalcyxzfi/70-483-programming-csharp<gh_stars>1-10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Listing_2_28_Using_a_proterty
{
class Customer
{
private string _nameValue;
public string Name
{... |
MyProject/MyProject01/TestCases/RateMarketTestCases/BasicRateMarketTestCase.cs | a7866353/encog-dotnet-core_work01 | 0 | 7060185 | <reponame>a7866353/encog-dotnet-core_work01
using MyProject01.TrainerFactorys;
using MyProject01.Util.DataObject;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MyProject01.Controller;
using MyProject01.Util;
namespace MyProject01.TestCases.Ra... |
Simulation/PlayGen.ITAlert.Simulation/Components/Movement/Visitors.cs | playgen/it-alert | 1 | 7060186 | using System;
using System.Collections.Generic;
using System.Linq;
using Engine.Components;
using Engine.Entities;
namespace PlayGen.ITAlert.Simulation.Components.Movement
{
public class Visitors : IComponent
{
public List<int> Values { get; set; }
public Visitors()
{
Values = new List<int>();
}
}
}
|
Demo/QueryAccountInfo/Default.aspx.designer.cs | lotosbin/yuntongxun-dotnet-sdk | 1 | 7060187 | //------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace QueryAccountInfo {
public partial c... |
Runtime/EcsRx/Extensions/EntityDatabaseManagerExtensions.cs | iNTERVR/TS.EcsRx | 0 | 7060188 | using System;
using System.Collections.Generic;
using System.Linq;
using EcsRx.Collections;
using EcsRx.Collections.Database;
using EcsRx.Collections.Entity;
using EcsRx.Entities;
namespace EcsRx.Extensions
{
public static class EntityDatabaseManagerExtensions
{
public static IEnumerable<IEntity> GetA... |
src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ViewData/ViewDataSetInViewStart/Index.cshtml | legistek/AspNetCore | 5,846 | 7060189 | @page
@namespace RazorPagesWebSite.ViewDataSetInViewStart
@model Index
@{
ViewData["ValueFromPage"] = "Value from Page";
}
Sample that shows ViewData attributes being set in a PageModel.
|
VRA.WPF/WorkerWindow.xaml.cs | devsia93/registration-of-office-expenses | 0 | 7060190 | 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;... |
doix.Fast/doix.Fast/_Options/Option.cs | arekbal/Steep | 1 | 7060192 | using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using static Throw;
using System.Diagnostics;
using System.ComponentModel;
namespace doix.Fast
{
[StructLayout(LayoutKind.Sequential, Size = 1, Pack = 1)]
[DebuggerDispl... |
EltraCommon/ObjectDictionary/Xdd/DeviceDescription/Profiles/Application/Units/XddUnitsList.cs | eltra-ch/eltra-common | 0 | 7060193 | using System.Collections.Generic;
using System.Xml;
using EltraCommon.ObjectDictionary.Xdd.DeviceDescription.Profiles.Application.Parameters;
#pragma warning disable 1591
namespace EltraCommon.ObjectDictionary.Xdd.DeviceDescription.Profiles.Application.Units
{
public class XddUnitsList
{
private List... |
Molten.IO/LibraryDetection.cs | Syncaidius/MoltenEngine | 79 | 7060194 | <reponame>Syncaidius/MoltenEngine<gh_stars>10-100
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
namespace Molten
{
public static class LibraryDetection
{
public static IEnumerable<Type> FindType<T>(Assembly assembly)
{
... |
ECSUnityVisualScript/Packages/com.unity.graphtools.foundation/Editor/VisualScripting/Editor/Inspectors/NodeModelInspector.cs | linyuan5856/ECS_UnityVisualScript | 0 | 7060195 | <reponame>linyuan5856/ECS_UnityVisualScript
using System;
using System.Collections.Generic;
using UnityEditor.EditorCommon.Extensions;
using UnityEditor.VisualScripting.GraphViewModel;
using UnityEditor.VisualScripting.Model;
using UnityEditor.VisualScripting.Model.Stencils;
using UnityEngine;
namespace UnityEditor.Vi... |
Tim-hub.Weather.Api/Program.cs | Tim-dev-hub/Openweathermap-.NET-implementation | 0 | 7060196 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tim_hub.Weather.Api
{
class Program
{
static void Main(string[] args)
{
API.key = "<KEY>";
API.DownloadIcon("11n").Save("D:/some.p... |
XMSBS.Common/XMSBS.Common.NetCore/Exceptions/NotFoundException.cs | cchaconXms/xmsbs.common | 0 | 7060197 | <reponame>cchaconXms/xmsbs.common
using System;
using System.Collections.Generic;
using System.Text;
namespace XMSBS.Common.NetCore.Exceptions
{
[Serializable]
public class NotFoundException<IDT> : Exception
{
public IDT Id { get; set; }
public String TipoEntidad { get; set; }
pub... |
src/LineBot/Events/Messages/IMessage.cs | dlemstra/line-bot-sdk-dotnet | 37 | 7060198 | <reponame>dlemstra/line-bot-sdk-dotnet
// Copyright <NAME> (https://github.com/dlemstra/line-bot-sdk-dotnet).
// Licensed under the Apache License, Version 2.0.
namespace Line
{
/// <summary>
/// Encapsulates the interface for a message.
/// </summary>
public interface IMessage : IReplyToken
{
... |
Quickstarts/Passwordless/Views/Home/Login.cshtml | RockSolidKnowledge/Samples.Fido | 2 | 7060199 | @model Rsk.AspNetCore.Fido.Dtos.Base64FidoAuthenticationChallenge
<h2>Please use your authenticator</h2>
<script>
// Challenge
let challengeBytesAsString = atob("@Html.Raw(Model.Base64Challenge)");
let challenge = new Uint8Array(challengeBytesAsString.length);
for (let i = 0; i < challengeBytesAsStri... |
tests/CSharpSqlTests.FrameworkTests/DacPacInfoTests.cs | andrewjpoole/CSharpSqlTests | 2 | 7060200 | <filename>tests/CSharpSqlTests.FrameworkTests/DacPacInfoTests.cs
using System.IO;
using System.Linq;
using System.Reflection;
using FluentAssertions;
using Xunit;
namespace CSharpSqlTests.FrameworkTests
{
public class DacPacInfoTests
{
[Fact]
public void Ctor_finds_existing_dacpac_by_name()
... |
Examples/CSharp/Articles/ErrorCheckingOptions.cs | Aspose/Aspose.Cells-for-.NET | 4 | 7060201 | <gh_stars>1-10
using System.IO;
using System;
using Aspose.Cells;
namespace Aspose.Cells.Examples.CSharp.Articles
{
public class ErrorCheckingOptions
{
public static void Run()
{
// ExStart:1
// The path to the documents directory.
string dataDir = RunExample... |
Source/ConsoleApplication1/IBoardSolver.cs | LorandBiro/SpeedSlidingTrainer | 0 | 7060202 | <filename>Source/ConsoleApplication1/IBoardSolver.cs
using System.Collections.Generic;
using System.Threading;
using SpeedSlidingTrainer.Core.Model;
using SpeedSlidingTrainer.Core.Model.State;
namespace ConsoleApplication1
{
public interface IBoardSolver
{
List<Step[]> GetSolution(BoardState state, Bo... |
src/RawRabbit/Channel/ResilientChannelPool.cs | callruby/RawRabbit | 1 | 7060203 | <reponame>callruby/RawRabbit
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using RabbitMQ.Client;
using RawRabbit.Channel.Abstraction;
using RawRabbit.Logging;
namespace RawRabbit.Channel
{
public class ResilientChannelPool : DynamicChannelPool
{
protec... |
InfoBox/Controls/Label.cs | MagicAndre1981/InformationBox | 13 | 7060204 | // <copyright file="Label.cs" company="<NAME>">
// Copyright (c) 2008 All Right Reserved
// </copyright>
// <author><NAME></author>
// <summary>Glass label</summary>
namespace InfoBox.Controls
{
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
... |
Kata/CustomTypes/Complete/DrinkFactory/Coffee.cs | contino/dotnet-training-course | 0 | 7060205 | <reponame>contino/dotnet-training-course<gh_stars>0
using System;
using System.Collections.Generic;
using System.Text;
namespace Kata.CustomTypes.DrinkFactory
{
public class Coffee : DrinkBase
{
protected override void CreateVariants()
{
throw new NotImplementedException();
... |
Shoppers Square/ViewModels/NewProductViewModel.cs | basitmir2020/shopperssquare | 0 | 7060206 | using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;
namespace Shoppers_Square.ViewModels
{
public class NewProductViewModel
{
p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.