text stringlengths 1 932k |
|---|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour
{
[SerializeField] float moveForce = 10f;
[SerializeField] float jumpForce = 10f;
[SerializeField] AudioClip deathClip;
[SerializeField] AudioClip jumpClip;
private float movementX;
... |
// 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.Buffers;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
using S... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Terka.Parsing.Tokenizers;
using static System.Console;
namespace Terka
{
internal class Program
{
private static string[] testcases = {
"The.Young.Karl.Marx.2017.108... |
using System;
using System.Threading.Tasks;
using Jasper.Util;
using TestingSupport.Compliance;
using Xunit;
namespace Jasper.RabbitMQ.Tests
{
public class Sender : JasperOptions
{
public Sender()
{
QueueName = RabbitTesting.NextQueueName();
var listener = $"listener{Ra... |
using Microsoft.AspNetCore.Http;
using System;
using System.Net.Sockets;
using System.Net.WebSockets;
using System.Threading;
using System.Threading.Tasks;
namespace Mile.Websockify
{
public class WebsockifyMiddleware
{
private readonly RequestDelegate _next;
private readonly string _hostname;... |
// *** 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.Azur... |
using Ryujinx.HLE.HOS.Ipc;
using System.Collections.Generic;
namespace Ryujinx.HLE.HOS.Services.Am
{
class IDebugFunctions : IpcService
{
private Dictionary<int, ServiceProcessRequest> _commands;
public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands;
pu... |
using AMWD.Modbus.Common;
using AMWD.Modbus.Common.Interfaces;
using AMWD.Modbus.Common.Structures;
using AMWD.Modbus.Common.Util;
using AMWD.Modbus.Tcp.Protocol;
using AMWD.Modbus.Tcp.Util;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using S... |
using System;
namespace LilyPath.Utility
{
internal class Buffer<T> : IPoolable
{
private T[] _buffer;
private int _index;
public Buffer ()
: this(0)
{ }
public Buffer (int initialCapacity)
{
_buffer = new T[initialCapacity];
}
... |
using System;
using SimpleJson;
using System.Collections.Generic;
using System.Net;
namespace JSONExample
{
struct XY
{
public int x;
public int y;
}
class MainClass
{
public static void Main (string[] args)
{
JsonObject jsonObject = new JsonObject();
JsonArray pointsArray = new JsonArray (... |
using System;
using System.ComponentModel;
using EfsTools.Attributes;
using EfsTools.Utils;
using Newtonsoft.Json;
using EfsTools.Items.Data;
namespace EfsTools.Items.Efs
{
[Serializable]
[EfsFile("/nv/item_files/rfnv/00022542", true, 0xE1FF)]
[Attributes(9)]
public class WcdmaB5LnaRangeOffset2Car1
... |
namespace Sdl.Web.DataModel.Extension
{
public class TargetGroupCondition : Condition
{
public TargetGroup TargetGroup { get; set; }
}
} |
// ReSharper disable InconsistentNaming
using EasyNetQ.Consumer;
using NSubstitute;
using RabbitMQ.Client;
using System;
using System.Threading.Tasks;
using EasyNetQ.Logging;
using Xunit;
namespace EasyNetQ.Tests.HandlerRunnerTests;
public class When_a_user_handler_is_cancelled
{
private readonly MessageProperti... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BodyPoint : MonoBehaviour
{
private BodyPointSpawner pointSpawner;
private Vector3 finalPosition;
private static float bodyPointLerp = 0.3f;
#region SETTERS AND GETTERS
public void SetFinalP... |
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("AW... |
using System;
namespace DefiningClasses
{
public class StartUp
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
Family family = new Family();
for (int i = 0; i < n; i++)
{
string[] personInfo = Console.... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using CNTK;
using Horker.PSCNTK;
namespace UnitTest
{
[TestClass]
public class NodeGroupText
{
public No... |
// *** 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.Azur... |
/*
* 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... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
usin... |
using System;
namespace Popcron.Console
{
public class ShortConverter : Converter
{
public override Type Type
{
get
{
return typeof(short);
}
}
public ShortConverter() { }
public override object Convert(string value)... |
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Configuration;
namespace rm.Config
{
/// <summary>
/// Wrapper class.
/// </summary>
public static class ConfigSettings
{
private static readonly object monitor = new object();
/// <s... |
using TechRSSReader.Application.Common.Interfaces;
using TechRSSReader.Application.TodoLists.Queries.ExportTodos;
using TechRSSReader.Infrastructure.Files.Maps;
using CsvHelper;
using System.Collections.Generic;
using System.IO;
using TechRSSReader.Domain.Entities;
using TechRSSReaderML.Model;
using AutoMapper;
using ... |
namespace _2016MT45WebApi.Areas.HelpPage.ModelDescriptions
{
public class DictionaryModelDescription : KeyValuePairModelDescription
{
}
} |
namespace Auth.Api.Configuration
{
public class TokenConfiguration
{
public string Audience { get; set; }
public string Issuer { get; set; }
public int Seconds { get; set; }
}
} |
using Microsoft.EntityFrameworkCore;
namespace EFModeling.Relationships.FluentAPI.OneToOne
{
#region OneToOne
internal class MyContext : DbContext
{
public DbSet<Blog> Blogs { get; set; }
public DbSet<BlogImage> BlogImages { get; set; }
protected override void OnModelCreating(Mode... |
using System;
using System.Collections.Generic;
namespace XiaoQi.EFCore.Models
{
public partial class XqFile
{
public string Id { get; set; }
public string UserId { get; set; }
public string StorageType { get; set; }
public string OriginalFileName { get; set; }
public l... |
/* Copyright 2010-2014 MongoDB 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 applicable law or agreed to in writi... |
using System.Runtime.InteropServices;
namespace flier268.Win32API
{
public struct MIXERCONTROL
{
public int cbStruct;
public int dwControlID;
public int dwControlType;
public int fdwControl;
public int cMultipleItems;
[MarshalAs(UnmanagedType.ByValTStr, Size... |
using ElectronicObserver.Data;
using ElectronicObserver.Resource;
using ElectronicObserver.Window.Support;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml;
using System.Threadin... |
using UnityEngine;
using XMonoNode;
namespace XMonoNode
{
/// <summary>
/// Let you using output parameters Vector3
/// </summary>
[AddComponentMenu("FlowNode/Parameter/Output/Vector3", 0)]
[CreateNodeMenu("Parameter/Output/Vector3", 0)]
[NodeWidth(160)]
public class OutputFlowParameterVect... |
using System;
using System.Collections.Generic;
namespace MelonECS
{
public class StructList< T > where T : struct
{
public int Count { get; private set; }
public ArrayRef<T> ArrayRef => new ArrayRef<T>(array, 0, Count);
private T[] array;
public StructList(int capaci... |
using System;
using System.Collections.Generic;
using System.Reactive.Linq;
namespace Shiny.Net.Http
{
class MetricHolder
{
public string Identifier { get; set; }
public long LastBytesTransferred { get; set; }
public DateTime LastPing { get; set; }
}
public static class Metr... |
using BB.IO.Abstract;
using BB.Metadata.Abstract;
using BB.Metadata.Indexes;
using BB.Metadata.Statistic;
using BB.Record.Base;
using BB.Transactions;
using BB.Transactions.Abstract;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BB.Metada... |
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
namespace Laborator7
{
public class Program
{
public static void Main(string[] args)
{
CreateWebHostBuilder(args).Build().Run();
}
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
... |
using System;
namespace BirthdayGreetings_Kata
{
public interface IDateTimeService
{
DateTime GetToday();
}
} |
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Abp.Authorization.Roles;
using ProjetoApollo.Authorization.Roles;
namespace ProjetoApollo.Roles.Dto
{
public class CreateRoleDto
{
[Required]
[StringLength(AbpRoleBase.MaxNameLength)]
public string Name... |
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using VideoApi.Contract.Requests;
using VideoWeb.Common.Models;
using VideoWeb.Contract.Responses;
using VideoWeb.EventHub.Enums;
using VideoWeb.EventHub.Models;
namespace VideoWeb.EventHub.Hub
{
public interface IEventHubClient
{
... |
namespace MassTransit
{
using System;
using System.Runtime.Serialization;
public class ServiceBusConnectionException :
ConnectionException
{
public ServiceBusConnectionException()
{
}
public ServiceBusConnectionException(string message)
: base(messa... |
using System.Collections.Generic;
using GameBrains.Actions;
using GameBrains.Entities.Agents;
using GameBrains.Percepts;
using GameBrains.Timers;
using UnityEngine;
namespace GameBrains.Minds
{
public class Mind : MonoBehaviour
{
public Agent agent;
protected virtual Agent Agent => agent;
... |
// 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.Linq;
using System.Text;
using System.Threading.Tasks;
... |
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v2/common/bidding.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collectio... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using Apache.Ignite.Core.Client;
using Apache.Ignite.Linq;
using Microsoft.Extensions.Logging;
using Perper.WebJobs.Extensions.Ca... |
using System;
using System.Linq;
using System.Reactive.Disposables;
using FluentAssertions;
using Xunit;
namespace DynamicData.Tests.Cache;
public class SubscribeManyFixture : IDisposable
{
private readonly ChangeSetAggregator<SubscribeableObject, int> _results;
private readonly ISourceCache<Subscribeable... |
#region License
/*
* Copyright (c) 2013-2014, Milosz Krajewski
*
* Microsoft Public License (Ms-PL)
* This license governs use of the accompanying software.
* If you use the software, you accept this license.
* If you do not accept the license, do not use the software.
*
* 1. Definitions
* The terms "rep... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BoC.InversionOfControl
{
public enum LifetimeScope
{
Transient,
PerHttpRequest,
PerThread,
Singleton,
Unowned
}
} |
using System;
namespace ExactOnline.Client.Models.Users
{
[SupportedActionsSDK(false, true, false, false)]
[DataServiceKey("ID")]
public class UserRole
{
/// <summary>Creation date</summary>
[SDKFieldType(FieldType.ReadOnly)]
public DateTime? Created { get; set; }
/// <s... |
namespace Singleton.Example
{
using System;
/// <summary>
/// MainApp startup class
/// Singleton Design Pattern.
/// </summary>
public class MainApp
{
/// <summary>
/// Entry point into console application.
/// </summary>
public static void Main()
{... |
using SC2APIProtocol;
using System.Collections.Generic;
namespace Tyr.Agents
{
class UnitTypes
{
public static Dictionary<uint, UnitTypeData> LookUp = new Dictionary<uint, UnitTypeData>();
public static uint COLOSUS = 4;
public static uint TECH_LAB = 5;
public static uint REACT... |
/**********************************************************************
Copyright 2021 Misty Robotics
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... |
// <copyright file="BernoulliTests.cs" company="Math.NET">
// Math.NET Numerics, part of the Math.NET Project
// http://numerics.mathdotnet.com
// http://github.com/mathnet/mathnet-numerics
//
// Copyright (c) 2009-2016 Math.NET
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of th... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
// DangerAlerts v1.1: A KSP mod. Public domain, do whatever you want, man.
// Author: SpaceIsBig42/Norpo (same person)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DangerAlerts
{
enum AlertPriorities
{
CRITICAL,
HIGH,
MODERATE,
... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.IO;
using System.Security.Cryptography;
using System.Text;
namespace Microsoft.AspNetCore.Antiforgery
{
internal class AntiforgerySerializationContext
{
... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class UnitAttackBehaviour : MonoBehaviour
{
public event Action<UnitAttackBehaviour> OnAttackTargetReached;
public event Action<UnitAttackBehaviour> OnFinishedReturn;
public enum AttackState { WaitingComman... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.Extensions.Logging;
usi... |
//------------------------------------------------------------------------------
// <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>
//--... |
// 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 Microsoft.ML.Runtime;
namespace Microsoft.ML.Data
{
/// <summary>
/// A cursor that al... |
using Content.Shared.Atmos;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
namespace Content.Server.Atmos.Piping.Binary.Components
{
[RegisterComponent]
public class GasPassiveGateComponent : Component
{
[DataField("enabled"... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using OsmSharp.API;
using OsmSharp.Changesets;
using OsmSharp.Tags;
namespace OsmSharp.IO.API.FunctionalTests
{
public static class Tests
{
private static Bounds WashingtonDC = new Bounds()
{
Min... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeleSharp.TL;
namespace TeleSharp.TL.Auth
{
[TLObject(1877286395)]
public class TLRequestCheckPhone : TLMethod
{
public override int Constructor
{
... |
using System;
using UnityEditor;
using Object = UnityEngine.Object;
using mulova.commons;
using System.Text.Ex;
namespace mulova.comunity
{
public static class AssetRefEditorEx
{
public static string GetPath(Object o)
{
string assetPath = AssetDatabase.GetAssetPath(o);
... |
using System.Threading;
using System.Threading.Tasks;
namespace TiffLibrary
{
public static partial class TiffTagReaderExtensions
{
#region T4Options
/// <summary>
/// Read the values of <see cref="TiffTag.T4Options"/>.
/// </summary>
/// <param name="tagReader">T... |
using Newtonsoft.Json;
namespace Disqus.NET.Models
{
/// <summary>
/// </summary>
public class DisqusId
{
[JsonProperty("id")] public string Id { get; set; }
}
} |
using System;
#if NET45_OR_GREATER || NETSTANDARD || NETCOREAPP2_1
using System.Buffers;
#endif
using System.Runtime.InteropServices;
using System.Text;
#if NET40
using PolyfillsForOldDotNet.System.Buffers;
using PolyfillsForOldDotNet.System.Runtime.InteropServices;
#endif
using LibSassHost.Internal.Native;
namespa... |
// This file was auto-generated based on version 1.4.0 of the canonical data.
using Xunit;
public class LuhnTest
{
[Fact]
public void Single_digit_strings_can_not_be_valid()
{
Assert.False(Luhn.IsValid("1"));
}
[Fact(Skip = "Remove to run test")]
public void A_single_zero_is_invalid()... |
using Cthulhu.BL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Usuarioss.Web.Admin.Controllers
{
public class RegistroUsuariosController : Controller
{
UsuariosBLuarios _usuariosBL;
public RegistroUsuariosController()
... |
// Malcolm Crowe 1995,2000
// As far as possible the regular expression notation follows that of lex
using System;
using System.Collections;
using System.Globalization;
using System.IO;
using System.Text;
namespace Tools
{
// We cleverly arrange for the YyLexer class to serialize itself out of a simple integer a... |
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("Wi... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.ComponentModel;
namespace Azure.ResourceManager.Network.Models
{
/// <summary> The type of this virtual network gateway. </summary>
public readonl... |
// Copyright (c) Nicola Biancolini, 2019. All rights reserved.
// Licensed under the MIT license. See the LICENSE file in the project root for full license information.
using System;
using Cake.Board.Asana.Models;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Cake.Board.Asana.Converters
{
internal... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Table
{
//副本信息
public class CameraData : ITableItem {
public int CameraID;
public string FileName;
public float X;
public float Y;
public float Z;
public float W;
public float P;
public float Q... |
using System;
using System.IO.Pipelines;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using Pipelines.Sockets.Unofficial;
namespace StackExchange.Redis
{
/// <summary>
/// A SocketManager monitors multiple sockets for availability of data; this is done using
/// the Socket.Select AP... |
using MediatR;
using System.Collections.Generic;
namespace Owleye.Application.Notifications.Messages
{
public class PingResultNotification: INotification
{
public int EndPointId { get; set; }
public string IpAddress { get; set; }
public List<string> EmailNotify { get; set; }
pu... |
/*
* 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 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.Text;
using System.Threading.Tasks;
namespace ReflexiveXmlSerializerUnitTests
{
public class SimpleSample
{
public int Id { get; set; }
public string Name { get; set; }
public DateTime BirthDate { get; set;... |
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
namespace Microsoft.VisualStudio.Text.Utilities
{
using System;
using Microsoft.VisualStudio.Utilities;
using Microsoft.VisualStudio.Text;
... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using WindowsForms.Console.Enums;
namespace WindowsForms.Console
{
/// <summary>
/// new Console GUI
/// </su... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class InstaTimer : MonoBehaviour
{
public RectTransform myTransform;
public void ChangeTimer(float amount)
{
myTransform.anchorMax = new Vector2(amount, myTransform.anchorMax.y);
}
} |
using System.Threading.Tasks;
namespace Convey.Auth
{
public interface IAccessTokenService
{
Task<bool> IsCurrentActiveToken();
Task DeactivateCurrentAsync();
Task<bool> IsActiveAsync(string token);
Task DeactivateAsync(string token);
}
} |
// 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.Collections.Generic;
using System.Diagnostics;
namespace System.Windows.Forms
{
/// <summary>
... |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RazorEngine.Templating
{
/// <summary>
/// A TemplateManager resolving remplates by path, given a list of folders to look into.
... |
using System.Drawing.Imaging;
using System.IO;
using System.Web.Mvc;
using MvcSolution.Data;
using MvcSolution.Services;
using MvcSolution.Web.Images;
namespace MvcSolution.Web.Controllers
{
public class ImageController : Controller
{
public FilePathResult Index(ImageParameter parameter)
{
... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
using System.Threading.Tasks;
using Microsoft.DotNet.RemoteExecutor;
using Xunit;
namespace System.Threading.Tests
{
public static class ThreadTestHelp... |
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace WSTimeFetch_Test
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.En... |
using Newtonsoft.Json;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization;
using System.Xml;
using Xunit;
namespace ImmutableCollections.Serialization.Tests
{
public class TestBase
{
internal void AssertDataContractSerialization<TCollection, TInner... |
using System;
using System.Collections.Immutable;
using Newtonsoft.Json;
namespace Microsoft.DotNet.Maestro.Client.Models
{
public partial class DefaultChannelCreateData
{
public DefaultChannelCreateData(string repository, string branch, int channelId)
{
Repository = repository;
... |
@{
Layout = "_Layout";
}
<h1>Add a artist</h1>
<p>Add a artist here:</p>
<form action="/artists" method="post">
<label for="artistName">Artist name</label>
<input id="artistName" name="artistName" type="text">
<button type="submit">Add</button>
</form>
<p><a href="/">Back home</a></p>
<p><a href="/artists">Ba... |
namespace PetGuide.Data.Models.Enums
{
public enum PetColor
{
Black = 1,
Blue = 2,
Brown = 3,
Colorful = 4,
Cream = 5,
Gold = 6,
Green = 7,
Grey = 8,
Red = 9,
White = 10,
Yellow = 11,
}
} |
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("Ban... |
using System.Text.Json.Serialization;
namespace Horizon.Payment.Alipay.Response
{
/// <summary>
/// AlipayEbppIndustryOrderCreateResponse.
/// </summary>
public class AlipayEbppIndustryOrderCreateResponse : AlipayResponse
{
/// <summary>
/// 扩展属性,json串(key-value对)
/// </sum... |
// <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.Lclb.Cllb.Interfaces.Models
{
using Newtonsoft.Json;
using System.Collections;
using System.Collections.... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Umbraco.Cms.Core.Models.Validation;
namespace Umbraco.Cms.Core.Models.ContentEditing
{
[DataContract(Name = "contentVariant", Namespace = "")]
public class ContentVariantSave ... |
namespace OfaSchlupfer.TextTemplate.Syntax {
/// <summary>
/// Base class for a loop statement
/// </summary>
public abstract class ScriptLoopStatementBase : ScriptStatement {
public ScriptBlockStatement Body { get; set; }
protected virtual void BeforeLoop(TemplateContext context) {
... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using FluentAssertions;
using Moq;
using NBitcoin;
using Stratis.Bitcoin.Configuration;
using Stratis.Bitcoin.Features.Consensus.ProvenBlockHeaders;
using Stratis.Bitcoin.I... |
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("G1... |
using LinqToDB.EntityFrameworkCore.BaseTests.Logging;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Console;
namespace LinqToDB.EntityFrameworkCore.BaseTests
{
public class TestUtils
{
public static readonly ILoggerFactory LoggerFactory =
Microsoft.Extensions.Logging.LoggerFactory.Crea... |
using System.Reflection;
using System.Runtime.InteropServices;
using BenchmarkDotNet.Attributes;
// 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: AssemblyConfiguration(""... |
namespace DataSourcesReflections;
public class DataContext
{
public List<Product> Products { get; set; }
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.