text stringlengths 1 932k |
|---|
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
using System.Collections.Generic;
using System.Text;
namespace NCoreEventClient.Models
{
public enum SubscriptionTypes { Event, Object }
public class Subscription
{
/// <summary>
/// Type of <seealso cref="Subscription... |
/* Copyright 2013-2014 Daikon Forge */
using UnityEngine;
using UnityEditor;
using System;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Linq;
using System.Reflection;
using System.Collections;
using System.Collections.Generic;
using Object = UnityEngine.Object;
[CustomEdito... |
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
using Stride.Core;
using Stride.Data;
namespace St... |
using System;
using System.Linq;
using System.Threading.Tasks;
using DAL.APP.EF;
using Domain.Identity;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
#pragma warning disable 1591
namespace WebApp.Areas.Admin.Controllers
{
[Area("Admin")]
[Authori... |
using System;
using System.Reflection;
using Abp.Dependency;
using Abp.Domain.Entities;
using Abp.EntityFramework;
using Abp.Reflection.Extensions;
using Castle.Core.Logging;
namespace Abp.EntityFrameworkCore.Repositories
{
public class EfCoreGenericRepositoryRegistrar : IEfCoreGenericRepositoryRegistrar, ITransi... |
using BizHawk.Emulation.Common;
namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
{
public partial class GambatteLink : ISettable<GambatteLink.GambatteLinkSettings, GambatteLink.GambatteLinkSyncSettings>
{
private GambatteLinkSettings _settings;
private GambatteLinkSyncSettings _syncSettings;
public Gambatt... |
namespace Microsoft.Bot.Builder.Connector
{
/**
\page gettingstarted Getting started with the %Connector
The %Microsoft %Bot %Connector is a communication service that helps you connect your %Bot with many different
communication channels (Skype, SMS, email, and others). If you write a conversational %Bot or age... |
using UnityEngine;
using System.Collections;
using Uduino;
public class ButtonTrigger : MonoBehaviour
{
public GameObject button;
UduinoManager u;
// Solution 1:
void Awake()
{
UduinoManager.Instance.OnDataReceived += OnDataReceived; //Create the Delegate
UduinoManager.Instance.... |
using Microsoft.AspNetCore.Authentication;
namespace DqtApi.Security
{
public class ApiKeyAuthenticationOptions : AuthenticationSchemeOptions
{
}
} |
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading;
namespace LitJWT
{
public class JwtAlgorithmResolver
{
ReadOnlyUtf... |
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Text.RegularExpressions;
using Microsoft.Recognizers.Definitions.Chinese;
namespace Microsoft.Recognizers.Text.Number.Chinese
{
public class FractionExtractor : BaseNumberExtractor
{
public FractionExtractor()
... |
using System;
namespace UniversalVariable
{
public static class DoubleExtensions
{
public static bool IsIntegral(this double d)
{
if (double.IsNaN(d) || double.IsInfinity(d))
{
return false;
}
return (d % 1).IsNearlyZero();
... |
using HearstMappingsEditor.Common.Exceptions;
using HearstMappingsEditor.Data.Context;
using HearstMappingsEditor.Data.Models;
using System;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Linq;
using System.Data.Entity;
using HearstMappingsEditor.Common;
namespace HearstMappingsEditor.Da... |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.XR.WSA;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.XR.WSA
{
[MovedFrom("UnityEngine.VR.WSA")]
[System.Obsolete("Support for built-in VR will be removed in Unity 2020.1. Please update to the new ... |
using AT.StoreNet.Domain.Contracts.Repositories;
using AT.StoreNet.Domain.Entities;
using System.Collections.Generic;
using System.Linq;
namespace AT.StoreNet.Data.EF.Repositories
{
public class RepositoryEF<T> : IRepository<T> where T : Entity
{
protected readonly ATStoreDataContextEF _db;
p... |
using System;
using System.Linq;
using NtfsSharp.Exceptions;
using NtfsSharp.Factories.FileRecords;
using NtfsSharp.Files;
using NtfsSharp.Helpers;
namespace NtfsSharp.Facades
{
public static class FileRecordFacade
{
/// <summary>
/// Builds a FileRecord using data and fixes it up (from the up... |
using System.Windows;
namespace Nuclear.Wpf.Demo.NetFX {
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window {
public MainWindow() {
InitializeComponent();
}
}
} |
using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.WebCore.Mapper
{
public class RegisterMapProfile : Profile
{
//添加你的实体映射关系和出参字段
//public RegisterMapProfile()
//{
// #r... |
using Microsoft.Tools.WindowsInstallerXml.Msi;
using System;
using System.Text;
namespace LessMsi.Gui.Extensions
{
public static class SummaryInformationExtensions
{
/// <summary>
/// There is a bug in Wix where it does not correctly return data with the FILETIME type.
/// This extension method manually retri... |
using Translation.Common.Models.Base;
using Translation.Common.Models.DataTransferObjects;
namespace Translation.Common.Models.Responses.Admin
{
public class AdminDemoteResponse : BaseResponse<UserDto>
{
}
} |
using System;
namespace Spectre.Console.Rendering
{
/// <summary>
/// Represents an old school ASCII border.
/// </summary>
public sealed class AsciiBoxBorder : BoxBorder
{
/// <inheritdoc/>
public override string GetPart(BoxBorderPart part)
{
return part switch
... |
using System.Diagnostics;
using System.IO;
using System.Windows;
using MetroRadiance.UI;
using Microsoft.Practices.ServiceLocation;
using Norma.Delta.Services;
using Norma.Eta;
using Norma.Eta.Models;
using Norma.Eta.Services;
using Norma.Models;
using Norma.Models.Browser;
using Norma.Views;
namespace Norma
{
... |
/*
* Copyright Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fi... |
// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
//
// 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, co... |
using WinRTXamlToolkit.Sample.Common;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
namespace WinRTXamlToolkit.Sample.Views
{
public sealed partial class GaugeTestView : UserControl
{
public GaugeTestView()
{
this.InitializeComponent();
}
}
public class Ga... |
using System;
using System.Linq;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using NSubstitute;
using WebDav.Client.Tests.TestDoubles;
using Xunit;
namespace WebDav.Client.Tests.WebDavClientTests
{
public class LockTests
{
[Fact]
public async void When_RequestIs... |
// Copyright 2008 Louis DeJardin - http://whereslou.com
//
// 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 ap... |
//Copyright (c) 2018 Yardi Technology Limited. Http://www.kooboo.com
//All rights reserved.
using Kooboo.Data.Context;
using Kooboo.Data.Interface;
using Kooboo.Sites.Extensions;
using System;
using System.ComponentModel;
namespace KScript.Sites
{
public class BinaryRepository : RepositoryBase
{
... |
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using Newtonsoft.Json;
namespace YaR.Clouds.Base.Repos.YandexDisk.YadWeb.Models
{
class YadPostData
{
public string Sk { get; set; }
public string IdClient { get; set; }
public List<YadPostModel> Models { get; ... |
using System;
using System.Collections.Generic;
namespace PluginTester
{
public class Context
{
public string FrameworkAssemblyPath { get; set; }
public string PluginPath { get; set; }
public List<string> DataPaths { get; set; } = new List<string>();
public string LocationIdent... |
// <copyright file="RestrictedProcessExecutor.cs" company="Nikolay Kostov (Nikolay.IT)">
// Copyright (c) Nikolay Kostov (Nikolay.IT). All Rights Reserved.
// Licensed under the Apache License. See LICENSE in the project root for license information.
// </copyright>
using System;
using System.Collections.Generic;
usi... |
using System;
namespace MicroOrm.Dapper.Repositories.Attributes
{
/// <summary>
/// UpdatedAt. Warning!!! Changes the property during SQL generation
/// </summary>
public sealed class UpdatedAtAttribute : Attribute
{
}
} |
using System.IO;
using System.Text;
using System.Threading.Tasks;
using HotChocolate.Types;
namespace HotChocolate.AspNetCore.Utilities;
public class UploadQuery
{
public async Task<string> SingleUpload(IFile file)
{
await using Stream stream = file.OpenReadStream();
using var sr = new StreamR... |
using System;
using System.ComponentModel;
using EfsTools.Attributes;
using EfsTools.Utils;
using Newtonsoft.Json;
namespace EfsTools.Items.Nv
{
[Serializable]
[NvItemId(3505)]
[Attributes(9)]
public class Gsm1900RxGainRange5FreqComp
{
[ElementsCount(16)]
[ElementType("uint16")]
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
namespac... |
@model WebMVCApp.Models.Carro
@{
ViewBag.Title = "Edit";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>Edit</h2>
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
<h4>Carro</h4>
<hr />
@Html.ValidationSummary(true, "", new { @class = "... |
using Pashmak.Core.Condition;
using UnityEngine;
using UnityEngine.Events;
namespace Pashmak.Core.CU._UnityEngine._Application
{
public class CU_Condition_InternetReachability : CU_Component, ICondition, IDebug
{
// variable________________________________________________________________
[Ser... |
using System;
using System.ComponentModel;
using Wizard.UI;
namespace DAnTE.Inferno
{
public partial class ctlMSMSPerformWizPage : Wizard.UI.InternalWizardPage
{
public ctlMSMSPerformWizPage()
{
InitializeComponent();
Environment.GetFolderPath(Environment.SpecialFolder.M... |
// -----------------------------------------------
// Author: Ramon Bollen
// File: DependencyProperties.ViewModelBase.cs
// Created on: 20210329
// -----------------------------------------------
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.ComponentModel;
using System... |
using Carts.ShoppingCarts.AddingProduct;
using Carts.ShoppingCarts.ConfirmingCart;
using Carts.ShoppingCarts.InitializingCart;
using Carts.ShoppingCarts.Products;
using Carts.ShoppingCarts.RemovingProduct;
using Core.Extensions;
using Marten.Events.Aggregation;
namespace Carts.ShoppingCarts.GettingCartById;
public cl... |
// Copyright 2020 the original author or authors.
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... |
using System;
using System.Diagnostics;
using System.IO;
namespace EdgeRedirector.Core
{
public class Program
{
private const string GuiFileName = "EdgeRedirector.UI.exe";
public static void Main(string[] args)
{
if (args.Length == 1)
{
string u... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using System.Web.SessionState;
namespace ViewsAssembly.ViewsControllers
{
public class AssemblyViewEnginer: System.Web.Mvc.MvcWebRazorHostFactory
{
... |
namespace DBSync
{
partial class DummyPropertyWindow
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
///... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.... |
using System.Runtime.Serialization;
using System.Collections.Generic;
using System.Linq;
namespace GhostSharper.Models
{
/// <summary>
/// Instanced items can have perks: benefits that the item bestows.
/// </summary>
/// <summary>
/// These are related to DestinySandboxPerkDefinition, and sometime... |
/*
*Ваши права на использование кода регулируются данной лицензией http://o-s-a.net/doc/license_simple_engine.pdf
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using OsEngine.Charts.CandleChart.Indicators;
using OsEngine.Entity;
namespace OsEngine.OsMiner.Patterns
{
/// <summary... |
using System;
namespace LibHac.Kvdb
{
public interface IExportable
{
int ExportSize { get; }
void ToBytes(Span<byte> output);
void FromBytes(ReadOnlySpan<byte> input);
/// <summary>
/// Prevent further modification of this object.
/// </summary>
void Fr... |
using Microsoft.AspNetCore.Authorization;
namespace Masny.Basic.AuthorizationRequirments
{
public static class AuthorizationPolicyBuilderExtensions
{
public static AuthorizationPolicyBuilder RequireCustomClaim(this AuthorizationPolicyBuilder builder, string claimType)
{
builder.Add... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NumberChecker
{
class Program
{
static void Main(string[] args)
{
string number = Console.ReadLine();
long integer = 0;
double float... |
using System.ComponentModel.DataAnnotations;
namespace Lykke.Pay.Service.Invoces.Models.Invoice
{
public class NewInvoiceModel
{
[Required]
public string MerchantId { get; set; }
[Required]
public string InvoiceNumber { get; set; }
[Required]
public double Amoun... |
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using AForge.Imaging.Filters;
using CrazyRestaurant.Common;
using CrazyRestaurant.Properties;
namespace CrazyRestaurant
{
public par... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace RPG.Core
{
public class DestroyAfterEffect : MonoBehaviour
{
[SerializeField] GameObject targetToDestroy = null;
void Update()
{
if (!GetComponent<ParticleSystem>().IsAlive())
... |
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: enfonica/numbering/v1beta1/phone_number_instances.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobu... |
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6365, generator: {generator})
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
namespace Commvault.Powershell.Models
{
using static Commvault.Powershell.Runtime.Extensions;
/// <summary>RMCreateReques... |
using Microsoft.Data.Sqlite;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore.Sqlite;
using Volo.Ab... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using Newtonsoft.Json;
using PowerArgs;
using ScriptCs.Contracts;
namespace ScriptCs.Argument
{
public class ConfigFileParser : IConfigFileParser
{
private readonly IConsole _consol... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace ItDepends
{
using ItDepends.Library;
public class GraphvizDotOutput
{
private void InitReference(StringBuilder output, List<string> existingNodes, string nodeName, string label, string shape)
... |
using AutoMapper;
using AutoMapper.QueryableExtensions;
using Microsoft.EntityFrameworkCore;
using ShopCoreApp.Data.Entities;
using ShopCoreApp.Data.IRepositories;
using ShopCoreApp.Infrastructure.Enums;
using ShopCoreApp.Infrastructure.Interfaces;
using ShopCoreApp.Service.Interfaces;
using ShopCoreApp.Service.ViewMo... |
/**
* Copyright 2013 Canada Health Infoway, Inc.
*
* 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 applicab... |
/*
Copyright 2017 YANG Huan (sy.yanghuan@gmail.com).
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 ... |
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
//
// To add a suppression to this file, right-click the message in the... |
using System.Collections.Generic;
using System.Threading.Tasks;
using NUnit.Framework;
namespace Reducto.Tests
{
public struct LoginInfo
{
public string username;
}
[TestFixture]
public class AsyncActions
{
[Test]
public async Task should_allow_for_async_execution_of_c... |
using System;
using NetOffice;
namespace NetOffice.WordApi.Enums
{
/// <summary>
/// SupportByVersion Word 9, 10, 11, 12, 14, 15
/// </summary>
///<remarks> MSDN Online Documentation: http://msdn.microsoft.com/en-us/en-us/library/office/ff196523.aspx </remarks>
[SupportByVersionAttribute("Word", 9,10,11,12,14,... |
// Copyright (C) 2003-2010 Xtensive LLC.
// All rights reserved.
// For conditions of distribution and use, see license.
// Created by: Alexey Kochetov
// Created: 2008.02.04
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using Xtensive.Core;
namespace Xtensive.Compa... |
//-----------------------------------------------------------------------------
// Copyright : (c) Chris Moore, 2020
// License : MIT
//-----------------------------------------------------------------------------
namespace Z0
{
using Z = Zero;
partial struct Root
{
/// <summary>
//... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UFO.Server.Domain;
namespace UFO.Server.Bll.Common
{
public interface ISessionBll
{
SessionToken RequestSessionId(User resultObject);
void DeleteUserSession(SessionToken to... |
namespace _01.UniqueUsernames
{
using System;
using System.Collections.Generic;
public class UsernamesInHashSet
{
public static void Main()
{
var n = int.Parse(Console.ReadLine());
var usernames = new HashSet<string>();
for (int i = 0; i < n; i++)
... |
using NUnit.Framework;
using Rhino.Mocks;
using StoryTeller.Model;
using StoryTeller.Testing;
using StoryTeller.UserInterface.Examples;
using StoryTeller.UserInterface.Screens;
using StructureMap;
namespace StoryTeller.UserInterface.Testing.UI.Examples
{
[TestFixture]
public class FixtureNodeSubjectIntegratedT... |
// <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 Gov.Jag.PillPressRegistry.Interfaces
{
using Microsoft.Rest;
using Models;
using Newtonsoft.Json;
using ... |
//
// CSVReaderTest.cs
//
// Author:
// tsntsumi <tsntsumi@tsntsumi.com>
//
// Copyright (c) 2016 tsntsumi
//
// 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, in... |
using System.IO;
namespace Tiny.RestClient
{
/// <summary>
/// Interface IMultiPartFromDataRequest.
/// </summary>
/// <seealso cref="IMultipartFromDataRequest"/>
/// <seealso cref="IExecutableRequest"/>
public interface IMultiPartFromDataExecutableRequest : IMultipartFromDataRequest, IExecuta... |
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6365, generator: {generator})
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
namespace Commvault.Powershell.Models
{
using Commvault.Powershell.Runtime.PowerShell;
/// <summary>
/// A PowerShell... |
using Microsoft.EntityFrameworkCore;
using PlainCore.Core.DomainModels.Tenants;
using System;
using System.Collections.Generic;
using System.Text;
namespace PlainCore.Infrastructure.DAL.EF.Mappings
{
public static class TenantMap
{
public static ModelBuilder MapTenant(this ModelBuilder modelBuilder)
... |
namespace MoreDev.Domain.Interfaces.Repository
{
public interface IHelloMoreDevRepository
{
}
} |
// Copyright (c) 2022 TrakHound Inc., All Rights Reserved.
// This file is subject to the terms and conditions defined in
// file 'LICENSE', which is part of this source code package.
namespace MTConnect.Devices
{
/// <summary>
/// The type of coordinate system.
/// </summary>
public static class Coor... |
/*
* Copyright © 2011, Petro Protsyk, Denys Vuika
*
* 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 applicab... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Internal.Cryptography;
using Microsoft.Win32.SafeHandles;
using System;
using System.Diagnostics;
using System... |
using System;
namespace MethodsAndDebugging
{
public class CubeProperties
{
public static void Main(string[] args)
{
double side = double.Parse(Console.ReadLine());
string find = Console.ReadLine();
double result = 0;
if (find == "face")
... |
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Account;
using Volo.Abp.FeatureManagement;
using Volo.Abp.Identity;
using Volo.Abp.Modularity;
using Volo.Abp.PermissionManagement;
using Volo.Abp.TenantManagement;
using Volo.Abp.SettingManagement;
using Volo.Abp.VirtualFileSystem;
namespace AbpUserImpor... |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs.Host.TestCommon... |
using UnityEngine;
public class Ball : MonoBehaviour
{
[SerializeField] private float speed = 1.0f;
[SerializeField] private Rigidbody2D rigidBody = null;
private Vector3 currentDirection = Vector3.zero;
public bool release = false;
//TODO: Add code to move ball along with code to delete pieces ... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using GlmSharp.Swizzle;
// ReSharper disable InconsistentNaming
namespace GlmSharp
{
/// <summary>
/// Static class that contains stat... |
//<Snippet5>
//<Snippet4>
//<Snippet3>
//<Snippet2>
//<Snippet1>
using System;
namespace GetFileSystemEntries
{
class Class1
{
static void Main(string[] args)
{
Class1 snippets = new Class1();
string path = System.IO.Directory.GetCurrentDirectory();
strin... |
using System;
using System.Collections.Generic;
using System.Xml;
using FubuCore;
using FubuCore.Configuration;
namespace StoryTeller.Model.Persistence
{
public class XmlReader : XmlConstants
{
public static Specification ReadFromFile(string path)
{
var document = new XmlDocument()... |
// --------------------------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Script: ./scripts/cldr-list.csx
//
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// </auto-generate... |
// Copyright (c) Rapid Software LLC. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Scada.Config;
using Scada.Server.Archives;
namespace Scada.Server.Modules.ModArcPostgreSql
{
/// <summary>
/// Represents options of ... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics.CodeAn... |
#region License Apache 2.0
/* Copyright 2019-2021 Octonica
*
* 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 appli... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Collections.ObjectModel;
using System.Global... |
using System;
using System.Collections.Generic;
using System.Numerics;
using System.Text;
namespace Vessel
{
/// <summary>
/// A camera component. This component is what is used to project the world to the target framebuffer.
/// This camera component essentially holds a projection matrix and view matrix, along wi... |
/*
* Copyright (c) <2020> Side Effects Software Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list o... |
// <auto-generated />
using System;
using Kafka.CassandraConsumer.Database;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace Kafka.CassandraConsumer.Migrations... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Action
{
public string actionName;
public List<string> actionParameters = new List<string>();
} |
/*
* Copyright(c) 2021 Samsung Electronics Co., Ltd.
*
* 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 ... |
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Loader;
using Autofac;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyModel;
namespace App.Framwork
{
public static class Storage
... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using FluentAssertions;
using PowerPointParserTests.Html;
namespace Aaks.PowerPointParser.Html.Tests
{
[TestClass]
public class NestedHtmlListBuilderTests : BaseHtmlTests
{
[TestMethod]
public void DoNotCloseListItemDueToNestingTest_NextI... |
// Bargio - PaymentRequest.cs
// Copyright (c) Antoine Champion 2018-2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
using System;
using System.ComponentModel.DataAnnotations;
na... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BallMove : MonoBehaviour
{
private Rigidbody rb;
public float Speed = 8;
// Start is called before the first frame update
void Start()
{
rb = GetComponent<Rigidbody>();
rb.velocity = new Ve... |
using UnityEngine;
using UnityEngine.UI;
using System.Collections.Generic;
using System.Linq;
public class ColorDataList : MonoBehaviour
{
[SerializeField] ColorDataCell cellPrefabA;
[SerializeField] ColorDataCell cellPrefabB;
[SerializeField] List<ColorData> dataList;
void Start ()
{
var rect = GetComponent... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.