content stringlengths 23 1.05M |
|---|
using AutoMapper;
using LastSeenWeb.Data.Models;
using LastSeenWeb.Domain.Models;
namespace LastSeenWeb.AngularFront.MappingProfiles
{
public class AppMappingProfile : Profile
{
public AppMappingProfile()
{
CreateMap<LastSeenItem, LastSeenItemEntity>()
.ForMember(d => d.OwnerName, s => s.Ignore())
.R... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UiPath.PowerShell.Tests.Util
{
internal class TestSettings
{
public string URL { get; set; }
public string TenantName { get; set; }
public string UserName { get; set; }
public string Password { get; set; }
... |
namespace Modbus.Unme.Common
{
using System;
using System.Collections.Generic;
using System.Linq;
internal static class SequenceUtility
{
public static IEnumerable<T> Slice<T>(this IEnumerable<T> source, int startIndex, int size)
{
if (source == null)
... |
#region Copyright (c) Pixeval/Mako
// MIT License
//
// Copyright (c) Pixeval 2021 Mako/Feeds.cs
//
// 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 witho... |
using System;
using System.ComponentModel.DataAnnotations;
using BAE_Brasil.Utils.Constants;
namespace BAE_Brasil.Models.ViewModels
{
public class AddDegreeViewModel
{
[MinLength(3, ErrorMessage = ErrorMessage.MinLength3)]
public string Level { get; set; }
[MinLength(3, ErrorMe... |
using System;
using System.Runtime.InteropServices;
namespace PCSC.Interop.Windows
{
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
internal class SCARD_IO_REQUEST
{
internal int dwProtocol;
internal int cbPciLength;
internal SCARD_IO_REQUEST()
{
... |
using UruIT.RESTClient.Providers;
using UruIT.Serialization;
namespace UruIT.RESTClient.Processors
{
/// <summary>
/// Processor to process REST exceptions.
/// </summary>
public class RestExceptionProcessor<TResult, TRestBusinessError, TRestHttpError, TRestException, TSerializer>
: ExceptionP... |
using System;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityStandardAssets.CrossPlatformInput;
namespace UnityStandardAssets._2D
{
[RequireComponent(typeof(PlatformerCharacter2D))]
public class Platformer2DUserControl : MonoBehaviour
{
private PlatformerCharacter2D m_Character;
... |
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using System.Numerics;
namespace Geb.Image.Formats.MetaData.Profiles.Icc
{
/// <content>
/// Provides methods to write ICC data types
/// </content>
internal sealed partial class IccDataWriter
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PlayingCardsConsole
{
public class InsertingSort : ISort
{
public IEnumerable<T> Sort<T>(IEnumerable<T> source) where T : IComparable<T>
{
var copy = source.ToArray();
void ... |
using System;
using System.Collections.Generic;
using System.Collections;
using System.Text.RegularExpressions;
using System.Linq;
//using System.Web.Script.Serialization;
using System.Dynamic;
using System.Text;
using System.Reflection;
using System.Diagnostics;
using System.IO;
using CsQuery;
using CsQuery.StringSca... |
// <auto-generated />
namespace IronJS.Tests.UnitTests.Sputnik.Conformance.Types
{
using System;
using NUnit.Framework;
[TestFixture]
public class TheNumberTypeTests : SputnikTestFixture
{
public TheNumberTypeTests()
: base(@"Conformance\08_Types\8.5_The_Number_Type")
{
... |
using System.IO;
using UnityEditor;
using UnityEngine;
public class AtlasPostProcessor : AssetPostprocessor
{
private static string[] ui_atlas_path = new string[] {
"Assets/RawResources/Atlas/AtlasCommon",
"Assets/RawResources/Atlas/AtlasItem",
};
private static string scene_atlas_path = ... |
using System;
using System.Collections.Generic;
using System.Text;
namespace RequestHelperSample.Data.Models
{
public class Student
{
public int Id { get; set; }
public string StudentName { get; set; }
public string PhotoImageName { get; set; }
public decimal Height { get; set;... |
using FoxDb.Interfaces;
namespace FoxDb
{
public class ConstantBuilder : ExpressionBuilder, IConstantBuilder
{
public ConstantBuilder(IFragmentBuilder parent, IQueryGraphBuilder graph) : base(parent, graph)
{
}
public override FragmentType FragmentType
{
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
namespace Microsoft.Omex.Extensions.Hosting.Certificates
{
internal class CertificateStore : ICertificateStore
{
... |
using System;
namespace Pajama
{
internal class ParserException : Exception
{
private static string FormatMessage(Token token, string message)
{
if (token == null)
{
message = "No token info in error message! This is a bug!\n" + message;
}
else
{
message = string.Join("",
... |
namespace Schierle.Documentor.Utils
{
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
/// <summary>Provides methods to build XML documentation headers.</summary>
internal ... |
namespace ReGoap.Unity.FSMExample.Memories
{
public class BuilderMemory : ReGoapMemoryAdvanced<string, object>
{
}
}
|
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace APTCWebb.Library.Models
{
/// <summary>
/// Passenger Message Model
/// </summary>
public class PassengerMessageModel
{
/// <summary>
/// Acti... |
using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Top.Api;
namespace DingTalk.Api.Response
{
/// <summary>
/// OapiProcessListbyuseridResponse.
/// </summary>
public class OapiProcessListbyuseridResponse : DingTalkResponse
{
/// <summary>
/// ding... |
namespace _2AcyclicGraph.Directed
{
public class VertexNode
{
public int Vertex { get; }
public int Weight { get; }
public VertexNode(int vertex, int weight)
{
Vertex = vertex;
Weight = weight;
}
}
}
|
using Com.Danliris.Service.Packing.Inventory.Application.CommonViewModelObjectProperties;
using Com.Danliris.Service.Packing.Inventory.Application.ToBeRefactored.DyeingPrintingAreaInput.Warehouse.Create;
using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
namespace Com.Danliris.Service.Pac... |
namespace Imagin.Common.Input
{
/// <summary>
/// Specifies a changed value.
/// </summary>
public class ChangedValue : ChangedValue<object>
{
public ChangedValue(object OldValue, object NewValue) : base(OldValue, NewValue) { }
}
}
|
namespace TES3.Records.Processing.Definitions.SCPT
{
class Names
{
internal static readonly string[] SubRecordOrder = new string[] { "SCHD", "DELE", "SCVR", "SCDT", "SCTX" };
}
}
|
namespace StarWars.Data.EntityFramework.Workaround
{
// WORKAROUND: https://docs.efproject.net/en/latest/miscellaneous/cli/dotnet.html#targeting-class-library-projects-is-not-supported
public static class Program
{
public static void Main() { }
}
}
|
using Xamarin.Forms.Controls.GalleryPages.CollectionViewGalleries.ScrollToGalleries;
namespace Xamarin.Forms.Controls.GalleryPages.CollectionViewGalleries
{
internal class ScrollToGallery : ContentPage
{
public ScrollToGallery()
{
var descriptionLabel =
new Label { Text = "ScrollTo Galleries", Margin = n... |
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
using Xamarin.Android.BuildTools.PrepTasks;
namespace Xamarin.Android.Tools.BootstrapTasks
{
public class RunAndroidEmulatorCheckBoo... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Data.Common;
using Xunit;
namespace System.Data.Tests.Common
{
public class DataColumnMappingTest
{
[Fact]
public void DataSetColumn_Get_WhenNot... |
using System;
namespace BehavioralPatterns;
public class AuthenticatoinDialog : Mediator
{
private Component _component1;
public AuthenticatoinDialog(Component component)
{
component.SetMediator(this);
}
public void Notify(Component component, string _event)
{
if(_event.ToLow... |
using NetRt.Assemblies;
using NetRt.Metadata.TableElements;
namespace NetRt.TypeLoad.TypeSystem
{
public class DefinedType : TypeInformation
{
public override int Size { get; }
public override Field[] Fields { get; }
public override MethodDef[] Methods { get; }
public override... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class PlayerController : MonoBehaviour
{
//Movement
public float horizontalInput;
public float verticalInput;
public float speed = 5;
public float mapRange = 19;
public floa... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AutoMapper;
using DiabloCms.Entities.Models;
using DiabloCms.Models.RequestModel.Deliveries;
using DiabloCms.Models.ResponseModel.Deliveries;
using DiabloCms.MsSql;
using DiabloCms.Shared;
using DiabloCms.Shared.Cons... |
using System;
using System.Text.RegularExpressions;
using Orchard.Autoroute.Services;
using Orchard.ContentManagement;
using Orchard.Environment.Extensions;
using Orchard.Utility.Extensions;
namespace ceenq.com.AppRoutingServer.Services {
[OrchardSuppressDependency("Orchard.Autoroute.Services.DefaultSlugService")... |
using ZumtenSoft.Mindex.Criterias;
namespace ZumtenSoft.Mindex.Stubs.MajesticMillion
{
public class SiteRankingSearch
{
public SearchCriteria<int> GlobalRank { get; set; }
public SearchCriteria<int> TopLevelDomainRank { get; set; }
public SearchCriteria<string> DomainName { get; set; }... |
//------------------------------------------------------------------------------
// <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>
//----------------------------------------... |
/*
* Pixel Anti Cheat
* ======================================================
* This library allows you to organize a simple anti-cheat
* for your game and take care of data security. You can
* use it in your projects for free.
*
* Note that it does not guarantee 100% protection for
* your game. If you are de... |
using s76ToolBox.GeneralUse.Extensions;
using System;
using UnityEngine;
namespace Core.Model
{
public abstract class Skin : MonoBehaviour
{
public virtual void Initialize(IGeoEntity entity)
{
transform.SetParent(entity.Trans);
transform.ResetLocals();
}
}
}... |
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace DrawerHost.PreventClose
{
public class MainWindowViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
private bool _DrawerOpen;
pub... |
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace socks5.Controller
{
public class ProxySocketTun
{
protected Socket _socket;
protected EndPoint _socketEndPoint;
protected IPEndPoint _remoteUDPEndPoint;
protected bool _... |
using System.Text.RegularExpressions;
namespace Library.Core.Extensions
{
public static class RegexExtensions
{
public static bool IsMatch(this string value, string pattern, RegexOptions options = RegexOptions.IgnoreCase)
{
return Regex.IsMatch(value, pattern, options);
}
... |
using System;
using System.Collections.Generic;
using System.Text;
public class Missions
{
private string codeName;
private string state;
public Missions(string codeName, string state)
{
this.State = state;
this.CodeName = codeName;
}
public string State
{
get { ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace AlgoTest.LeetCode.SummaryRanges
{
[TestClass]
public class SummaryRangesSolution
{
[TestMethod]
public void Test()
{
var t... |
// Jeebs Rapid Application Development
// Copyright (c) bfren.uk - licensed under https://mit.bfren.uk/2013
using System.Collections.Generic;
using System.Text.RegularExpressions;
using Jeebs.Constants;
namespace Jeebs
{
public static partial class StringExtensions
{
/// <summary>
/// Rules for converting plur... |
using Microsoft.EntityFrameworkCore;
using Volo.Abp.Data;
using Volo.Abp.EntityFrameworkCore;
using EasyAbp.WeChatManagement.MiniPrograms.UserInfos;
namespace EasyAbp.WeChatManagement.MiniPrograms.EntityFrameworkCore
{
[ConnectionStringName(MiniProgramsDbProperties.ConnectionStringName)]
public interface IMini... |
namespace Incubation.Messaging
{
public class NetMQMessagingSystem
{
}
}
|
// DocSection: filtering_get_items_by_codename_in
DeliveryItemListingResponse<object> response = await _deliveryClient.GetItemsAsync<object>(
// Gets items whose codename is one of the following
new InFilter("system.codename", "welcome_to_mvc", "top_10_websites", "kontent_best_practices")
);
// EndDocSection
|
// ----------------------------------------------------------------------------------------------------------------------
// <summary>The Photon Chat Api enables clients to connect to a chat server and communicate with other clients.</summary>
// <remarks>ChatClient is the main class of this api.</remarks>
// <copy... |
using Disqord.Models;
namespace Disqord
{
public class TransientWebhook : TransientEntity<WebhookJsonModel>, IWebhook
{
/// <inheritdoc/>
public Snowflake Id => Model.Id;
/// <inheritdoc/>
public Snowflake ChannelId => Model.ChannelId;
/// <inheritdoc/>
... |
using System;
using System.IO.IsolatedStorage;
using System.Diagnostics;
namespace sdkSettingsCS
{
public class AppSettings
{
IsolatedStorageSettings settings;
const string CheckBox1SettingKeyName = "CheckBox1Setting";
const string CheckBox2SettingKeyName = "CheckBox2Setting";
... |
namespace Perlang.Exceptions
{
/// <summary>
/// Thrown when a method call is invalid for the current state of an object.
/// </summary>
public class IllegalStateException : StdlibException
{
public IllegalStateException(string message)
: base(message)
{
}
}
}... |
using System;
namespace UkooLabs.SVGSharpie.DynamicPDF.Core.Shading
{
internal struct Circle : IEquatable<Circle>
{
public float X { get; }
public float Y { get; }
public float R { get; }
public Circle(float x, float y, float r)
{
X = x;
Y = y... |
namespace Chunkyard.Build;
internal static class BuildUtils
{
public static string ExecQuery(
string fileName,
string[] arguments,
int[] validExitCodes)
{
var builder = new StringBuilder();
Exec(
fileName,
arguments,
validExitCodes,
... |
#region License
//
// Copyright (c) 2013, Kooboo team
//
// Licensed under the BSD License
// See the file LICENSE.txt for details.
//
#endregion
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Description;
... |
using System;
namespace Softuni.Community.Web.Models.ViewModels
{
public class MyProfileViewModel
{
public DateTime BirthDate { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string AboutMe { get; set; }
public string S... |
namespace Foompany.Services.API.MyGame
{
/// <summary>
/// Define a location tag, that will be used to route the request to the appropriate server's location.
/// </summary>
public class ServerLocationTag : Phoesion.Glow.SDK.Firefly.ServiceTagAttribute { }
}
|
using UnityEngine;
using UnityEngine.UI;
namespace Zios.Unity.Components.FPSGUI{
using Zios.Unity.Time;
[AddComponentMenu("Zios/Component/Debug/FPS (GUI)")]
public class FpsGUI : MonoBehaviour{
public Text fpsText;
public Text frameTimeText;
private int frames = 0;
private float frameTime;
private float ne... |
// <copyright file="OAuthGrantType.Generated.cs" company="Okta, Inc">
// Copyright (c) 2014 - present Okta, Inc. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
// </copyright>
// This file was automatically generated. Don't modify i... |
namespace Jaeger.Crossdock
{
public static class Constants
{
public const string TRANSPORT_HTTP = "HTTP";
public const string TRANSPORT_DUMMY = "DUMMY";
public const string BAGGAGE_KEY = "crossdock-baggage-key";
public const string ENV_PROP_SENDER_TYPE = "SENDER";
/... |
using System;
using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Input;
using System.Windows.Interop;
using System.Windows.Media.Imaging;
namespace SnakeGame.Themes
{
internal static class Extensions
{
public static void WindowFromTemplate(this object templateFrameworkEle... |
using Singleton.Sample;
using System;
using System.Threading.Tasks;
namespace Singleton
{
class Program
{
static void Main(string[] args)
{
Parallel.Invoke(
() => Console.WriteLine($"hashcode:{StaticSingleton.Instance.GetHashCode()}"),
() => Console... |
using System;
using System.Linq.Expressions;
using DynamicVNET.Lib.Internal;
using Xunit;
namespace DynamicVNET.Lib.Unit.Tests
{
/// <summary>
/// <see cref="ExpressionMember"/>
/// </summary>
public class ExpressionMemberTests
{
private UserStub _instance;
/// <summary>
/... |
using System.Linq;
using System.Xml.Serialization;
namespace openTRANS
{
public partial class OrderSummary
{
public OrderSummary()
{
}
public OrderSummary(Order o)
{
TotalItemNum = o.OrderItemList.Count;
TotalAmount = o.OrderItemList.Sum(oi => o... |
@model OCM.API.Common.Model.RegistrationModel
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@if (Model.RegistrationFailed == true)
{
<p class="alert alert-danger">
... |
@model GalleryMetaData
@{
Layout = Carrotware.CMS.Interface.CarrotLayout.Popup;
ViewBag.Title = "Photo Gallery : Image Meta Data";
}
@using (Html.BeginForm()) {
@Html.AntiForgeryToken()
@Html.HiddenFor(m => m.GalleryImageMetaID)
@Html.HiddenFor(m => m.GalleryImage)
@Html.HiddenFor(m => m.SiteID)... |
using NSimpleOLAP.Schema;
using System;
namespace NSimpleOLAP.Common.Utils
{
public class MetricsReferenceTranslator<T>
where T : struct, IComparable
{
private DataSchema<T> _schema;
public MetricsReferenceTranslator(DataSchema<T> schema)
{
_schema = schema;
}
public T Translate(st... |
using System;
using PineCone.Structures.Schemas;
using PineCone.Structures.Schemas.Builders;
namespace PineCone.Tests.UnitTests.Structures
{
internal static class StructureSchemaTestFactory
{
private static readonly IStructureTypeFactory StructureTypeFactory = new StructureTypeFactory();
... |
using System.Collections.Generic;
namespace Oss
{
public class ParseContentRes
{
public IEnumerable<string> Inherits { get; set; }
public string Content { get; set; }
public string RawContent { get; set; }
public bool IsRaw { get; set; }
}
} |
//------------------------------------------------------------------------------
// <generado automáticamente>
// Este código fue generado por una herramienta.
//
// Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
// se vuelve a generar el código.
// </generado aut... |
using Common;
using Common.Service;
using GalaSoft.MvvmLight.CommandWpf;
using System.Collections.ObjectModel;
using VK.Data;
using VK.Service;
namespace VK.ViewModel
{
public class MainViewModelVK : FoundViewModelBase
{
public MainViewModelVK(IServiceVK service)
{
_service = servi... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class HeroStatusData
{
public int id;
public string skill1;
public string skill2;
public string skill3;
public string prefab;
}
|
namespace BookLovers.Publication.Application.WriteModels.Books
{
public class BookDetailsWriteModel
{
public int? Pages { get; set; }
public int? Language { get; set; }
}
} |
using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LogicBall.Particles
{
public class GravityPoint : ParticleForce
{
private Vector2 point;
private float force;
private bool inverted;
public GravityPoi... |
using System;
using System.Reflection;
using System.Collections;
using System.IO;
using System.Globalization;
using MbUnit.Core;
using MbUnit.Core.Invokers;
using MbUnit.Core.Framework;
using MbUnit.Framework;
namespace MbUnit.Core.Runs
{
internal sealed class RepeatRun : Run
{
public ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... |
#nullable enable
using System;
using System.Runtime.CompilerServices;
namespace ServiceStack;
/// <summary>
/// Avoid polluting extension methods on every type with a 'X.*' short-hand
/// </summary>
public static class X
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static To? Map<... |
using NPBaseRepo.Models.Entities;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
namespace NPBaseRepo
{
public class MovieContext : DbContext
{
public MovieContext()
: base("DefaultConnection")
{
}
pu... |
@model Epsilon.Web.Models.ViewModels.Admin.DbAppSettingListViewModel
@{
ViewBag.Title = "Database AppSettings";
}
<h2>@ViewBag.Title</h2>
@using Epsilon.Web.Models.ViewModels.Admin
@Html.Partial("_DbAppSettingLabelCloud",
new DbAppSettingLabelCloudViewModel { Labels = Model.AllLabels, SelectedL... |
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Maui.Controls.CustomAttributes;
using Microsoft.Maui.Controls.Internals;
#if UITEST
using Microsoft.Maui.Controls.UITests;
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Microsoft.Maui.Controls.ControlGallery.Issues
{
#... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace HSLSharp.Configuration
{
/// <summary>
/// 异形ModbusTcp的客户端节点,只能挂在Alien节点下,下面只能挂载异形modbus客户端
/// </summary>
public class NodeModbusTcpAline : DeviceNode
... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "ClassDataScriptable", menuName = "Class Data/Create Scriptable")]
[Serializable]
public class ClassDataScriptableMeta : ScriptableObject
{
public List<ClassData> classes = new List<ClassData>(... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Web;
using System.Web.Mvc;
using TwilioParty.Models;
namespace TwilioParty.Controllers
{
[AllowAnonymous]
public class AuthController : Controller
{
// GET: Login
public ActionResu... |
using Microsoft.AspNetCore.Http;
using OMS.Core;
using OMS.Data.Domain;
using OMS.Services.Account;
namespace OMS.WebCore
{
public class WebWorkContext : IWorkContext
{
#region ctor
private User _user;
private readonly IUserService _userService;
public WebWorkContext(IHttpConte... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour
{
public Transform projectileSpawn;
public GameObject projectilePrefab;
public int life = 100;
// Start is called before the first frame update
void Start()
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Th... |
using System;
using System.Collections.Generic;
namespace LexicalAnalysis
{
//TODO: [DOCS] write the corresponding documentation
/// <summary>
///
/// </summary>
public class Sentence
{
public List<string> Tokens { set; get; }
public int Line { set; get; }
publ... |
using System;
using System.IO;
namespace AmbientSoundsTuner2.CommonShared.Configuration
{
/// <summary>
/// An interface for implementing configuration migrators.
/// Typically you would want to use <see cref="T:ConfigMigratorBase`1" />.
/// </summary>
/// <typeparam name="T">The configuration obj... |
// Url:https://leetcode.com/problems/super-ugly-number
/*
313. Super Ugly Number
Medium
Write a program to find the nth super ugly number.
Super ugly numbers are positive numbers whose all prime factors are in the given prime list primes of size k.
Example:
Input: n = 12, primes = [2,7,13,19]
Output: 32
Explanati... |
//------------------------------------------------------------
// Game Framework
// Copyright © 2013-2020 Jiang Yin. All rights reserved.
// Homepage: https://gameframework.cn/
// Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------
using GameFramework.Config;
using U... |
using System;
using System.Windows;
namespace K4AdotNet.Samples.Wpf.BackgroundRemover
{
internal class App : AppBase
{
[STAThread]
public static void Main()
{
#if DEBUG
Sdk.TraceLevel = System.Diagnostics.TraceLevel.Info;
#else
Sdk.TraceLevel = System.Diagnostic... |
namespace Api.Models.Cart
{
using Api.Models.Product;
using System.Collections.Generic;
public class CartPromotionResultModel
{
public ICollection<ProductInCartModel> Cart { get; set; }
public ICollection<ProductDetailsModel> DiscountedProducts { get; set; }
public int Discou... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Threading;
namespace DisableSogou
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
bool createdN... |
using System.Collections.Generic;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace TestWebApplication.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class AuthController : ControllerBase
{
// GET api/auth
[HttpGet]
[AllowAnon... |
using System.Collections.Generic;
using ProtoBuf;
namespace Fusee.Serialization
{
/// <summary>
/// Contains animation data. Generally, a list of animation tracks
/// </summary>
[ProtoContract]
public class AnimationComponent : SceneComponentContainer
{
/// <summary>
/// The an... |
using System;
using System.Collections.Generic;
using System.Data;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Leftware.Tools.UI.Test
{
public static class UtilAssert
{
public static T IsInstanceOfType<T>(object obj)
{
Assert.IsInstanceOfType(obj, typeof(T));
... |
using UnityEngine;
namespace Unity1Week202012
{
public class SamplePointerInput : IPointerInput
{
public Vector3 PointerWorldPosition => Camera.main.ScreenToWorldPoint(Input.mousePosition);
/// <summary>スペースを押していたらフリックしたことにする</summary>
public bool Flick(out Vector2 flickVelocity)
... |
using System;
namespace Win98App.Base.Helpers
{
// WinForms ComboBoxes don't play well with enums.
// Can use this class to setup a middle-man.
[Serializable]
public class ComboBoxEnumItem
{
public int Value { get; set; }
public string Text { get; set; }
}
}
|
using System;
using System.IO;
using System.Security.Cryptography;
namespace com.wjlc.util
{
/// <summary>
/// DES3加密解密 / 兼容JAVA的DES3加密解密算法
/// </summary>
public class Des3
{
#region CBC模式**
/// <summary>
/// DES3 CBC模式加密
/// </summary>
/// <param name="key... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using Microsoft.Extensions.Logging;
namespace Sidekick.Mediator.Internal
{
internal class LoggingMediator : MediatR.Mediator
{
private readon... |
// Copyright (c) 2020 Praveen Rai
// This code is licensed under MIT license (see LICENSE.txt for details)
using System;
using System.Collections.Generic;
using System.Text;
namespace Settings.Net.Core
{
public class GenericSetting<Tvalue> : SettingBase
{
public GenericSetting(Tvalue defaultValue) : ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.