text stringlengths 1 932k |
|---|
using System;
using System.Collections.Generic;
using UnityEngine;
namespace FairyGUI
{
/*关于BlendMode.Off, 这种模式相当于Blend Off指令的效果。当然,在着色器里使用Blend Off指令可以获得更高的效率,
但因为Image着色器本身就有多个关键字,复制一个这样的着色器代价太大,所有为了节省Shader数量便增加了这样一种模式,也是可以接受的。
*/
/// <summary>
///
/// </summary>
public enum BlendMode
{
Normal,
Non... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PauseGame : MonoBehaviour {
bool isPaused = false;
bool pausedOnTexture = false;
bool pauseChangeTexture = false;
Texture whiteTexture, pause1Texture, pause2Texture, pause3Texture, pause4Texture;
public Te... |
using System.Linq;
using Xunit;
namespace HotChocolate.Types
{
public class EnumTypeDescriptorAttributeTests
{
[Fact]
public void Change_Value_Name_With_Attribute()
{
// act
ISchema schema = SchemaBuilder.New()
.AddEnumType<Enum1>()
... |
using ButterfliesShop.Models;
using ButterfliesShop.Services;
using System.ComponentModel.DataAnnotations;
namespace ButterfliesShop.Validators;
public class MaxButterflyQuantityValidation : ValidationAttribute
{
private int _maxAmount;
public MaxButterflyQuantityValidation(int maxAmount)
{
_maxA... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// 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 System.Web;
namespace CS_ASP_046
{
public class Car
{
public string Make { get; set; }
public string Model { get; set; }
public int Year { get; set; }
public string Color { get; set; }
public Car(... |
// *** 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 FluentAssertions;
using Ritter.Infra.Crosscutting.Tests.Mocks;
using System;
using System.Collections.Generic;
using Xunit;
namespace Ritter.Infra.Crosscutting.Tests.Extensions
{
public class Object_ToDictionary
{
[Fact]
public void ReturnDictionaryGivenNotNullObject()
{
... |
using Luban.Job.Cfg.Defs;
using Luban.Job.Common.Generate;
using Luban.Job.Common.Utils;
using System.Collections.Generic;
namespace Luban.Job.Cfg.Generate
{
[Render("code_cs_bin")]
class CsCodeBinRender : TemplateCodeRenderBase
{
protected override string RenderTemplateDir => "cs_bin";
}
} |
using System;
namespace VacationRental.Domain.Exceptions
{
public class BookingNotFoundException : ApplicationException
{
public BookingNotFoundException(string message) :base(message)
{
}
}
} |
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="~/assets/css/bootstrap-clearmin.min.css">
<link rel="stylesheet" type="text/css" href="~/assets/css/roboto.... |
using System;
using System.Collections.Generic;
using CountersPlus.Counters.Interfaces;
using Zenject;
namespace CountersPlus.Counters.Event_Broadcasters
{
/// <summary>
/// An abstract class that broadcasts in-game events across Counters that inherit <see cref="IEventHandler"/>s.
/// This was designed su... |
using System;
namespace UnityEditor.ShaderGraph.Drawing
{
[AttributeUsage(AttributeTargets.Property)]
public class InspectableAttribute : Attribute
{
// String value to use in the Property name TextLabel
public string labelName { get; private set; }
// The default value of this pr... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace AppAdvisory.MathGame
{
public class gotoMM4 : ButtonHelper
{
public GameObject level;
override public void OnClicked()
{
menuManager.backtonormal();
Destroy(level);
menuManager.GoToMM4();
RemoveListener(... |
using Newtonsoft.Json.Linq;
using TTController.Common;
namespace TTController.Service.Config.Converter
{
public class LedColorGradientPointConverter : AbstractObjectToArrayConverter<LedColorGradientPoint>
{
protected override object[] CreateConstructorArgs(JArray array) =>
new object[] { a... |
// *******************************************************************************
// * 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/L... |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Formatting;
using System.Net.Http.Headers;
using System.W... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace IM_PJ.Models
{
/// <summary>
/// Lớp Product Variation Cost Of Good Sale
/// </summary>
public class ProductVariationCOGSModel
{
public int id { get; set; }
public string sku { get; set; ... |
// -------------------------------------
// Domain : Avariceonline.com
// Author : Nicholas Ventimiglia
// Product : Unity3d Foundation
// Published : 2015
// -------------------------------------
using System;
using System.Collections;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
u... |
// <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... |
namespace MyProject.WebApi.UseCases.GetCustomerDetails
{
using MyProject.Application;
using MyProject.Application.UseCases.GetCustomerDetails;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Threading.Tasks;
[Route("api/[controller]")]
public class CustomersController : Microsof... |
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Linq;
namespace ZapLib
{
/// <summary>
/// zip 壓縮類別輔助工具
/// </summary>
public class ZipHelper
{
/// <summary>
/// 將被壓縮的目標目錄名稱
/// </summary>
public string ZipD... |
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Options;
using Abp.Authorization;
using FE-practice.Authorization.Roles;
using FE-practice.Authorization.Users;
using FE-practice.MultiTenancy;
using Microsoft.Extensions.Logging;
namespace FE-practice.Identity
... |
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/objidlbase.h in the Windows SDK for Windows 10.0.22000.0
// Original source is Copyright © Microsoft. All rights reserved.
using NUnit.Framework;
using Sy... |
// --------------------------------------------------------------------------------------------------
// <copyright file="GetBrandImageQuery.cs" company="FluentPOS">
// Copyright (c) FluentPOS. All rights reserved.
// The core team: Mukesh Murugan (iammukeshm), Chhin Sras (chhinsras), Nikolay Chebotov (unchase).
// Li... |
#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;
namespace TNRD.Automatron.Drawers {
[CustomDrawer( typeof( bool ) )]
public class BoolDrawer : AutomationDrawer {
public override void OnGUI( Rect rect, string name, ref object value ) {
base.OnGUI( rect, name, ref value );
... |
using DarkUI.Controls;
namespace Intersect.Editor.Forms.Editors.Events.Event_Commands
{
partial class EventCommandChangeName
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
... |
// Copyright (c) 2019 Alachisoft
//
// 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... |
// 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.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
namespace Microsoft.AspNetCore.Http.Connections.Internal.Transpo... |
using API_CatalogoJogos.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace API_CatalogoJogos.Repositories
{
public class JogoRepository : IJogoRepository
{
private static Dictionary<Guid, Jogo> jogos = new Dictionary<Guid, Jogo>()
... |
/*
* _____ ______
* /_ / ____ ____ ____ _________ / __/ /_
* / / / __ \/ __ \/ __ \/ ___/ __ \/ /_/ __/
* / /__/ /_/ / / / / /_/ /\_ \/ /_/ / __/ /_
* /____/\____/_/ /_/\__ /____/\____/_/ \__/
* /____/
*
* Authors:
* 钟峰(Popeye Zhong) <zongs... |
/*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... |
namespace TuBus_SS
{
public class ApiResponse
{
public string Message { get; set; }
public object Data { get; set; }
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Owin;
using Microsoft.Owin;
[assembly: OwinStartup(typeof(PhotoSharingApplication.Startup))]
namespace PhotoSharingApplication
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
... |
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.19041.0
// Original source is Copyright © Microsoft. All rights reserved.
using System.Runtime.CompilerServic... |
#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 ... |
// *** 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... |
// Copyright (c) 1995-2009 held by the author(s). All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of c... |
using System.Xml.Serialization;
namespace ArticulationUtility.UseCases.Values.StudioOneKeySwitchXml
{
public class Attributes
{
[XmlAttribute( AttributeName = "pitch" )]
public string Pitch { get; set; } = string.Empty;
[XmlAttribute( AttributeName = "name" )]
public string Nam... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FireButton : MonoBehaviour {
public void OnFireButtonClick() {
g.c.Trigger(Channel.Actor.SetPlayerBomb);
}
} |
using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
// 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: Asse... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KoobecaFeedController.BL.Request;
namespace KoobecaFeedController.BL.FeedGenerators
{
public class HiddenFeedGenerator : FeedGenerator
{
public HiddenFeedGenerator(RequestParams request) : base(request)
... |
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("Fr... |
//---------------------------------------------------------------------
// <copyright file="GeoJsonSpatialFormatter.cs" company="Microsoft">
// Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
// </copyright>
//---------------------------------... |
// *** 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... |
// <auto-generated />
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using NpuRozklad.Persistence;
namespace NpuRozklad.Persistence.EfMigrations
{
[DbContext(typeof(NpuRozkladContext))]
partial class NpuRozk... |
using Box.V2.Auth;
using Box.V2.Config;
using Box.V2.Converter;
using Box.V2.Extensions;
using Box.V2.Models;
using Box.V2.Models.Request;
using Box.V2.Services;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
namespace Box.V2.Managers
{
/// <summary>
/// The mana... |
//------------------------------------------------------------------------------
// <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 Ryujinx.HLE.HOS.Ipc;
using Ryujinx.HLE.HOS.Kernel;
using Ryujinx.HLE.HOS.Kernel.Common;
using Ryujinx.HLE.HOS.Kernel.Ipc;
using Ryujinx.HLE.HOS.Kernel.Process;
using Ryujinx.HLE.HOS.Kernel.Threading;
using System;
using System.Buffers.Binary;
using System.Collections.Generic;
using System.IO;
using System.Threadi... |
using Money.Models.Sorting;
using Neptuo;
using Neptuo.Formatters.Metadata;
using Neptuo.Models.Keys;
using Neptuo.Queries;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Money.Models.Queries
{
/// <summary>
/// A query for getting... |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="JpegExporter.cs" company="OxyPlot">
// Copyright (c) 2014 OxyPlot contributors
// </copyright>
// <summary>
// Provides functionality to export plots to jpeg.
// </summary>
//... |
//
// Bundle.cs
//
// Author:
// fjy <jiyuan.feng@live.com>
//
// Copyright (c) 2019 fjy
//
// 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 lim... |
// 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.
namespace Microsoft.UI.Xaml
{
class SR
{
public static string DirectUI_CornerRadius_InvalidMember =... |
//------------------------------------------------------------------------------
// <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 ValidationPilotServices.DataReader;
using ValidationPilotServices.DataTypes;
using ValidationPilotServices.Infrastructure.Extensions;
using ValidationPilotServices.SchemaReader.Profiles;
using Xunit;
using Xunit.Abstractions;
namespace ValidationPilotTests
{
public class DecimalNumberTests : C... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using MySql.Data;
using MySql.Data.MySqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Pesho_station
{
public partial class frm_L... |
// Copyright © 2015 Dmitry Sikorsky. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Linq;
using Data.Abstractions.Extensions;
using ExtCore.Data.EntityFramework;
using WebApplication.Ex... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace LeetCode.Test
{
[TestClass]
public class _1417_ReformatTheString_Test
{
[TestMethod]
public void Reformat_1()
{
var solution = new _1417_ReformatTheString();
var result = solution.Reformat("a0b1c2"... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sigil;
namespace SigilTests
{
[TestClass, System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public partial class LoadArguments
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MovePlayer : MonoBehaviour
{
public GameObject Player;
Rigidbody2D PlayerBody;
Vector2 TargetPosition;
private float MoveSpeed = 22f;
private float DesiredX;
private float DesiredY;
private GameObje... |
// Copyright 2021 Automate The Planet Ltd.
// Author: Anton Angelov
// 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... |
// c:\program files (x86)\windows kits\10\include\10.0.18362.0\shared\ksmedia.h(7101,9)
using System;
using System.Runtime.InteropServices;
namespace DirectN
{
[StructLayout(LayoutKind.Sequential)]
public partial struct __struct_ksmedia_1205
{
public int Property;
public uint StreamIndex;
... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Android.App;
// 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... |
#if UNITY_EDITOR
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace UnityEssentials.SceneWorkflow.PropertyAttribute.SceneReference
{
/// <summary>
/// EDITOR PART of... |
namespace SubatomicParticles.Interfaces.ElementaryParticles.Quarks
{
using Constants;
/// <summary>
/// A quark is a type of elementary particle and a fundamental constituent of matter. Quarks combine to form
/// composite particles called hadrons, the most stable of which are protons and neutrons... |
namespace SKDB.Boundary
{
/// <summary>
/// Support to add several operations that are bulk written into the DB, i.e.
/// the operations are passed simultaneously (not sequentially) to the database.
/// Very useful and efficient when deleting, updating or creating several items from\in a collection.
... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
namespace Iot.Device.Axp192
{
/// <summary>
/// ADC Pin enabled
/// </summary>
[Flags]
public enum AdcPinEnabled
{
/// <summary>Batter... |
/*
https://www.codewars.com/kata/5f6d533e1475f30001e47514/csharp
7 kyu
Consecutive items
You are given a list of unique integers arr, and two integers a and b.
Your task is to find out whether or not a and b appear consecutively in arr,
and return a boolean value (True if a and b are consecutive, False otherwise).... |
// <copyright file="QuitRequestedException.cs" company="Zhaoquan Huang">
// Copyright (c) Zhaoquan Huang. All rights reserved
// </copyright>
using System;
using System.Collections.Generic;
using System.Text;
namespace Zhaobang.FtpServer.Exceptions
{
/// <summary>
/// The user requested to quit.
/// </su... |
namespace ShoppingCartStore.Models
{
public class Cart : BaseModel
{
public Cart()
{
}
public string CustomerId { get; set; }
public Customer Customer { get; set; }
}
} |
namespace Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.Api20200730Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.PowerShell;
/// <summary>
/// The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
... |
//------------------------------------------------------------------------------
// <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.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.EntityFrameworkCore;
using PierresTrea... |
using System;
using System.Collections.Generic;
using System.Text;
using Utils.NET.IO.Xml;
namespace TitanCore.Data.Items
{
public class SkinUnlockerInfo : ItemInfo
{
public override GameObjectType Type => GameObjectType.SkinUnlocker;
public uint characterType;
public override void P... |
using System.IO;
namespace SharpCompress.Common.Tar
{
public class TarVolume : Volume
{
public TarVolume(Stream stream, Options options)
: base(stream, options)
{
}
}
} |
using System.Data;
namespace Umbraco.Cms.Infrastructure.Persistence
{
internal static class DbCommandExtensions
{
/// <summary>
/// Unwraps a database command.
/// </summary>
/// <remarks>UmbracoDatabase wraps the original database connection in various layers (see
/// ... |
using System;
using System.Data;
using System.Data.SqlClient;
using Csla;
using Csla.Data;
namespace ParentLoadRO.Business.ERCLevel
{
/// <summary>
/// B11Level111111Child (read only object).<br/>
/// This is a generated base class of <see cref="B11Level111111Child"/> business object.
/// </summary>
... |
// 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.
#nullable disable
using System;
using System.Collections.Generic;
using System.Windows.Data;
using Microsoft.CodeA... |
using System;
using System.Linq;
using System.Text.RegularExpressions;
namespace ExT06.ExtractEmails
{
class Program
{
static void Main(string[] args)
{
string pattern = @"(^|\s)[A-Za-z0-9][\w*\-\.]+[A-Za-z0-9]@[A-Za-z]+([.-][A-Za-z]+)\b";
string input = Console.ReadLin... |
using System.Collections.Generic;
namespace Minsk.CodeAnalysis.Syntax
{
public sealed class LiteralExpressionSyntax : ExpressionSyntax
{
public LiteralExpressionSyntax(SyntaxTree syntaxTree, SyntaxToken literalToken)
: this(syntaxTree, literalToken, literalToken.Value)
{
}... |
//
// Copyright (C) DataStax 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 la... |
using System.Resources;
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.
[ass... |
namespace PimdexxSystem
{
partial class Usuarios
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <p... |
using System.ComponentModel.Composition;
using System.Threading.Tasks;
using ToeKnife.BspEditor.Commands;
using ToeKnife.BspEditor.Documents;
using ToeKnife.BspEditor.Editing.Properties;
using ToeKnife.BspEditor.Modification;
using ToeKnife.Common.Shell.Commands;
using ToeKnife.Common.Shell.Hotkeys;
using ToeKnife.Com... |
using UnityEngine;
using System.Linq;
namespace Lockstep.Data
{
//PROTECTED NOT PRIVATE... private dun serialize in derived class
[System.Serializable]
public class DefaultLSDatabase : LSDatabase, IEssentialDataProvider, IUnitConfigDataProvider
, IAgentDataProvider, IAgentControllerDataProvider
{
#region Agen... |
namespace Movies.API.Models
{
using System;
/// <summary>
/// Defines the <see cref="Movie" />
/// </summary>
public class Movie
{
/// <summary>
/// Gets or sets the Id
/// </summary>
public Guid Id { get; set; }
/// <summary>
/// Gets or sets t... |
using Android.App;
using Android.Widget;
using Android.OS;
namespace ARYouKittenMe2.Droid
{
[Activity(Label = "AR You Kitten Me", MainLauncher = true, Icon = "@mipmap/icon")]
public class MainActivity : Activity
{
int count = 1;
protected override void OnCreate(Bundle savedInstanceState)
... |
// <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 file="RequestCampaignReportActivity.cs" company="Rare Crowds Inc">
// Copyright 2012-2013 Rare Crowds, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance... |
using System.Collections.Generic;
namespace Simplexcel.XlsxInternal
{
internal sealed class XlsxIgnoredErrorCollection
{
internal IList<XlsxIgnoredError> DistinctIgnoredErrors { get; }
public XlsxIgnoredErrorCollection()
{
DistinctIgnoredErrors = new List<XlsxIgnoredError>... |
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("SP... |
using CKAN;
using NUnit.Framework;
namespace Tests.Core.Types
{
[TestFixture]
public class Version
{
[Test]
public void Alpha()
{
var v1 = new CKAN.Version("apple");
var v2 = new CKAN.Version("banana");
// alphabetical test
Assert.Tha... |
using Xunit;
using Xunit.Abstractions;
using Microsoft.CodeAnalysis;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using CSharpCompilers;
public class ScriptTests
{
private readonly ITestOutputHelper LOG;
public ScriptTests(ITestOutputHelper output)
{
this.LOG = output;
... |
namespace N3O.Umbraco.Content {
public class TogglePropertyBuilder : PropertyBuilder {
public void Set(bool? value) {
Value = value;
}
}
} |
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft 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 of the License at
// http://www.apa... |
using System;
using UnityEngine;
using JetBrains.Annotations;
using System.Collections.Generic;
namespace Nova
{
public interface INovaLaunchable
{
/// <summary>
/// Entry point for when the UI is configured and prepared.
/// </summary>
/// <param name="window">The key window</p... |
using UnityEngine;
namespace DTFiniteGraphMachine {
public static class Vector2Util {
public static Vector2 Abs(Vector2 v) {
return new Vector2(Mathf.Abs(v.x), Mathf.Abs(v.y));
}
public static Vector2 InverseScale(Vector2 a, Vector2 b) {
float newX = b.x == 0 ? float.MaxValue : (a.x / b.x);
... |
namespace operators;
public static class ComparisonOperators
{
public static void Examples()
{
Console.WriteLine("--- >");
Greater();
Console.WriteLine("--- <");
Less();
Console.WriteLine("--- >=");
GreaterOrEqual();
Console.WriteLine("--- <=");
... |
using Newtonsoft.Json;
namespace Slack.NetStandard.EventsApi.CallbackEvents
{
public abstract class FileCallbackEvent : CallbackEvent
{
[JsonProperty("file_id", NullValueHandling = NullValueHandling.Ignore)]
public string FileId { get; set; }
}
} |
@model Teknik.Areas.Users.ViewModels.TwoFactorViewModel
@using Teknik.Utilities
<script nonce="@Context.Items[Constants.NONCE_KEY]">
var confirmAuthCodeURL = '@Url.SubRouteUrl("user", "User.Action", new { action = "ConfirmAuthenticatorCode" })';
</script>
@Scripts.Render("~/bundles/checkAuthCode")
<div class="c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.