content stringlengths 23 1.05M |
|---|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
namespace AddinFramework.Extension
{
public static class EaExtensionClass
{
public static List<EA.Connector> GetConnectorsBySql(this EA.Repository rep, string sql)
{
// run query into XDocume... |
using System.Windows.Forms;
using Microsoft.Demo;
using NUnit.Framework;
namespace Microsoft.Test
{
public class UITest
{
[Test]
public void TestSizeableForm()
{
FrmDemo frm = new FrmDemo();
frm.TestCore(FormBorderStyle.Sizable, frm);
}
[Test]
... |
using System;
using System.Text;
using Hudl.FFmpeg.Attributes;
using Hudl.FFmpeg.DataTypes;
using Hudl.FFmpeg.Filters.Attributes;
using Hudl.FFmpeg.Filters.BaseTypes;
using Hudl.FFmpeg.Filters.Interfaces;
using Hudl.FFmpeg.Formatters;
using Hudl.FFmpeg.Resources.BaseTypes;
namespace Hudl.FFmpeg.Filters
{
/// <sum... |
// Encog(tm) Artificial Intelligence Framework v2.5
// .Net Version
// http://www.heatonresearch.com/encog/
// http://code.google.com/p/encog-java/
//
// Copyright 2008-2010 by Heaton Research Inc.
//
// Released under the LGPL.
//
// This is free software; you can redistribute it and/or modify it
// under the terms ... |
using System;
using System.IO;
using System.Threading.Tasks;
using EducationSystem.Constants;
using EducationSystem.Database.Models;
using EducationSystem.Enums;
using EducationSystem.Helpers;
using EducationSystem.Interfaces.Helpers;
using EducationSystem.Interfaces.Repositories;
using EducationSystem.Specifications.... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SuperCaisse.Model;
using System;
using System.Collections.Generic;
using System.Text;
namespace SuperCaisse.Services.Tests
{
[TestClass]
public class ProviderServiceTest
{
private AuthentificationService _authentificationService = new Authe... |
// Copyright © John Gietzen. All Rights Reserved. This source is subject to the MIT license. Please see license.md for more information.
namespace Pegasus.Tests.Common
{
using NUnit.Framework;
using Pegasus.Common;
[TestFixture]
public class CacheKeyTests
{
[Test]
public void Equa... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
using System.Runtime.Serialization;
using System.Collections.Generic;
namespace PostProcessor.Model
{
[DataContract(Name = "queryResponse")]
public class QueryRaw
{
[DataMember(Name = "result")]
public List<Consoli... |
using BooksStore.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace BooksStore.Controllers
{
public class AutorController : Controller
{
private IAuthorizationFilter repository;
public AutorController()
{
... |
using System;
using Newtonsoft.Json;
namespace Conekta.Models
{
public enum ChargeStatus
{
Pending_Payment
}
public enum PaymentRange
{
For3Months = 3,
For6Months = 6,
For9Months = 9,
For12Months = 12
}
public class Charge
{
/// <summar... |
namespace BugsSL.Models
{
public class FoodModel : AgentModel
{
#region properties
public bool IsVisible { get; set; }
#endregion
#region public methods
public FoodModel() : base()
{
}
public override void Initialize()
{
Is... |
#if UNITY_EDITOR
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Map
{
/// <summary>
/// 跃迁模拟
/// </summary>
[ExecuteInEditMode]
public class LeapSimulation : MonoBehaviour
{
public MapLeap[] m_Leaps;
public void RefreshMapLeaps()
... |
using System.Threading.Tasks;
using System.Xml;
namespace Kevsoft.Ssml
{
public interface ISsmlWriter
{
Task WriteAsync(XmlWriter writer);
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ninject;
using Ninject.Parameters;
namespace Concordion.Internal
{
public static class ObjectFactory
{
private static IKernel _kernel = new StandardKernel(new ConcordionModule());
public s... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Student_Course_Enrollment
{
public partial class Form1 : Form
{
List<Student> ... |
using System.Collections.Generic;
using Magellan.ComponentModel;
using Magellan.Utilities;
namespace Magellan.Routing
{
/// <summary>
/// A base class that contains a set of registered routes.
/// </summary>
public abstract class RouteCatalog
{
private readonly Set<IRoute> routes = new Set... |
using Xunit;
namespace DotNetFileSystemWrapper.Tests.File {
public class WriteAllTextTests : TestBase {
[Fact]
public void WriteAllTextToANewFile() {
_fs.File.WriteAllText(Path("theFile.txt"), "the file content");
var content = _fs.File.ReadAllText(Path("theFile.txt"));
Assert.Equal("the file content", ... |
using Blish_HUD;
using Blish_HUD.ArcDps.Common;
using Blish_HUD.Content;
using Blish_HUD.Controls;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace KillProofModule.Controls
{
public class PlayerNotification : Container
{
private const int NOTIFICATION_WIDTH = 264;
... |
using System;
using System.Collections.Generic;
using System.Text;
namespace IacobEduard
{
class Apartamente : Imobiliar {
public Apartamente(int m_P, int camere, int etaj) : base(m_P, camere, etaj) { }
public int CalcPret()
{
if (camere == 2) { basicPret = 69000; }... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using Object = UnityEngine.Object;
public class UIManager
{
static Transform sUIRoot;
static Dictionary<Type, string> sPrefabNameDic = new Dictionary<Type, string>()
{
{ typeof(RemoteVie... |
using System.Xml;
namespace Zinc.WebServices.ProxyGenerator
{
/// <summary />
internal static class XmlExtensions
{
/// <summary />
internal static XmlElement AddElement( this XmlDocument parent, string elementName )
{
XmlElement child = parent.CreateElement( elementNam... |
// Karel Kroeze
// Resources.cs
// 2016-12-09
using UnityEngine;
using Verse;
namespace FluffyManager
{
[StaticConstructorOnStartup]
public static class Resources
{
public static readonly Color Orange = new Color( 1f, 144 / 255f, 0f ),
Sl... |
using BepInEx.Logging;
using FistVR;
using H3MP.Configs;
using H3MP.HarmonyPatches;
using H3MP.Messages;
using H3MP.Models;
using H3MP.Utils;
using System;
using System.Collections.Generic;
using UnityEngine;
namespace H3MP.Peers
{
public class Puppet : IRenderUpdatable, IDisposable
{
// Should slowly shrink to pr... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
namespace ZorroConsole
{
internal class Program
{
static void Main(string[] args)
{
bool repeat;
string userInput = "APPTEST START";
const string stopWord = "APPTEST STOP";
co... |
using System;
using System.Linq;
using Microsoft.Extensions.DependencyInjection;
using Topocat.Common;
namespace Topocat.API.Extensions
{
public static class ServiceCollectionExtensions
{
public static void RegisterServicesByAttributes(this IServiceCollection service)
{
AppDomain.C... |
using System;
using System.IO;
namespace SnapTest.Tests
{
/// <summary>
/// Helper class that builds a SnapshotSettings that readers and writes snapshot data in a temporary file.
/// </summary>
/// <remarks>
/// TempFileSnapshotSettings objects should be disposed once they are no longer n... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TF.Core;
using FixedPointy;
public class PlayerController : MonoBehaviour
{
public TFRigidbody rb;
public CharacterController2D charController;
public Fix movementSpeed = (Fix)0.3f;
public FixVec2 velo;
private... |
using System.Collections.Generic;
using Notifier.Interfaces;
namespace Notifier
{
public class NotificationStack : INotificationStack
{
List<INotification> notifications = new List<INotification>();
public void AddNotification(INotification notification)
{
notificat... |
using System;
namespace Xamalist.Commons
{
public static class StringExtentions
{
public static bool IsNullOrEmpty(this string self)
{
return string.IsNullOrEmpty(self);
}
}
}
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEditor.UIElements;
using UnityEditor.Experimental.GraphView;
using UnityEngine.UIElements;
using GraphProcessor;
using System.Linq;
[NodeCustomEditor(typeof(ParameterNode))]
public class ParameterNodeView : Bas... |
//-----------------------------------------------------------------------
// <copyright file="ListingImage.cs" company="AFS">
// This source code is part of Netsy http://github.com/AnthonySteele/Netsy/
// and is made available under the terms of the Microsoft Public License (Ms-PL)
// http://www.opensource.org/lice... |
using Hl7.Fhir.Model;
using System;
using System.Collections.Generic;
using System.Text;
namespace Eir.FhirKhit.R4
{
public static class ElementDefinitionExtensions2
{
public static ElementDefinition Path(this ElementDefinition e, String value)
{
e.Path = value;
return ... |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Globalization;
using Microsoft.AspNetCore.Razor.Language;
using Microsoft.CodeAnalysis.Text;
using OmniSharp.Extensions.LanguageServer.Pro... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Wi... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CursoWindowsForms
{
public partial class Frm_DemonstracaoKey : Form
{
public F... |
using System.Collections.Generic;
using System.Threading.Tasks;
using Contracts.Models;
namespace Contracts.Repositories
{
public interface IClassesRepository
{
public Task<IClass> GetById(int id);
public Task<ICollection<IClass>> GetGroupClasses(IGroup group)
=> GetGroupClasses(gr... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO.Ports;
namespace SMBdevices
{
public class smbTempController
{
public string m_port;
private SerialPort m_serialport;
public enum TempConType
{
... |
/* Generated by QSI
Date: 2020-08-12
Span: 2287:1 - 2292:26
File: src/postgres/include/nodes/parsenodes.h
*/
namespace Qsi.PostgreSql.Internal.PG10.Types
{
internal enum ImportForeignSchemaType
{
FDW_IMPORT_SCHEMA_ALL = 0,
FDW_IMPORT_SCHEMA_LIMIT_TO = 1,
FDW_IMPORT_SCHEMA_EXCEPT = ... |
namespace OpenRcp
{
public class SplashCloseMessage : MessageBase
{
}
}
|
namespace OmniXaml
{
public class PositionalParameter
{
public object Instance { get; }
public PositionalParameter(object instance)
{
Instance = instance;
}
}
} |
@using Microsoft.AspNetCore.Identity
@using inventory
@using inventory.Models
@using inventory.Models.AccountViewModels
@using inventory.Models.ManageViewModels
@using inventory.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
/* UserInterface.cs
* Authors: Natasha Graham, Katherine Ventura, Benjamin Archibeque
* EM2Project
*/
using System;
using System.Drawing;
using System.Windows.Forms;
using RandN;
using RandN.Distributions;
namespace EM2Project
{
public partial class UserInterface : Form
{
YValues _ycurrent = new Y... |
#if OLD_INPUT
using System;
using mulova.commons;
namespace mulova.comunity {
[System.Serializable]
public class InputEventMapping
{
public EnumWrapper axis = new EnumWrapper(typeof(InputAxis));
public EnumWrapper evt = new EnumWrapper(typeof(InputEvent));
public EnumWrapper trigger = new EnumWrapper(typeof... |
using Windows.Foundation;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
namespace Wokhan.UI.Xaml.Controls
{
public sealed partial class ItemsControlGrid : ItemsControl
{
public ItemsControlGrid() : base()
{
}
/* public ColumnDefinitionCollection ColumnDefinitions
... |
using System.Collections.Generic;
namespace MLSoftware.OTA
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "4.2.0.31")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serializat... |
namespace BuyHouse.Services.Home
{
using BuyHouse.Models.Home;
using System.Collections.Generic;
public interface IHomeService
{
IndexViewModel GetCounts();
List<PropertyViewModel> GetLast();
}
}
|
namespace TssSqlToMongo.Core
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Autofac;
using TssSqlToMongo.ReadModel.Handlers;
public class BusRegistrar
{
private readonly IContainer serviceLocator;
private static read... |
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using NSE.Core.Data;
namespace NSE.Pagamentos.API.Models
{
public interface IPagamentoRepository : IRepository<Pagamento>
{
void AdicionarPagamento(Pagamento pagamento);
void AdicionarTransacao(Transacao transacao);
... |
namespace Orchard.Azure.MediaServices.ViewModels.Tasks {
public class EncryptViewModel {
public bool AdjustSubSamples { get; set; }
public string ContentKey { get; set; }
public string CustomAttributes { get; set; }
public string DataFormats { get; set; }
public string ... |
/// <summary>
/// The scoping level of the description configuration
/// </summary>
public enum DescriptionScope
{
/// <summary>
/// The description configuration is not defined for the attribute
/// </summary>
Undefined,
/// <summary>
/// The description configuration applies only to the curren... |
using System.Collections;
using UnityEngine.SceneManagement;
using UnityEngine;
namespace Scripts.Core
{
public class MainMenu : MonoBehaviour
{
[SerializeField] Animator _animator;
[SerializeField] GameObject _startButton, _blackFader;
[SerializeField] AudioSource _catASrc;
Au... |
using UnityEngine;
namespace Scripts
{
public class ClickManager : MonoBehaviour
{
private Camera _camera;
void Awake()
{
_camera = GetComponent<Camera>();
}
void Update()
{
if (Input.GetMouseButtonDown(0))
{
... |
namespace MLSoftware.OTA
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "4.2.0.31")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=... |
using FactoryMethod.Heroes;
namespace FactoryMethod.Factories
{
interface IHeroFactory
{
IHero CreateHero();
}
}
|
namespace AdsPortal.Shared.Infrastructure.Common.Extensions
{
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Caching.Distributed;
public static class DistributedCaching
{
public static async Task SetAsync<T>(this IDistributedCache distributedCache,
... |
using System;
using System.Collections.Generic;
namespace PsISEProjectExplorer.Model.DocHierarchy.Nodes
{
public class DefaultNodeComparer : IComparer<INode>
{
public static readonly IComparer<INode> NodeComparer = new DefaultNodeComparer();
public int Compare(INode x, INode y)
... |
using System;
using System.Xml;
using GenieLamp.Core;
namespace GenieLamp.Core.Utils
{
/// <summary>
/// Fully qualified name
/// </summary>
class QualName
{
private string schema = Const.EmptyName;
private string name = Const.EmptyName;
#region Constructors
public QualName()
{ }
... |
/*
* Copyright (c) 2011-2014, Longxiang He <helongxiang@smeshlink.com>,
* SmeshLink Technology Co.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY.
*
* This file is part of the CoAP.NET, a CoAP framework in C#.
* Please see README for more information.
*/
usin... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using VitoriaRestaurante.Models;
using VitoriaRestaurante.Repositorios;
namespace VitoriaRestaurante.Controllers
{//http://localhost:53236/Home/Cliente?nome=rafael&restaurante=chiqtop&comen... |
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using ZBrad.AsyncLib;
using System.Threading;
using System.Diagnostics.CodeAnalysis;
using ZBrad.AsyncLib.Collections;
namespace Tests
{
class NodeList<T> where T : ILink, IEquatable<T>, IClone<T>
{
T[] values;
public T[] Values... |
using System;
using System.Collections.Generic;
using System.Linq;
namespace RestApiServer
{
internal class RestApiServerSource : IRestApiServerSource
{
public RestApiServerSource(IEnumerable<RestSet> restSets)
{
RestSets = restSets
.GroupBy(x => x.DbContextType.Nam... |
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace Open.Serialization.Json;
/// <inheritdoc />
public class JsonObjectSerializer : ObjectSerializer, IJsonObjectSerializer, IJsonAsyncObjectSerializer
{
/// <inheritdoc />
public JsonObjectSerializer(
Func<string, Type, o... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BobUpAndDown : MonoBehaviour {
public float bobSpeed = 0.5f;
public float bobAmplitude = 1.5f;
public float bobPhase = 0;
public int lastBobPixels = 0;
void Update() {
bobPhase += bobSpeed * Time.deltaTime;
bobPhase... |
using System.Collections.Generic;
namespace Our.Umbraco.Ditto
{
/// <summary>
/// Temporary model for transferring values from a controller to the view
/// </summary>
internal class DittoTransferModel
{
/// <summary>
/// Initializes a new instance of the <see cref="DittoTransferMod... |
namespace RequestRouter.ProductCyber.Tests
{
using System;
using System.Collections.Generic;
using Xunit;
public class SmashingBrokerTests
{
[Fact]
public void SmashingBrokerRequestExists() {
var req = new SmashingBrokerRequest();
}
[Fact]
public... |
using Microsoft.Extensions.Internal;
using System;
namespace Yeast.Multitenancy.Tests.Mocks
{
public class MockISystemClock : ISystemClock
{
public MockISystemClock()
{
UtcNow = DateTime.UtcNow;
}
public DateTimeOffset UtcNow { get; set; }
public void Add(... |
using Leak.Common;
using Leak.Networking.Core;
using Leak.Peer.Receiver.Events;
namespace Leak.Peer.Receiver
{
public static class ReceiverExtensions
{
public static int GetSize(this NetworkIncomingMessage incoming)
{
return incoming[3] + incoming[2] * 256 + incoming[1] * 256 * 256... |
// SPDX-License-Identifier: MIT
// Copyright © 2020 Patrick Levin
namespace PaintDotNet.Effects.ML.StyleTransfer
{
using System;
/// <summary>
/// Value that is limited to a given range
/// </summary>
/// <typeparam name="T">Value type</typeparam>
public class RangedValue<T> where ... |
using Microsoft.EntityFrameworkCore;
namespace ToDoListApp.Models
{
public class ToDoDbContext : DbContext
{
public ToDoDbContext (DbContextOptions<ToDoDbContext> options) : base (options)
{
}
public DbSet<ToDoItem> ToDoItems { get; set; }
public DbSet<ToDoList> ToD... |
using System;
using Microsoft.AspNetCore.Mvc;
using System.Net.Http.Headers;
namespace Chapter_07_BasicAuthServer.Controllers
{
[ApiController]
[Route("[controller]")]
public class EchoController : ControllerBase
{
[HttpGet]
public String Get()
{
var authHeader = Htt... |
using System;
using EraCS.UI.EraConsole;
namespace EraCS.Core.Test.Program
{
public class TestProgram : EraProgram<EraConsole>
{
public TestVariableData VarData { get; private set; } = new TestVariableData();
public TestProgram() : base(new EraConsole())
{
Console.SetBack... |
using Microsoft.AspNetCore.Identity;
namespace Mcrio.AspNetCore.Identity.On.RavenDb.Model.User
{
/// <summary>
/// Class that represents a token the <see cref="RavenIdentityUser" /> object can contain.
/// </summary>
public class RavenIdentityToken
{
/// <summary>
/// Initializes a ... |
using System;
using System.Collections.Generic;
using BLD.Helpers;
using UnityEngine;
public class HotScenesController : MonoBehaviour
{
public static HotScenesController i { get; private set; }
public event Action OnHotSceneListFinishUpdating;
public event Action OnHotSceneListChunkUpdated;
public L... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraController : MonoBehaviour
{
public float moveSpeed;
public float zoomSpeed;
// Update is called once per frame
void Update()
{
if (Input.GetKey(KeyCode.W))
transform.Tr... |
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//
namespace OfferManagement.VisaClient
{
public class VisaConstants
{
/// <summary>
/// Community name
/// </summary... |
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Collections;
using System.Globalization;
using System.Web.Script.Serialization;
namespace Rally.RestApi.Json
{
/// <summary>
/// Representation of a Rally object
/// </summary>
[Serializable]
public class DynamicJsonObject : Dynam... |
namespace CSS.Packets.Messages.Server
{
// Packet 25006
internal class AllianceWarAttackEventMessage : Message
{
public AllianceWarAttackEventMessage(Device client) : base(client)
{
this.Identifier = 25006;
}
}
} |
using System.Collections.Generic;
namespace LinqToDB.SchemaProvider
{
/// <summary>
/// Describes table-like objects such as tables, views, procedure or function results.
/// </summary>
public class TableSchema
{
/// <summary>
/// Gets unique table identifier, based on name, schema and database nam... |
using System.Web.Mvc;
using Umbraco.Core.Models;
using Umbraco.Web.Models;
using UmbracoWithReactJs.Models;
using UmbracoWithReactJs.Model_Adapter.Interafaces;
using ActionResult = System.Web.Mvc.ActionResult;
namespace UmbracoWithReactJs.Controllers
{
public class DefaultController : Umbraco.Web.Mvc.RenderMvcCo... |
namespace BLToolkit.Data
{
/// <summary>
/// Defines the method how a scalar value is returned from the server.
/// </summary>
public enum ScalarSourceType
{
/// <summary>
/// A call to <see cref="DbManager"/>.<see cref="DbManager.ExecuteReader()"/>
/// then <see cref="System.Data.IDataReader"/>.<se... |
using System.Linq;
using StackExchange.Redis;
using NUnit.Framework;
using NExpect;
using static NExpect.Expectations;
namespace PeanutButter.TempRedis.Tests
{
[TestFixture]
public class TestTempRedis
{
[Test]
public void ShouldStartUp()
{
// Arrange
using va... |
using System;
using DefaultEcs;
using RealisticBleeding.Components;
namespace RealisticBleeding.Systems
{
public class SurfaceBloodDropOptimizationSystem : BaseSystem
{
private readonly int _maxBloodDrops;
private static int _currentIndex;
public SurfaceBloodDropOptimizationSystem(EntitySet entitySet, int ... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CubeTemp : MonoBehaviour
{
private management Manager;
private Color baseColor;
private Color hoverColor;
private Color clickColor;
private void Start()
{
Manager = GameObject.Find("Manager... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CollisionReporter : MonoBehaviour
{
private void OnCollisionEnter(Collision collision)
{
EventBetter.Raise(new CollisionMessage()
{
reporter = GetComponent<Collider>(),
collis... |
using Avalonia;
using WindowIcon = Avalonia.Controls.WindowIcon;
using Avalonia.Data.Converters;
using Avalonia.Media;
using Avalonia.Media.Imaging;
using Avalonia.Platform;
using System;
using Icon = System.Drawing.Icon;
using System.Drawing.Imaging;
using System.Collections.Generic;
using System.Globalization;
using... |
using System;
using System.IO;
using System.Text;
namespace RobotParser.Core
{
[Serializable]
public class CoreFileStream:CoreStringStream
{
protected string fileName;
public override string SourceName
{
get
{
return this.fileName;
}
}
public CoreFileStream(string fileName)
: this(... |
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
namespace Xunit.Sdk
{
/// <summary>
/// Default implementation of <see cref="IMessageAggregator"/>.
/// </summary>
public class MessageAggregator : IMessageAggregator
{
/// <summary>
/// Gets the s... |
namespace AleRoe.CecSharp.Model
{
/// <summary>
/// CEC UI command values.
/// </summary>
public enum UiCommand : byte
{
Select = 0x00,
Up = 0x01,
Down = 0x02,
Left = 0x03,
Right = 0x04,
RightUp = 0x05,
RightDown = 0x06,
LeftUp = 0x07,... |
using System;
namespace _09._Padawan_Equipment
{
class Program
{
static void Main(string[] args)
{
decimal moneyAmount = decimal.Parse(Console.ReadLine());
int students = int.Parse(Console.ReadLine());
decimal lightsabersPrice = decimal.Parse(Console.ReadLin... |
@using Sloth.Core.Models
@model IEnumerable<Source>
@{
ViewBag.Title = "Sources";
}
<div class="container">
<h2>@ViewBag.Title</h2>
<partial name="_SourcesTable" model="Model" />
</div>
@section AdditionalScripts
{
<script>
// setup tables
var sourcesTable = $('#sourcesTable').DataTa... |
using System;
namespace VoyageIntoDeadlocking.ExplicitSubscriptionsGrains
{
public static class ExplicitConstants
{
public const string SmsStreamName = "SMS";
public const string SmsStreamNamespace = "SmsNamespace";
public const string RadioStreamName = "Voyager";
public cons... |
using TechZoneAPI.Infrastructure.Extensions;
var builder = WebApplication.CreateBuilder(args);
builder.Services
.AddDatabase(builder.Configuration)
.AddIdentity()
.AddJwtAuthentication(builder.Services.GetJwtSettings(builder.Configuration))
.AddCors()
.AddApplicationServices()
.AddSwagger()
... |
using BusinessLayer.Interface;
using DTO;
using MongoDbAccess;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BusinessLayer
{
public class PlatformManager : IPlatformManager
{
private PlatformAccess _PlatformAccess = new Pl... |
using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GameOfDrones.Models;
namespace GameOfDrones.Data.Map
{
public class GameMap : EntityTypeConfiguration<Game>
{
public GameMap()
... |
using System.Text.RegularExpressions;
using ICSharpCode.AvalonEdit.Document;
namespace Dotc.Wpf.Controls.SearchableTextBlock
{
internal class SearchResult : TextSegment
{
internal Match Data { get; set; }
}
}
|
using System;
namespace Light.Data
{
internal class LightBooleanConstantQueryExpression : QueryExpression, ISupportNotDefine
{
private readonly object _value;
private bool _not;
public LightBooleanConstantQueryExpression (object value)
: base (DataEntityMapping.Default)
{
_value = value;
}
publ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
namespace Microsoft.Bot.Builder.Dialogs.Choices
{
public class Channel
{
public class Channels
{
public const string Facebook = "facebook";
public const string Skype = "skype... |
namespace MvcForum.Web.ViewModels.ExtensionMethods
{
using System;
using System.Collections.Generic;
using System.Linq;
using Core.Models.Entities;
using Topic;
public static partial class TopicViewModelExtensions
{
public static Topic ToTopic(this CreateEditTopicViewModel viewMode... |
using Microsoft.WindowsAzure.Storage.Table;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Microsoft.WindowsAzure.Storage.STable
{
internal sealed class STableEntity : ITableEntity
{
public string PartitionKey { get; set; ... |
using System;
namespace PacketDotNet.Utils
{
public static class LazyExtensions
{
/// <summary>
/// Evaluates the specified lazy function, if necessary.
/// </summary>
/// <param name="lazy">The lazy.</param>
public static void Evaluate<T>(this Lazy<T> lazy)
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.