text stringlengths 13 6.01M |
|---|
using System;
using System.Linq.Expressions;
using Xperiments.DesignPatterns.Command.Models;
namespace Xperiments.DesignPatterns.Command
{
class Program
{
static void Main(string[] args)
{
Pedido pedido = new Pedido("Bruno Lopes", 100);
Pedido pedidoMae = new Pedido(... |
namespace Ach.Fulfillment.Scheduler.Jobs
{
using System;
using Ach.Fulfillment.Business;
using Ach.Fulfillment.Common;
using Microsoft.Practices.Unity;
using Quartz;
using global::Common.Logging;
public class CheckStatusFilesJob : IJob
{
private static readonly ILog Logger ... |
using GDS.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GDS.Dal
{
public interface IProjectPhaseDao<T> : IDaoBase<T> where T : class
{
List<View_ProjectPhase> GetProjectPhaseListByProjectId(int ProjectId, int Temp... |
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 Microsoft... |
using System;
using EquationSolver.Dto;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace EquationSolver.Unit.Tests
{
[TestClass]
public class StaticExpressionTests
{
[TestMethod]
public void SimpleExpressionTest()
{
var value = EquationSolverFactory.SolveEx... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using System.Web.Http;
// For more information on enabling Web API for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
namespace AspNetCoreDemo.Controllers
{
public... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WorldPayDotNet.Hosted
{
public enum ResultDeliveryMethod
{
POST,
SERVER,
SERVER_PULL
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Task2_ConvertToBinary
{
/// <summary>
/// Class for convert to binary string
/// </summary>
internal class Converter
{
/// <summary>
/// Convert by library... |
using CreditasChallenge.Helpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CreditasChallenge.Domain.ValueObject
{
public class Endereco
{
public const int LogradouroMaxLength = 150;
public virtual string Lograd... |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class HUD : Singleton<HUD> {
[SerializeField]
private GameObject panel;
[SerializeField]
private GameObject targetingPrefab;
[SerializeField]
private float screenPadding = 0.485f;
[SerializeField]
private Texture allyArrow... |
using HBPonto.Kernel.Interfaces.Services;
using System;
using System.Collections.Generic;
using System.Text;
namespace HBPonto.Domain.Services
{
public class CalcWorklogService : ICalcWorklogService
{
public double CalcPorcentForIssue(int totalEstimated, int estimated)
{
return (do... |
using System;
namespace _3nPlus1
{
class Util
{
internal static int ExtractInt()
{
string line;
Console.WriteLine("Introduceti un numar intreg");
line = Console.ReadLine();
int n = 0;
bool result = int.TryParse(line, out n);
... |
using Microsoft.Extensions.DependencyInjection;
namespace Net.UdpServer
{
/// <summary>
/// Extensions
/// </summary>
public static class Extensions
{
/// <summary>
/// Adds default request context factory
/// </summary>
/// <param name="collection">Services</param>... |
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;
using TableroComando.Dominio;
using TableroComando.GUIWrapper;
using Dominio;
using Dominio.Validations.Results;
using Tabl... |
using AkkaOverview.Oanda.Library.Contracts;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
namespace AkkaOverview.Oanda.Library
{
public class OandaStreamingService : IStreamingDataService
{
private readonly ... |
using AutoMapper;
using EntityLayer.Dto;
using EntityLayer.Loans;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EntityLayer.AutoMapperProfile
{
public class LoanMapper : Profile
{
public LoanMapper()
{
... |
namespace Pathoschild.SlackArchiveSearch.Models
{
/// <summary>Represents message types.</summary>
public enum MessageType
{
/// <summary>The message type isn't recognised.</summary>
Unknown = 0,
/// <summary>A message. This is the only known type.</summary>
Message = 1
... |
namespace InstrumentationSample.Infrastructure
{
public interface ILogFactory
{
ILogger CreateLogger();
}
} |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BlackOut : MonoBehaviour
{
void OnCollisionEnter2D(Collision2D col)
{
if (col.gameObject.CompareTag("Player"))
col.gameObject.SendMessage("Dead", SendMessageOptions.DontRequireReceiver);
}
} |
using System;
using System.Collections.Specialized;
using System.Web;
using System.Windows.Forms;
namespace OpenApiLib
{
public partial class AuthForm : Form
{
private String redirectUri;
private NameValueCollection query;
public AuthForm(String loginLinkUri, String redirectUri)
... |
using System;
using System.Collections.Generic;
/*Write a program that finds the most frequent number in an array.
Example:
input result
4, 1, 1, 4, 2, 3, 4, 4, 1, 2, 4, 9, 3 4 (5 times)*/
class Program
{
static void SelectionSort(int[] arr, int length)
{
... |
using Joqds.Tools.KpiExtractor.Contract;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Joqds.Tools.KpiExtractor.Core.Repository
{
public interface IKpiSeeder
{
public Task<IEnumerable<CreateKpiDto<KpiValue>>> Seed();
}
} |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MatchingGame
{
public partial class Form1 : Form
{
//Primul buton apasat e int... |
using System.ServiceModel;
using Project2ObjectWCF.DTO;
namespace Project2ObjectWCF
{
[ServiceContract]
interface IMetadataInterface {
[OperationContract]
void ChangeMetadataForFile(string path, MetadataDTO metadata);
}
}
|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Xml;
using UnityEngine;
public class SkillFlow : FlowBase
{
public override bool OnLoad(XmlNode node)
{
if (!base.OnLoad(node))
return false;
return true;
}
public override bool OnEntry(SkillArgs args)
{
if (!base.O... |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Euler_Logic.Problems.AdventOfCode.Y2022 {
public class Problem23 : AdventOfCodeBase {
public override string ProblemName => "Advent of Code 2022: 23";
public override string GetAnswer() {
return Answer1(Input... |
using Platform.Client;
using Platform.Client.Common;
using Platform.Client.Common.Context;
using Platform.Client.Common.WebClient;
using SywApplicationWireframe.Domain.Configuration;
namespace SywApplicationWireframe.Domain
{
public abstract class ApiBase
{
protected IPlatformProxy Proxy { get; private ... |
using Bookinist.Services.Interfaces;
using System.Windows;
namespace Bookinist.Services
{
internal class UserDialogService : IUserDialog
{
public void Information(string title, string message) =>
MessageBox.Show(message, title, MessageBoxButton.OK, MessageBoxImage.Information);
pu... |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Physics2DDotNet
{
internal static class WinRTCompat
{
public static ReadOnlyCollection<T> AsReadOnly<T>( this IList<T> collection )
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
namespace IMtest
{
public class ContactsBLL
{
private int _userId;
public ContactsBLL(int UserId)
{
_userId = UserId;
}
p... |
namespace _7DRL_2021.Pathfinding
{
using Microsoft.Xna.Framework;
using System.Collections.Generic;
/// <summary>
/// basic unweighted grid graph for use with the BreadthFirstPathfinder
/// </summary>
public class UnweightedGridGraph : IUnweightedGraph<Point>
{
private static reado... |
using System;
using System.Runtime.Serialization;
namespace com.Sconit.PrintModel.INV
{
[Serializable]
[DataContract]
public partial class PrintKanBanCardInfo
{
[DataMember]
public string CardNo { get; set; }
[DataMember]
public string KBICode { get; set; }
[Dat... |
using Alabo.Domains.Entities;
using Alabo.Domains.Services;
using Alabo.Framework.Reports.Domain.Entities;
using Microsoft.AspNetCore.Mvc.Rendering;
using MongoDB.Bson;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
namespace Alabo.Framework.Reports.Domain.Services {
public interface... |
using UnityEngine;
using System.Collections;
public class StatusManager : UnitySingleton<StatusManager>{
public bool Room3DiaryClicked = false;
public bool Room3HealthRecordClicked = false;
public bool Room4PlaneTicketClicked = false;
public bool Room2BookMarkClicked = false;
public bool Room2S... |
namespace NASTYADANYA
{
public interface ITwoArgumentsCalculator
{
double Calculate(double firstArugment, double secondArgument);
}
}
|
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
// using Unity.Entities;
// public class Crust : MonoBehaviour
// {
// public Vector3 position;
// }
namespace TGS
{
public class SprawlController : MonoBehaviour
{
private cons... |
using BaseLib.Media;
using BaseLib.Media.Display;
using BaseLib.Media.OpenTK;
using BaseLib.Media.Video;
using BaseLib.Xwt;
using BaseLib.Xwt.Controls.DockPanel;
using OpenTK;
using OpenTK.Graphics.OpenGL;
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Xwt;
using Xwt.Drawing;
name... |
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
namespace UdpSimulator.Components
{
/// <summary>
/// SimulationObject(Date/Data)統合コレクション.
/// 公開コレクションは日時データ+模擬データ(CSV読み込みデータ表示数依存).
/// コレクション保存時、CSV読み込みデータ表示数が
/// 読み込みデータ総数未満だった場合は読み込んだデータ総数も含めて保存処理を行う.
... |
using Cs_Gerencial.Dominio.Entities;
using Cs_Notas.Dominio.Entities;
using Cs_Notas.Windows.Procuracao;
using Cs_Notas.Windows.Testamento;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using Syst... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
namespace Filters
{
class Sobel : Filters
{
protected float[,] kernel = null;
protected override Color сonvertPixel(Bitmap sourceMap, int x, int y)
... |
using System;
using System.Collections.Generic;
using System.Data.Entity.Infrastructure;
using System.Linq;
using FIMMonitoring.Common;
using FIMMonitoring.Common.Helpers;
using FIMMonitoring.Domain;
using FIMMonitoring.Domain.Enum;
using FIMMonitoring.Service.Properties;
using Quartz;
namespace FIMMonitoring.Service... |
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TechTalk.SpecFlow;
namespace SpecflowDemo.Calculator.Specs.Tests
{
[Binding, Scope(Tag = "Calculator")]
public class CalculatorTestSteps
{
private int _eersteGetal;
private int _tweedeGetal;
private int _result... |
using System;
using System.Collections.Generic;
using System.Linq;
// ReSharper disable ReturnTypeCanBeEnumerable.Global
// ReSharper disable once CheckNamespace
namespace Microsoft.CodeAnalysis.CSharp.Syntax
{
public static class SyntaxNodeExtensions
{
public static IEnumerable<T> Select<T>(this Synt... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using wssccatIotDashboard.Models;
namespace wssccatIotDashboard.Controllers
{
public class GetKafkaDataController : Controller
{
// GET: GetKafkaData
public ActionResult Kafka... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LapTops2
{
class Program
{
static void Main(string[] args)
{
Dictionary<string, int> options = new Dictionary<string, int>();
options.Add("Hack... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine.SceneManagement;
using UnityEngine;
public class resetGame : MonoBehaviour {
public float lifetime;
public GameObject[] info;
private float timer;
private void Start()
{
timer = Time.time + lifetime;
}
... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OcenaKlientow.Model.Models
{
public class PrzypisanyStatus
{
[Key, Required]
... |
using System;
namespace graduityRate
{
class Program
{
static void Main(string[] args)
{
int subtotal = int.Parse(Console.ReadLine());
int gratuityRate = int.Parse(Console.ReadLine());
double rate = (subtotal * (double)gratuityRate) / 100;
double... |
using System.Collections;
using System.Collections.Generic;
using System;
using System.Globalization;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class TimeManager : MonoBehaviour
{
//This script activates a 24 hour timer on first call and will then carry out actions when th... |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class Spell : MonoBehaviour
{
public float m_speedModifier;//modifier for deltaTime
public Vector3 m_velocity;//The velocity
protected string m_key;//A key to show what key
protected int m_damage;
protected Spe... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
namespace CSharp_Tests
{
[TestClass]
public class Tests17_26
{
[TestMethod]
public void T17_26BookExample()
{
IList<IList<int>> inputDocs = new List<IList<int>>() {
null, // 0
... |
using System.Collections.Generic;
// ReSharper disable InconsistentNaming
namespace Properties.Infrastructure.Rightmove.Objects
{
public class RmrtdfResponseSendProperty
{
public string request_id { get; set; }
public string message { get; set; }
public bool success { get; set; }
... |
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.Threading.Tasks;
using System.Windows.Forms;
namespace lab_029
{
public partial class Form1 : Form
{
public Form1()
... |
using System;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Sind.Model;
namespace Sind.BLL.Test.Integration
{
[TestClass]
public class ManterGrupoVisaoTest
{
private GrupoVisao grupoVisao;
[TestInitialize]
public void Setup()
{
va... |
namespace Properties.Infrastructure.Zoopla.Objects
// ReSharper disable InconsistentNaming
{
public class ZrtdfPropertyMinContractLength
{
public int minimum_length { get; }
public string units { get; }
public ZrtdfPropertyMinContractLength()
{
minimum_length = 12... |
//File Prologue
//Brian Herbst
//CS 1400 X01
//Lab 25
//I declare that all the code was either written by me or provided by the instructor
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using Sy... |
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 SabBataDonga
{
public partial class Form1 : Form
{
string dummyRequest = "Fahad bhai jawab bata dain, apko a... |
using Alabo.Framework.Core.Enums.Enum;
using Alabo.Web.Mvc.ViewModel;
using System.ComponentModel.DataAnnotations;
namespace Alabo.App.Asset.Recharges.Dtos
{
/// <summary>
/// Class RchargeView.
/// </summary>
public class RchargeView : BaseViewModel
{
/// <summary>
/// Get... |
using System;
using System.Text;
using System.Threading;
using ProgramGame;
namespace Fight
{
class Program
{
static void Main(string[] args)
{
int healthHero = 15;
int weaponHeroMaxAttack = 3;
//int coin = 5;
int bonusHealth = 4;
in... |
using MinecraftToolsBoxSDK;
using System.Windows.Controls;
namespace MinecraftToolsBox.Commands
{
/// <summary>
/// Tellraw.xaml 的交互逻辑
/// </summary>
public partial class Tellraw : Grid, ICommandGenerator
{
public Tellraw(CommandsGeneratorTemplate tmp)
{
InitializeCompo... |
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
using Microsoft.VisualBasic.CompilerServices;
// Token: 0x02000007 RID: 7
public class GClass1 : ProgressBar
{
// Token: 0x0600002A RID: 42 RVA: 0x00003E18 File Offset: 0x00002018
public int method_0()
{
return this.i... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LightAlien : MonoBehaviour {
public Light myLight;
// Use this for initialization
void Start () {
myLight = GetComponent<Light>();
GameController.CambioLuz += CambiarLuz;
}
void CambiarLuz(... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class SensivitySliderInit : MonoBehaviour
{
public Slider sensitivitySlider;
// Start is called before the first frame update
void Awake()
{
if(PlayerPrefs.HasKey("Sensitivity"))
... |
using System;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using SFA.DAS.Tools.Support.Core.Models;
using AutoMapper;
using SFA.DAS.CommitmentsV2.Api.Client;
using System.Collections.Generic;
using System.Threading;
using SFA.DAS.CommitmentsV2.Api.Types.Requests;
using SFA.DAS.CommitmentsV2.Api.Ty... |
using System;
using System.Linq;
using System.Data.Entity;
using System.Collections.Generic;
using System.Net.Http;
using System.Security.Claims;
using System.Security.Cryptography;
using System.Threading.Tasks;
using System.Web;
using System.Web.Http;
using System.Web.Http.ModelBinding;
using Microsoft.Asp... |
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DeploymentScheduler.Models;
namespace DeploymentScheduler.Controllers
{
public class DeployAutoController : Controller
{
private DeployAutoEntit... |
using Lighter.Domain.Project;
using Microsoft.EntityFrameworkCore;
namespace LighterApi.Data
{
public class LighterDbContext: DbContext
{
/*
//无法识别 add-migration 命令
Import-Module C:\Users\jiewi\.nuget\packages\microsoft.entityframeworkcore.tools\3.1.0\tools\EntityFrameworkCore.psd1
... |
using System.Collections.Generic;
namespace AbiokaScrum.Api.Data
{
public interface IOperation<T> where T : class, new()
{
IEnumerable<T> Get();
T GetByKey(object key);
void Add(T entity);
bool Update(T entity);
void Remove(T entity);
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using com.Sconit.Service;
using Telerik.Web.Mvc;
using com.Sconit.Web.Models;
using com.Sconit.Entity.MD;
using NHibernate.Type;
using com.Sconit.Entity.Exception;
using com.Sconit.Utility;
using com.Sconit.Web.M... |
using System;
namespace com.Sconit.Entity.SI.SAP
{
[Serializable]
public partial class SAPTransferTimeControl : EntityBase
{
#region O/R Mapping Properties
public string SysCode { get; set; }
public DateTime? LastTransDate { get; set; }
public DateTime? CurrTransDate { get; set; }
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Audio;
using AlmenaraGames;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace AlmenaraGames{
[HelpURL("https://almenaragames.github.io/#CSharpClass:AlmenaraGames.MultiAudioSource")]
[AddComponentMenu("Almenara Games/... |
using NLog;
using Sandbox.Definitions;
using Sandbox.Game.Entities.Cube;
using Torch.Managers.PatchManager;
namespace DataValidateFix
{
[PatchShim]
public static class MyMotorStatorPatch
{
private static readonly Logger Log = LogManager.GetCurrentClassLogger();
// ReSharper disable once I... |
using System;
using System.IO;
using Xamarin.Forms;
using LoginNavigation.Data;
using LoginNavigation.Models;
namespace LoginNavigation
{
public class App : Application
{
public static bool IsUserLoggedIn { get; set; }
public static User UserLoggedIn { get; set; }
static NoteDat... |
using UnityEngine;
namespace UnityAtoms.BaseAtoms
{
/// <summary>
/// Variable of type `Vector3`. Inherits from `EquatableAtomVariable<Vector3, Vector3Pair, Vector3Event, Vector3PairEvent, Vector3Vector3Function>`.
/// </summary>
[EditorIcon("atom-icon-lush")]
[CreateAssetMenu(menuName = "Uni... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class PlayerLife : MonoBehaviour
{
public float life;
float currentLife;
public Slider lifeBar;
public AudioClip deathSFX;
private void Start()
{
currentLife = life;
}
... |
using System;
using System.Collections.Generic;
namespace GFW
{
public class Controller : IController
{
protected IDictionary<string, Type> m_commandTypeMap;
protected IDictionary<string, ICommand> m_commandMap;
protected static volatile IController m_instance;
protected readon... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
namespace CarShed
{
public class Connection
{
public Connection()
{
//constructor
}
SqlConnection con;
... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Reflection;
using System.Data;
using System.Data.Common;
using System.Diagnostics;
using System.ComponentModel.DataAnnotations.Schema;
namespace DbConnector.Core.Extensions
{
internal static class DbDataReaderExtens... |
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Wee.Common.Contracts;
using Microsoft.Extensions.FileProviders;
using Wee.Common.Reflection;
using Wee.Common;
using Microsoft.AspNetCore.Mvc.Razor;
namespace Wee.UI.C... |
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
namespace UniversitySystem.Migrations
{
public partial class MigrateDB5 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropPrimaryKey(
... |
namespace BDTest.xUnit.Tests
{
public class XUnitContext
{
}
} |
namespace Phenix.Security.Business
{
/// <summary>
/// 执行"登录解锁"授权规则
/// </summary>
public class UserUnlockExecuteAuthorizationRule : Phenix.Business.Rules.ExecuteAuthorizationRule
{
/// <summary>
/// 初始化
/// </summary>
public UserUnlockExecuteAuthorizationRule()
: base(User.UnlockMethod... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _01.InversionOfControlOO
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("DependencyService:");
DependencyService();
... |
public class Solution {
public IList<IList<int>> FourSum(int[] nums, int target) {
var res = new List<IList<int>>();
if (nums.Length < 4) return res;
Array.Sort(nums);
for (int i=0; i<nums.Length-3; i++) {
if (i>0 && nums[i] == nums[i-1]) continue;
for (int j=... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace GodaddyWrapper.Requests
{
public class CartItemTracking
{
public string clientIp { get; set; }
public string itemTrackingCode { get; set; }
public string pathway { get; set; }
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DSSLib
{
public interface IMatrixAHP
{
int Size { get; }
}
public class MatrixAHP : IMatrixAHP
{
public override string ToString() => $"Матрица ({Array.GetL... |
namespace Juicy.Core.UnitTest.Resources
{
class SomeClassInResourceNamespace
{
}
}
|
#load "./version.cake"
public class BuildPaths
{
public BuildFiles Files { get; private set; }
public BuildDirectories Directories { get; private set; }
public static BuildPaths GetPaths(ICakeContext context, string configuration, BuildVersion version)
{
if (context == null)
throw ... |
using IBLLService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BLLService
{
public partial class FW_AUDIT_RECORD_MANAGER : BaseBLLService<MODEL.FW_AUDIT_RECORD> ,IFW_AUDIT_RECORD_MANAGER
{
public override void SetDALRespositry()
{
ida... |
using UnityEngine;
using System.Collections;
using DG.Tweening;
public class ChangeHeroEffect : EffectBase {
private RectTransform _rectTransform;
void OnEnable()
{
_rectTransform = transform.GetComponent<RectTransform>();
InPosition = Vector2.right*-183 + Vector2.up*_rectTransform.ancho... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using AutoMapper;
using Castle.Services.Transaction;
using com.Sconit.Entity.INV;
using com.Sconit.Entity.MD;
using com.Sconit.Entity.ORD;
using com.Sconit.Entity.SCM;
using com.Sconit.Entity.VIEW;
using com.Sconit.PrintModel.... |
using Apache.NMS;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Apache.NMS.Util;
using Apache.NMS.ActiveMQ.Commands;
namespace SendMessageActiveMQ
{
class Program
{
public static void Main(string[] args)
{
... |
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using DojoSurveyWithModel.Models;
namespace DojoSurveyWithModel.Controllers
{
public class DojoSurveyWithModelController : Controller
{
[HttpPost]
[Route("Survey")]
public IActionResult Survey(Result resultFromForm)
... |
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class ScoreGameOver : MonoBehaviour
{
int score = 0;
Text instruction;
void Update()
{
instruction = GetComponent<Text>();
score = PlayerPrefs.GetInt("Score", 0);
instruction.text = " " ... |
using System;
using Figures;
namespace Task_02
{
class Program
{
public static Point[] FigArray()
{
Random random = new Random();
Point[] figures = new Point[random.Next(0, 21)];
for (int index = 0, circlesCount = 0; index < figures.Length; index++)
... |
using System;
using NPoco;
namespace SciVacancies.ReadModel.Core
{
[TableName("org_vacancycriterias")]
[PrimaryKey("guid", AutoIncrement = false)]
public class VacancyCriteria : BaseEntity
{
public int criteria_id { get; set; }
public Guid vacancy_guid { get; set; }
public lo... |
using EAN.GPD.Domain.Entities;
namespace EAN.GPD.Domain.Repositories
{
public interface ICargoRepository : IBaseRepository<CargoEntity>
{
}
internal class CargoRepository : BaseRepository<CargoEntity>, ICargoRepository
{
}
}
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GravityWaper : MonoBehaviour
{
[SerializeField] private float m_gGravityOverride;
private void Awake()
{
Physics.gravity = Vector3.up * -m_gGravityOverride;
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace TellMeMoreBlazor.Exceptions
{
public class urlScanIoException : Exception
{
public urlScanIoException()
{
}
public urlScanIoException(string message) : base(message)
{
}
public urlScanIoExcepti... |
using System;
using System.Collections.Generic;
using System.IO;
namespace RevStack.IO
{
public class IOEnumeratorContext
{
public IEnumerable<FileData> Get(string path, string searchPattern, SearchOption searchOption)
{
return FastDirectoryEnumerator.EnumerateFiles(path,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.