text stringlengths 1 932k |
|---|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ScratchNet
{
public class MinExpression : MathFunctionBase
{
public MinExpression()
{
MathFunction = "Min";
Args.Add(null);
Args.Add... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
public class Mine_Net : NetworkBehaviour
{
[SyncVar]
public int Damage = 50;
public short Owner;
public GameObject Explosion;
private PlayerHealth_Net _hitPlayer;
public bool _armed = f... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2017 Denis Kuzmin < entry.reg@gmail.com > :: github.com/3F
*
* 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, inclu... |
using System;
using System.Linq;
using System.Threading.Tasks;
using EventStore.Client.Gossip;
using EventStore.Client;
using EventStore.Core.Messages;
using EventStore.Core.Messaging;
using EventStore.Plugins.Authorization;
using Grpc.Core;
using ClusterInfo = EventStore.Client.Gossip.ClusterInfo;
using MemberInfo = E... |
namespace EugenieWeb.Web
{
using System.Data.Entity;
using Data;
using EugenieWeb.Data.Migrations;
public static class DatabaseConfig
{
public static void Initialize()
{
Database.SetInitializer(new MigrateDatabaseToLatestVersion<EugenieWebDbContext, Configuration>());... |
class AdditionStrategy : IStrategy
{
public int Calculate(int firstOperand, int secondOperand)
{
return firstOperand + secondOperand;
}
} |
//------------------------------------------------------------------------------
// <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;
namespace Endeavor.Steps.Core
{
public class StartStep : Step
{
public int StartStepId { get; private set; }
protected override void Load(Dictionary<string, object> properties)
{
foreach (string key in properties.Keys)
... |
//------------------------------------------------------------------------------
// <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 Domain.DomainEntities;
using Domain.Repositories;
using ExternalApis;
using WebApi;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;
using Data.Repositories;
namespace Test
{
//Naming convention for Test Cases:
//[MethodTested_Argument_ExpectedBehavior]
[TestClas... |
using System.Runtime.InteropServices;
using UnityEngine;
using System.Collections;
public class GradientColorChangerSprite : MonoBehaviour
{
public Gradient CustomGradient;
public float FullCycleTime = 1f;
public float StartTime = 0.0f;
private SpriteRenderer _spriteRenderer;
private float _time;
... |
namespace EventHorizon.Blazor.TypeScript.Interop.Generator.Identifiers
{
using System.Collections.Generic;
using System.Linq;
using EventHorizon.Blazor.TypeScript.Interop.Generator.AstParser.Api;
using EventHorizon.Blazor.TypeScript.Interop.Generator.AstParser.Model.Types;
public interface IEnumTyp... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DClean.Application.Interfaces
{
public interface ISeedService
{
public int Order { get; }
Task SeedAsync();
}
} |
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本: 4.0.30319.42000
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Pla... |
using System;
using System.Globalization;
using System.Windows.Data;
namespace Lib.Wpf.ConverterBase
{
public abstract class GenericValueConverter <TFrom, TTo> : IValueConverter
{
protected virtual TTo Convert(TFrom value, CultureInfo culture)
{
throw new NotImplementedException();
}
prot... |
using System;
using System.Collections.Generic;
namespace Kifa.Bilibili.BiliplusApi {
public class BiliplusVideoRpc : BiliplusRpc<BiliplusVideoRpc.BiliplusVideoResponse> {
public class BiliplusVideoResponse {
public long Id { get; set; }
public long Ver { get; set; }
pub... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Objects;
using System.Management;
using Renci.SshNet;
using Renci.SshNet.Common;
using System.Timers;
using System.Net.Sockets;
namespace EcoManagementService
{
class EcoManagement
{
... |
/*
* 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... |
namespace Nora.Shared.Journaling
{
public class AddInfantJournalEntry
{
public class Request
{
}
public class Response
{
}
}
} |
using System.Threading;
using NUnit.Framework;
using Selenium.core;
using Selenium.pages;
namespace Selenium.tests
{
[TestFixture]
[Parallelizable]
public class DiceSearchTest : TestBase
{
[Test]
public void TestMethod()
{
var page = new HomePage(Driver);
... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** 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;
namespace Pulumi.AwsN... |
// 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.ObjectModel;
using System.Diagnostics;
usi... |
using SharpenedMinecraft.Types.Items;
using System;
using System.Collections.Generic;
using System.Text;
namespace SharpenedMinecraft.Types.Blocks
{
public class LilacBlock : Block
{
public override string BlockId => "minecraft:lilac";
public override BlockState[] PossibleStates { get; }
... |
namespace WpfMidiOrganPedals.UI
{
public interface IMainWindow : IView
{
}
} |
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
namespace BookBox.Models
{
public class AppDbContext : IdentityDbContext<IdentityUser>
{
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options)
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using AvalonGui.Utils;
using Avalon.Utils;
namespace AvalonGui
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraRotator : MonoBehaviour {
public PlaneManager planeManager;
public Transform baseTrans;
// Update is called once per frame
void Update () {
if (float.IsNaN(planeManager.baseRotation)) {
... |
using System.Reflection;
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("AWSSDK.SageMakerRuntime")]
[assembly: Asse... |
// <copyright file="Benchmark2.cs" company="Endjin Limited">
// Copyright (c) Endjin Limited. All rights reserved.
// </copyright>
#pragma warning disable
namespace UnevaluatedPropertiesDraft201909Feature.InPlaceApplicatorSiblingsAllOfHasUnevaluated
{
using System.Threading.Tasks;
using BenchmarkDotNet.Attribut... |
using NUnit.Framework;
public class GeneratedTest126
{
[Test] public void Test1() { }
[Test] public void Test2() { }
[Test] public void Test3() { }
[Test] public void Test4() { }
[Test] public void Test5() { }
[Test] public void Test6() { }
[Test] public void Test7() { }
[Test] public vo... |
// Copyright (c) MOSA Project. Licensed under the New BSD License.
using Mosa.Compiler.Framework.IR;
using Mosa.Compiler.MosaTypeSystem;
using System.Collections.Generic;
using System.Diagnostics;
namespace Mosa.Compiler.Framework.Stages
{
/// <summary>
/// Lower IR Stage
/// </summary>
/// <seealso cref="Mosa.C... |
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNet.Identity;
using Microsoft.Owin.Security;
namespace GitHubWebApp.Models
{
public class IndexViewModel
{
public bool HasPassword { get; set; }
public IList<UserLoginInfo> Logins { get; set; }
... |
using System;
using Gtk;
using System.Collections.Generic;
using System.Timers;
namespace tracker
{
class MainClass
{
public static void Main (string[] args)
{
Application.Init ();
try
{
Task.loadAll();
}
catch (Exception E)
{
//Error loading file, create
new Task("2017");
Tas... |
using CoreGraphics;
using CoreText;
using Foundation;
using ObjCRuntime;
using UIKit;
namespace CommunityToolkit.Maui.Core.Views;
/// <summary>
/// Toast for iOS + MacCatalyst
/// </summary>
public class ToastView : Popup
{
readonly PaddedLabel messageLabel;
/// <summary>
/// Initialize <see cref="ToastView"/>
... |
#if !NETSTANDARD13
/*
* 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 ... |
using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;
namespace Net.Tools.Security
{
public class SecurityPassword
{
public SecurityPassword()
{
}
public static string EncryptPassword(string strPassword)
{
//加密密码
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class TheEnd : MonoBehaviour
{
public void BackToMain() {
SceneManager.LoadScene(0);
}
public void Retry() {
SceneManager.LoadScene(1);
}
public void NextLevel(... |
/*
* 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... |
using System;
using System.Collections.Generic;
using System.Linq;
#if __UNIFIED__
using Foundation;
using UIKit;
#else
using MonoTouch.Foundation;
using MonoTouch.UIKit;
#endif
using MonoTouch.Dialog;
using Google.Maps;
namespace GoogleMapsAdvSample
{
public partial class DVCMenu : DialogViewController
{
publi... |
using System;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using EFCorePgExercises.DataLayer;
using System.Globalization;
using FluentAssertions;
using EFCorePgExercises.Utils;
namespace EFCorePgExercises.Exercises.JoinsAndSubqueries
{
[FullyQualifiedTestClass]
public class WorkoutTheStartTimesOfBoo... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CollisionHandler : MonoBehaviour
{
[SerializeField] float loadDelay = 1f;
[SerializeField] ParticleSystem explosionVfx;
void OnTriggerEnter(Collider other)
{
StartCrashSequence();
}
void StartC... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KCommander.UserClasses
{
interface IMyCombo4Complete
{
void Save();
void Load();
}
} |
//----------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------------
namespace Microsoft.Samples.DocumentApprovalProcess.ApprovalManagerActivityLibrary.Designers
{
// Interaction logic fo... |
// 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.Diagnostics;
using System.IO;
using System.Text;
using ... |
namespace _07.Hack
{
public interface IMath
{
double GetmathAbs(double operand);
double GetMathFloor(double operand);
}
} |
using System.Collections.Generic;
namespace Rabbit.Rpc.Runtime.Server
{
/// <summary>
/// 一个抽象的服务条目管理者。
/// </summary>
public interface IServiceEntryManager
{
/// <summary>
/// 获取服务条目集合。
/// </summary>
/// <returns>服务条目集合。</returns>
IEnumerable<ServiceEntry>... |
namespace VisualStudio.ParsingSolution
{
public interface INodeProperty<T>
{
T Value { get; set; }
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CsQuery.StringScanner;
using CsQuery.StringScanner.Patterns;
namespace CsQuery.Engine
{
/// <summary>
/// Base class for any pseudoselector that implements validation of min/max parameter values, and
/// argument v... |
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using Csla;
using Csla.Data;
using SelfLoadROSoftDelete.DataAccess;
using SelfLoadROSoftDelete.DataAccess.ERLevel;
namespace SelfLoadROSoftDelete.DataAccess.Sql.ERLevel
{
/// <summary>
/// DAL SQL Server implementat... |
namespace BananaParty.BehaviorTree.Tests
{
public class MutableConstantNode : BehaviorNode
{
public MutableConstantNode(BehaviorNodeStatus startExecutionStatus)
{
NextExecutionStatus = startExecutionStatus;
}
public BehaviorNodeStatus NextExecutionStatus { get; set;... |
namespace KFmaintenance.Views
{
partial class FileServerForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... |
using ICSharpCode.SharpZipLib.Zip;
using System;
using System.Collections.Generic;
using System.IO;
namespace Common
{
public class SharpZip
{
/// <summary>
/// 缓存字节数
/// </summary>
private const int BufferSize = 4096;
/// <summary>
/// 压缩最小等级
/// </sum... |
using Latincoder.AirQuality.Proxies;
using Latincoder.AirQuality.Model.External;
using Xunit;
using Xunit.Abstractions;
using Moq;
using System.Text.Json;
using System.Threading.Tasks;
using System.Net.Http;
namespace Latincoder.AirQuality.Tests.Proxies
{
public class WaqiTests
{
private HttpClient mo... |
using Serilog;
using Serilog.Core;
using Serilog.Events;
using Serilog.Sinks.SystemConsole.Themes;
using Microsoft.EntityFrameworkCore;
namespace Common.Logging {
static public class LoggerFactory {
public const string LoggerNamePropertyName = "LoggerName";
const string OutputTemplateFile = "[{Ti... |
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("Sum... |
// Copyright 2020 New Relic, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
using System;
using System.Collections.Generic;
using System.Linq;
using NewRelic.Agent.Configuration;
using NewRelic.Agent.Helpers;
using NewRelic.SystemExtensions;
namespace NewRelic.Agent.Core.Labels
{
public class La... |
using System.Collections.Generic;
namespace XORGame.Data.Entities
{
public class PlayerCharacter
{
public PlayerCharacter()
{
PlayerCharacterAbilities = new HashSet<PlayerCharacterAbility>();
TeamRosters = new HashSet<TeamRoster>();
}
public int ID { ge... |
/***************************************************************************
* IEntity.cs
* -------------------
* begin : May 1, 2002
* copyright : (C) The RunUO Software Team
* email : info@runuo.com
*
* $... |
/*
* Copyright 2010-2014 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 "l... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Runtime.Serialization;
namespace Revenj.DomainPatterns
{
[Serializable]
[DataContract(Namespace = "")]
public class SpecificationByUri : ISpecification<IIdentifiable>
{
[DataMember]
public string[] U... |
using System.Collections.Generic;
using System.Text;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Text;
namespace XLG.QuickScripts.Generators
{
[Generator]
public class CustomGenerator : ISourceGenerator
{
public void Initialize(GeneratorIn... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Windows;
using System.Windows.Controls;
namespace MUXControlsTestApp
{
[TopLevelTestPage(Name = "CommandBarFlyout", Icon = "CommandBarFlyout.png")]... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Globalization;
using System.Linq;
using System.Reflection;
using Microsoft.AspNetCore.Http.Headers;
using Microsoft.Extensions.Primitives;
using Microsoft.Net.Http.Heade... |
//Apache2, 2017, WinterDev
//Apache2, 2009, griffm, FO.NET
using System.Collections;
namespace Fonet.Pdf
{
/// <summary>
/// This represents a single Outline object in a PDF, including the root Outlines
/// object. Outlines provide the bookmark bar, usually rendered to the right of
/// a P... |
using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Xml.Serialization;
namespace Workday.PerformanceManagement
{
[GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepThrough, XmlType(Namesp... |
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one or
// more contributor license agreements. See the NOTICE file distributed
// with this work for additional information regarding copyright ownership.
// Green Energy Corp licenses this file to you under the Apache License,
// Version 2.0 (the "L... |
using System;
using System.Linq.Expressions;
using Microsoft.Extensions.DependencyInjection;
using RabbitMQ.Client.Core.DependencyInjection.Models;
namespace RabbitMQ.Client.Core.DependencyInjection.Specifications
{
/// <summary>
/// Specification that represents rabbitMq exchange duplications.
/// </summa... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ConsoleControlSample
{
/// <summary>
/// The new process form.
/// </summary>
public partial class FormNewProcess : ... |
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/control.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using NUnit.Framework;
using Syste... |
using AntX.Controllers;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using System.Xml.Serialization;
namespace AntX.WeChat
{
publi... |
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using System.Security.Claims;
using Microsoft.Azure.WebJobs.Extensions.SignalRService;
using Microsoft.Azure.Web... |
// -----------------------------------------------------------------------
// <copyright file="InputManager.cs" company="Steven Kirk">
// Copyright 2013 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Input
... |
// <auto-generated>
// Auto-generated by StoneAPI, do not modify.
// </auto-generated>
namespace Dropbox.Api.Team
{
using sys = System;
using col = System.Collections.Generic;
using re = System.Text.RegularExpressions;
using enc = Dropbox.Api.Stone;
/// <summary>
/// <para>Base report structu... |
namespace StudentApplication
{
public enum Grade
{
One = 1,
Two = 2,
Three = 3,
Four = 4,
Five = 5,
Six = 6,
Seven = 7,
Eighth = 8,
Ninth = 9,
Tenth = 10,
Eleventh = 11,
Twelfth = 12
}
} |
using System;
using System.Threading;
using System.Threading.Tasks;
using CqrsFramework.Commands;
using CqrsFramework.Domain;
using MediatR;
using Registration.Contracts.Commands.Appointments;
using Registration.Domain.AggregatesModel.AppointmentAggregate;
namespace Registration.Domain.CommandHandlers.Appointments
{
... |
using UnityEngine;
using UnityEngine.UI;
// 情報表示用の UI を制御するコンポーネント
public class Hud : MonoBehaviour
{
public Image m_hpGauge; // HP ゲージ
public Image m_expGauge; // 経験値ゲージ
public Text m_levelText; // レベルのテキスト
public GameObject m_gameOverText; // ゲームオーバーのテキスト
// 毎フレーム呼び出される関数
private void Update()
{
// プレイヤー... |
//
// Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com)
//
// 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, ... |
using System.Threading;
using System.Diagnostics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using FluentAssertions;
namespace Noesis.Javascript.Tests
{
/// <summary>
/// Tests that we can run multiple instances of v8 side by side,
/// simultaneously, courtesy of v8 Isolates.
/// </summary>
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PointOfViewBase : MonoBehaviour
{
} |
// ***********************************************************************
// Copyright (c) 2012 NUnit Project
//
// 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, incl... |
/* http://www.zkea.net/ Copyright 2016 ZKEASOFT http://www.zkea.net/licenses */
using Easy.Cache;
using Easy.RepositoryPattern;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Easy.Modules.SystemSetting
{
public abstract class SystemSettingService
{
Syste... |
using BonusBot.AudioModule.LavaLink;
using Discord;
using System;
using System.Threading.Tasks;
namespace BonusBot.AudioModule.Extensions
{
internal static class FuncExtensions
{
internal static void WriteLog(this Func<LogMessage, Task> log, LogSeverity severity, string message, Exception? exception =... |
// This file was auto-generated based on version 1.1.0 of the canonical data.
using System;
using Xunit;
public class SieveTest
{
[Fact]
public void No_primes_under_two()
{
Assert.Throws<ArgumentOutOfRangeException>(() => Sieve.Primes(1));
}
[Fact(Skip = "Remove to run test")]
public ... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.CSharp.MakeMethodSynchronous;
using Microsoft.CodeAnalysis... |
namespace Elgraiv.Midionette.Internal
{
internal class NullValueReceiver : IValueReceiver
{
public string Name => "null";
public void OnValueReceived(byte value)
{
//nop
}
private NullValueReceiver() { }
public static NullValueReceiver Value { get; ... |
using System;
using System.ComponentModel;
using System.Runtime.Serialization;
namespace FantasyData.Api.Client.Model.Golf;
[DataContract(Namespace="", Name="BettingEntityMetadata")]
[Serializable]
public class BettingEntityMetadata
{
/// <summary>
/// The id of the record. Unique only within the same entit... |
using System;
using ClForms.Helpers;
namespace ClForms.Common
{
/// <summary>
/// Implements a structure that is used to describe the size of an object
/// </summary>
public struct Size
{
/// <summary>
/// Zero-sized <see cref="Size"/>
/// </summary>
public static Si... |
namespace Captura.YouTube
{
public interface IYouTubeApiKeys
{
string YouTubeClientId { get; }
string YouTubeClientSecret { get; }
}
} |
namespace parts
{
public class Board
{
public List<(int number, bool bingo)[]> Sequence { get; private set; }
public int Rows { get; }
public static IEnumerable<Board> GenerateBoards(int[] boardSequence, int x, int y)
{
var sequenceLenght = x * y;
var bo... |
using System;
using System.IO;
namespace FdtSharpWithTests
{
internal static class Utilities
{
public static string GetBinaryLocation(string name)
{
return Path.Combine(BinariesDirectory, name);
}
private static readonly string BinariesDirectory = "../../Trees";
}
} |
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("Pro... |
using System.Collections.Generic;
namespace Game.MementoPattern
{
public class MementosStorer
{
private DebugLogSingleton _logSingleton;
public Stack<Memento> _mementos { get; }
public MementosStorer()
{
_mementos = new Stack<Memento>();
_logSingleton = ... |
namespace QuickType
{
using System;
using System.Collections.Generic;
using System.Globalization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
public partial class Welcome
{
[JsonProperty("inputConfig")]
public InputConfig InputConfig { get; set; }
[Jso... |
using System.Reflection;
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("riplVisualStudioExtensions")]
[assembly: ... |
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace Microsoft.ApplicationInspector.Commands
{
/// <summary>
/// Contains the analyze sc... |
using CM.WeeklyTeamReport.Domain.Entities.Interfaces;
using FluentAssertions;
using Microsoft.Extensions.Configuration;
using System.Collections.Generic;
using System.IO;
using Xunit;
namespace CM.WeeklyTeamReport.Domain.IntegrationTests
{
public class CompanyRepositoryTests
{
[Fact]
public as... |
namespace Microsoft.ApplicationInsights.Kubernetes.Entities
{
using System.Collections.Generic;
using Newtonsoft.Json;
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
internal class Selector
{
[JsonProperty("matchLabels")]
public IDictionary<string, string> MatchLabels... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... |
using System;
using System.Linq;
using NUnit.Framework;
namespace SODA.Tests
{
[TestFixture]
public class SoqlQueryTests
{
[Test]
[Category("SoqlQuery")]
public void Default_Ctor_Selects_Nothing_And_SelectColumns_IsNotNull()
{
var soql = new SoqlQuery();
... |
/*
* Copyright 2010-2014 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 "l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.