text stringlengths 1 932k |
|---|
using UnityEngine;
using System.Collections;
public class ShadowController : MonoBehaviour
{
public enum State
{
ShadowingIn,
ShadowingOut,
Idle
}
private SpriteRenderer[] _rend;
private bool[] _finished;
private State _state = State.Idle;
void Start()
{
_rend = GetComponentsInChildren<SpriteRendere... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/*
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... |
using System;
using System.Globalization;
using System.Xml;
using Microsoft.Maui.Controls.Core.UnitTests;
using NUnit.Framework;
namespace Microsoft.Maui.Controls.Xaml.UnitTests
{
public class FooConverter : TypeConverter
{
public override object ConvertFromInvariantString(string value)
{
return new Foo { Val... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VRage.Game;
namespace AlliancesPlugin.Alliances
{
public class RefineryUpgrade
{
public int UpgradeId = 1;
public Boolean Enabled = false;
public long MoneyRequired... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace Vending_Machine
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd... |
// Generated by https://github.com/juliettef/IconFontCppHeaders script GenerateIconFontCppHeaders.py for language C#
// from https://raw.githubusercontent.com/ForkAwesome/Fork-Awesome/master/src/icons/icons.yml
// for use with https://github.com/ForkAwesome/Fork-Awesome/blob/master/fonts/forkawesome-webfont.ttf
namespa... |
//code from https://github.com/Microsoft/SmartHotel360-mobile-desktop-apps
namespace PomodoroTimer.Validations
{
public interface IValidationRule<T>
{
string ValidationMessage { get; set; }
bool Check(T value);
}
} |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
public class CameraController : MonoBehaviour {
public float minZoom = 0.8f;
public float maxZoom = 3;
private GameManager gm;
// cue stick
private GameObject cueStick;
private Mesh... |
using Newtonsoft.Json;
using System.Linq;
namespace UAssetAPI
{
/// <summary>
/// A string table. Holds Key->SourceString pairs of text.
/// </summary>
public class FStringTable : TMap<FString, FString>
{
[JsonProperty]
public FString TableNamespace;
public FStringTable(FSt... |
namespace AsterNET.Manager
{
/// <summary>
/// Asterisk Version
/// </summary>
public enum AsteriskVersion
{
ASTERISK_1_0 = 10,
ASTERISK_1_2 = 12,
ASTERISK_1_4 = 14,
ASTERISK_1_6 = 16,
ASTERISK_1_8 = 18,
ASTERISK_10 = 100,
ASTERISK_11 = 110... |
// Copyright 2022 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
/****************************************************************
Copyright 2021 Infosys Ltd.
Use of this source code is governed by Apache License Version 2.0 that can be found in the LICENSE file or at
http://www.apache.org/licenses/
***************************************************************/
using System;
u... |
using HomeForMe.Data.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using System.Linq;
namespace HomeForMe.Data
{
public class ApplicationDbContext : IdentityDbContext<AppUser, AppRole, int, IdentityUserClaim<int>, AppUser... |
@using BasonManagement.Web.Areas.Catalog.Models
@model IEnumerable<BrandViewModel>
<table id="brandTable" class="table table-striped" width="100%" cellspacing="0">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>Tax</th>
<th>Description</th>
@if ((Auth... |
// Copyright 2019 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
using System;
using NetRuntimeSystem = System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.ComponentModel;
using System.Reflection;
using System.Collections.Generic;
using NetOffice;
namespace NetOffice.OfficeApi
{
///<summary>
/// DispatchInterface IMsoDataTable
/// S... |
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Vic.SportsStore.Domain.Abstract;
using Vic.SportsStore.Domain.Entities;
using Vic.SportsStore.WebApp.Models;
namespace Vic.SportsStore.WebApp.Controllers
{
[Authorize]
public class AdminController : Controller
... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
names... |
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Routing;
using Microsoft.AspNet.FriendlyUrls;
namespace lab_70_ASP_Framework_Website
{
public static class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
var settings = new ... |
@model CVGS.Models.AccountViewModel
@{
ViewBag.Title = "Manage Your Account";
string sex = Model.Sex == 0 ? "Male" : Model.Sex == 1 ? "Female" : "I prefer not to say";
}
@Styles.Render("~/Content/themes/base/css")
<style type="text/css">
h4 {
color: #001a66;
}
.ui-datepicker-calendar {
... |
/*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* 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 ... |
// DirectXTK MakeSpriteFont tool
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
// http://go.microsoft.com/fwlink/?LinkId=248929
using System.Drawing;
namespace MakeSpriteFont
{
// Represents a single character within a font.
public class Glyph
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Owin;
using Owin;
[assembly: OwinStartup(typeof(RepairShop.Startup))]
namespace RepairShop
{
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
ConfigureAuth(app);
}... |
using System;
using Trees;
namespace FindMaximumValue
{
public class MaximumValue
{
public Node<int> Root { get; set; }
public MaximumValue()
{
}
public MaximumValue(int value)
{
Node<int> root = new Node<int>(value);
Root = root;
... |
using System;
using NetRuntimeSystem = System;
using System.ComponentModel;
using NetOffice.Attributes;
namespace NetOffice.MSHTMLApi
{
/// <summary>
/// DispatchInterface IHTMLObjectElement
/// SupportByVersion MSHTML, 4
/// </summary>
[SupportByVersion("MSHTML", 4)]
[EntityType(EntityType.IsDispatchInterface... |
using System;
using System.Collections.Generic;
using MLAPI.Configuration;
using MLAPI.Internal;
using MLAPI.Profiling;
using MLAPI.Serialization;
using MLAPI.Transports;
namespace MLAPI.Messaging
{
internal static class InternalMessageSender
{
internal static void Send(ulong clientId, byte messageType... |
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using UnityEngine;
public class TileGenerator : MonoBehaviour
{
public GameObject tilePrefab;
public int numRows = 10;
public int numColumns = 10;
private GameObject tile;
public Tile[] GenerateTiles()
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using PaletteInsightAgent.Helpers;
namespace PaletteInsightAgentTests.Helpers
{ [TestClass]
class StringUtilTest
{
[TestMet... |
@using SvaSorcery.Patterns.Enterprise.Presentation.TwoStepView
@using SvaSorcery.Patterns.Enterprise.Presentation.Common.Views.Models
@using SvaSorcery.Patterns.Enterprise.Presentation.Common.Views.Serialization
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers |
using System;
using System.ServiceModel.Channels;
using System.ServiceModel;
using System.ServiceModel.Description;
namespace UE.ServiceModel.Samples
{
// <Snippet1>
[ServiceContract(Namespace = "http://UE.ServiceModel.Samples")]
public interface ICalculator
{
[OperationContract(IsOneWay = fal... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Threading.Tasks;
using Azure.Core.TestFramework;
using NUnit.Framework;
namespace Azure.Messaging.ServiceBus.Tests
{
[LiveOnly(true)]
public abstract class ServiceBusLiveTestBase : Servi... |
using System;
using System.IO;
namespace GZipTest.IO
{
public class UncompressedFileStreamWrapper : IFile
{
private readonly FileStream stream;
public UncompressedFileStreamWrapper(FileStream stream)
{
this.stream = stream;
}
public void Dispose() => strea... |
namespace TfsRestApi.Services
{
using System;
using System.Linq;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.TeamFoundation.VersionControl.Client;
using TfsRestApi.Services.Extensions;
using MZMemoize.Extensions;
public interface IChangesetServic... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Xml.Xsl.XsltOld
{
using System;
using System.Diagnostics;
using System.Xml;
using System.Xml.XPath;
using System.Collections;
internal seale... |
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Reflection;
using SFA.DAS.ProviderRelationships.Models;
namespace SFA.DAS.ProviderRelationships.UnitTests.Builders
{
public static class EntityExtensions
{
public static TEntity Set<TEntity, TProperty>(this TEnt... |
@model long
@{
ViewBag.Title = "Result";
var localizedTextParts = Localizer["We are sorry that we could not complete <a>your order</a>. Please revisit and complete it."].GetTextPartsFunction("<a>", "</a>");
}
@if (TempData["Error"] != null)
{
<div class="alert alert-danger" role="alert">@TempData["Error"... |
/* This class is part of Code project article: A Graph Tree Drawing Control for WPF, witten by darrellp | 23 Feb 2009
* Full link article http://www.codeproject.com/Articles/29518/A-Graph-Tree-Drawing-Control-for-WPF
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespac... |
namespace CodeGen.SimplifiedAst
{
public interface ITypeReference
{
T Visit<T>(ITypeReferenceVisitor<T> visitor);
}
} |
#region Copyright and license information
// Copyright 2001-2009 Stephen Colebourne
// Copyright 2009-2011 Jon Skeet
//
// 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://ww... |
namespace bench
{
public interface IBench
{
BenchResult<object> run(params string[] args);
BenchResult<object> doBenchmark(params string[] args);
}
} |
using System.Collections.Generic;
using System.Data.SqlClient;
using System;
using BandTracker;
namespace BandTracker.Objects
{
public class Band
{
private int _id;
private string _name;
public Band(string Name, int Id = 0)
{
_name = Name;
_id = Id;
}
public override bool Equals(System.Ob... |
/*
* THIS FILE WAS GENERATED BY PLOTLY.BLAZOR.GENERATOR
*/
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text.Json.Serialization;
namespace Plotly.Blazor.Traces
{
/// <s... |
// 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.
namespace Microso... |
using System;
using System.Configuration;
using System.Web;
using System.Web.Configuration;
class UsingPassportAuthentication
{
public UsingPassportAuthentication()
{
// <Snippet1>
// Get the configuration.
// Get the Web application configuration.
System.Configuration.Configuration configuration = System.Web.Confi... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Fo... |
using System.Collections.Generic;
namespace BlazingTrails.Client.Features.Home
{
public class Trail
{
public int Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public string Image { get; set; }
public string Location { get; set... |
using System;
using System.Linq.Expressions;
using ImageProcessing.App.ServiceLayer.Services.Pipeline.Item.Interface;
namespace ImageProcessing.App.ServiceLayer.Services.Pipeline.Item.Implementation.Action
{
internal sealed class ActionBlockItem : IBlockItem
{
public Type InputType { get; }
pu... |
using Newtonsoft.Json;
using System;
using System.Diagnostics.Contracts;
namespace Open.Serialization.Json.Newtonsoft.Converters;
public class JsonNullableDoubleConverter : JsonValueConverterBase<double?>
{
protected JsonNullableDoubleConverter()
{
// Prevent unnecessary replication.
}
public static readonly ... |
// 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.
namespace Microso... |
// Copyright (c) .NET Core Community. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
namespace DotNetCore.CAP
{
/// <summary>
/// CAP transaction wrapper, used to wrap database transactions, provides a consistent user interfa... |
using JetBrains.Annotations;
using JsonApiDotNetCore.Resources;
using JsonApiDotNetCore.Resources.Annotations;
namespace JsonApiDotNetCoreTests.IntegrationTests.HostingInIIS;
[UsedImplicitly(ImplicitUseTargetFlags.Members)]
[Resource(ControllerNamespace = "JsonApiDotNetCoreTests.IntegrationTests.HostingInIIS")]
publi... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QQChannelFramework.Models.ChannelPermissionModels;
/// <summary>
/// 接口权限对象
/// </summary>
public class APIPermission
{
/// <summary>
/// API 接口名,例如 /guilds/{guild_id}/members/{user_i... |
using System.Collections.Generic;
using System.Data;
using System.Dynamic;
using Faaast.Metadata;
using Faaast.Orm.Mapping;
namespace Faaast.Orm.Reader
{
public struct ObjectReader
{
public IDtoClass Model { get; private set; }
public ColumnReader[] Columns { get; private set; }
publ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Illumina.BaseSpace.SDK.Types;
namespace Illumina.BaseSpace.SDK.ServiceModels
{
public abstract class AbstractResourceListRequest<TSortFieldEnumType> where TSortFieldEnumType : struct
{
public string Id { get; ... |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using Windows.Data.Json;
namespace ProfileTimelineView.Twitter
{
public class TwitterDownloader : ... |
namespace Xena.Contracts.Domain
{
public class PartnerVatFreeSalesData
{
public long Id { get; set; }
public string Name { get; set; }
public int AccountNumber { get; set; }
public string CountryName { get; set; }
public string CountryCode { get; set; }
public st... |
using Liberfy.Services.Common;
using Liberfy.Services.Mastodon.Accessors;
using Liberfy.ViewModels;
using SocialApis;
using SocialApis.Mastodon;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Liberfy.Services.Mastodon
{
// TODO: Gatewa... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace TestHeros.Migrator.Api
{
public class Program
{
... |
using Abp.Dependency;
using Abp.Runtime.Caching.Configuration;
namespace Abp.Runtime.Caching.Redis
{
/// <summary>
/// Used to create <see cref="AbpPerRequestRedisCache"/> instances.
/// </summary>
public class AbpPerRequestRedisCacheManager : CacheManagerBase<ICache>, IAbpPerRequestRedisCacheManager
... |
using System;
using System.Threading;
using JCommon.SD.Core.Enums;
using JCommon.SD.Core.Events;
using JCommon.SD.Core.Interfaces;
namespace JCommon.SD.Core.Download
{
public abstract class AbstractDownload : ISD
{
public event SDDelegates.OnSDDataReceived DataReceived;
public event SDDelegat... |
using DiscordRPC.Logging;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace DiscordRPC.Registry
{
internal class MacUriSchemeCreator : IUriSchemeCreator
{
private ILogger logger;
public MacUriSchemeCreator... |
// *****************************************************************************
// BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE)
// © Component Factory Pty Ltd, 2006 - 2016, All rights reserved.
// The software and associated documentation supplied hereunder are the
// prop... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using System.Runtime.Serialization;
using System.Reflection;
using Rafy.Reflection;
namespace Rafy
{
/// <summary>
/// Object containing the serialization
/// data for a specific object.
/// </... |
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using GenericBuilderTestArtifactBuilders;
using GenericBuilderTestArtifactEntities;
using NExpect;
using NExpect.Interfaces;
using NExpect.MatcherLogic;
using NUnit.Framework;
usi... |
using UnityEngine;
namespace MUtility
{
public interface IDrawable
{
Drawable ToDrawable();
}
public static class DrawableExtensions
{
public static void DrawGizmo(this IDrawable self, Color color) => self.ToDrawable().DrawGizmo(color);
public static void DrawDebug(thi... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... |
using System;
using System.Collections.Generic;
using System.Linq;
using kcp2k;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.Serialization;
namespace Mirror
{
public enum PlayerSpawnMethod { Random, RoundRobin }
public enum NetworkManagerMode { Offline, ServerOnly, ClientOnly, Host }... |
//----------------------
// <auto-generated>
// Generated using the NJsonSchema v9.13.35.0 (Newtonsoft.Json v9.0.0.1) (http://NJsonSchema.org)
// </auto-generated>
//----------------------
namespace YuzuDelivery.Umbraco.Forms
{
#pragma warning disable // Disable all warnings
[System.CodeDom.Compiler.Generate... |
using System;
using System.Collections.Generic;
using System.Linq;
using Foundation;
using UIKit;
namespace RFEStudio.iOS
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to ... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Entities.DataTransferObjects
{
public class UserForCreationDto
{
public string UserId { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Username { g... |
// 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.
namespace Microso... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
namespace CodeStoriesEchoBot
{
/// <summary>
/// Stores counter state for the conversation.
/// Stored in <see cref="Microsoft.Bot.Builder.ConversationState"/> and
/// backed by <see cref="Microsoft.Bot.Bui... |
namespace Countries.DomainModel {
#region Usings
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Diagnostics;
using System.Runtime.Serialization;
using System.Text;
#endreg... |
using StardewModdingAPI;
using StardewValley;
using System;
namespace EscasModdingPlugins
{
/// <summary>The format used by each data value in the FishLocations asset.</summary>
public class FishLocationsData : TileData
{
/// <summary>The replacement return value of <see cref="GameLocation.getFish... |
using GenFx.Components.Lists;
using GenFx.Validation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using TestCommon;
using TestCommon.Mocks;
using Xunit;
namespace GenFx.Components.Tests
{
/// <summary>
/// Contains unit tests for the <see cref="VariableSing... |
// <copyright file="CanonicalRequestAttribute.cs" company="Microsoft Open Technologies, Inc.">
// Copyright 2011-2013 Microsoft Open Technologies, Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You m... |
#region Licence
/****************************************************************************
Copyright 1999-2015 Vincent J. Jacquet. All rights reserved.
Permission is granted to anyone to use this software for any purpose on
any computer system, and to alter it and redistribute it, subject
t... |
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
namespace StyleCop.Analyzers
{
using System.Diagnostics.CodeAnalysis;
using Microsoft.CodeAnalysis;
internal static class Anal... |
using System;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using SpyStore.Hol.Dal.EfStructures;
using SpyStore.Hol.Models.Entities;
using Xunit;
namespace SpyStore.Hol.Dal.Tests.ContextTests
{
[Collection("SpyStore.DAL")]
public class CategoryTests : IDisposable
{
private readonly Store... |
namespace IssueTrackingSystem.Web.Controllers
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using IssueTrackingSystem.Data.Models;
using IssueTrackingSystem.Services.Data.Notes;
using IssueTrackingSystem.Web.ViewModels.Notes;
using M... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Hefezopf.Contracts.Communication
{
[System.ServiceModel.ServiceContract(Namespace = ContractConsts.Namespace)]
public interface IHZServiceContract
{
[System.ServiceModel.Op... |
using System;
using System.Collections.Generic;
using Wing.WeiXin.MP.SDK.Entities;
using Wing.WeiXin.MP.SDK.Entities.HTTP;
using Wing.WeiXin.MP.SDK.Entities.HTTP.Request;
using Wing.WeiXin.MP.SDK.Entities.Menu;
using Wing.WeiXin.MP.SDK.Entities.ReceiveMessages;
using Wing.WeiXin.MP.SDK.Entities.ReceiveMessages.Events;... |
// 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 Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.RenderTree;
using Microsoft.AspNetCore.Components.Services;
using System;
u... |
using UnityEngine;
public class ArrayExamplePerlinNoiseDisplay : MonoBehaviour
{
new Renderer renderer
{
get
{
if (_renderer != null)
return _renderer;
_renderer = GetComponent<Renderer>();
return _renderer;
}
}
Renderer _ren... |
using System;
namespace MultiplicatonSign
{
class Program
{
static void Main(string[] args)
{
int num1 = int.Parse(Console.ReadLine());
int num2 = int.Parse(Console.ReadLine());
int num3 = int.Parse(Console.ReadLine());
FindMultiplicationSign(nu... |
// <auto-generated>
// 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
// re... |
/*
Copyright (c) 2017 Ahmed Kh. Zamil
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, publish, distribu... |
// 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;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace NuGet.Services.ServiceBus
{
public interface IBrokeredMess... |
namespace JQDT.DataProcessing.Common
{
using System;
using System.Collections.Concurrent;
using System.Linq;
using System.Linq.Expressions;
/// <summary>
/// Dynamically parses a string to a given type and returns it as a boxed value.
/// </summary>
internal class DynamicParser
{
... |
using Godot;
using System;
public class Play : TouchScreenButton
{
// Declare member variables here. Examples:
// private int a = 2;
// private string b = "text";
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
this.SetProcessInput(true... |
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using PayPal.Api;
namespace BeerPal.Controllers
{
public class BillingPlansController : Controller
{
public ActionResult Index()
{
var apiContext = GetApiCo... |
using System;
namespace CreateCustomDataStructures
{
class Program
{
static void Main(string[] args)
{
var list = new CustomList();
var x = list[8];
}
}
} |
using UnityEngine;
using UnityEngine.Timeline;
using UnityEngine.Playables;
using System.Linq;
#if UNITY_EDITOR
using System.ComponentModel;
#endif
namespace uLipSync.Timeline
{
[System.Serializable]
[TrackColor(0.2f, 0.8f, 0.3f)]
[TrackClipType(typeof(uLipSyncClip))]
[TrackBindingType(typeof(uLipSyncTimelineEvent))]... |
using SharpenedMinecraft.Types.Blocks;
using System;
using System.Collections.Generic;
using System.Text;
namespace SharpenedMinecraft.Types.Items
{
public class Detector_railItem : ItemStack
{
public override string Id => "minecraft:detector_rail";
public override Int32 ProtocolId => 67;
... |
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
namespace SFA.DAS.AssessorService.Application.Api.Client.Clients
{
public class ValidationApiClient : ApiClientBase, IValidationApiClient
{
private readonly ILogger<ValidationApiClient> _logger;
public V... |
using System;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using System.Transactions;
using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;
using Moq;
using Xunit;
namespace Cudio
{
public class CommandBusTests
{
[Fact]
public async Task Execu... |
@model MovieLibrary.Movie
@{
ViewData["Title"] = "Delete";
}
<h1>Delete</h1>
<h3>Are you sure you want to delete this?</h3>
<div>
<h4>Movie</h4>
<hr />
<dl class="row">
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.Title)
</dt>
<dd class = "col-sm-10... |
using EnglishEx.PracticeManagement.Data.Configurations;
using EnglishEx.PracticeManagement.Data.Entities;
using Microsoft.EntityFrameworkCore;
namespace EnglishEx.PracticeManagement.Data
{
public class GroupManagementDbContext : DbContext
{
public DbSet<GroupEntity> Groups { get; set; }
public... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.