content
stringlengths
23
1.05M
using UnityEngine; using System.Collections; public class RenderColor : MonoBehaviour { public bool useSharedMaterial = true; Renderer _renderer; public Color color { get { if(useSharedMaterial) return _renderer.sharedMaterial.color; else return _renderer.material.color; } set { if(_...
using System; using System.Runtime.InteropServices; namespace Tortilla { public class Clock : IClock { public Clock() { } public bool IsRunning { get; protected set; } = false; public void Start() { IsRunning = true; } private void ProcessTick() { ...
using System; using System.Text.Json.Nodes; namespace pick_a_browser.Config { public static class JsonNodeExtensions { public static string GetRequiredString(this JsonNode node, string name) { var value = node[name]; if (value == null) throw new Exceptio...
using System; namespace ICSharpCode.SharpZipLib.Zip.Compression.Streams { public class OutputWindow { private const int WindowSize = 32768; private const int WindowMask = 32767; private byte[] window = new byte[32768]; private int windowEnd; private int windowFilled; public void Write(int value) {...
using UnityEngine; using System.Collections; public static class Texture2DExtension { /// <summary> /// Note: This cannot be called on a Unity asset texture (only ones in your project) /// </summary> /// <param name="texture"></param> /// <param name="colorizeValue"></param> /// <returns></returns> public stat...
using System; namespace ZeroLevel.Network { internal sealed class RequestInfo { private Action<byte[]> _handler; private Action<string> _failHandler; private long _timestamp; public long Timestamp { get { return _timestamp; } } private bool _sended; public bool ...
using System; using System.Collections.Generic; using System.Text; namespace DeleteMe { public class DisplayPlayerNames { delegate int ScoreDelegate(PlayerStats stats); public void OnGameOver(PlayerStats[] allPlayerStats) { var instance1 = new ScoreDelegate(ScoreByFlagsCapp...
using System.Collections.Generic; using UnityEngine; /// <summary> /// Action for rotating components (relative to previous rotation value) /// </summary> /// Rotation amount is given in degrees, and is usually /// a multiple of 90. public class RotateComponentAction : IAction { List<BaseComponent> referencedCom...
using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Skoruba.AuditLogging.EntityFramework.DbContexts; using Skoruba.AuditLogging.EntityFramework.Entities; namespace Leelite.Modules.IdentityServer.Admin.Contexts { public class AdminAuditLogContext : DbContext, IAuditLoggingDbContext<AuditLog> ...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Advertisements; public class AdController : MonoBehaviour { public static AdController instance; private string store_id = "3289656"; private string video_ad = "video"; // private string rewareded_video_a...
// ************************************************************* // project: graphql-aspnet // -- // repo: https://github.com/graphql-aspnet // docs: https://graphql-aspnet.github.io // -- // License: MIT // ************************************************************* namespace GraphQL.AspNet.Apollo.Messages { ...
// ========================================================================== // This software is subject to the provisions of the Zope Public License, // Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution. // THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED // WARRANTIES ARE D...
using System.ComponentModel.DataAnnotations; namespace Redcap.Models { /// <summary> /// Logging type /// </summary> public enum LogType { /// <summary> /// Data Export /// </summary> [Display(Name = "export")] Export, /// <summary> /// Mana...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cofoundry.Domain { /// <summary> /// Message published when properties that affect the /// url of a page has changed (e.g. PageDirectoryId, UrlSlug, /// LocaleId etc) /// ...
using System.Windows; namespace RockPaperScissorsGame { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { VM vm = new VM(); public int value; public string src; public MainWindow() ...
using Newtonsoft.Json; using System; using System.Collections.Generic; namespace xAPI.Client.Resources { /// <summary> /// A set of one or more representations which defines an Actor uniquely. Conceptually, /// this is like having a "home email" and a "work email". Both are the same person, /// but ha...
// Copyright (c) 2007-2014 SIL International // Licensed under the MIT license: opensource.org/licenses/MIT using System; using System.Collections.Generic; using System.IO; using System.Text; using SolidGui.Engine; namespace SolidGui.Export { public class ExportFactory { private List<Expo...
using System; using System.Collections.Generic; using System.Linq; using Messaging; using static System.String; namespace Bender.Data.Supplying.Convert { internal static class Common<TIssueType> { public static Message[] ToMessage(IEnumerable<Package<BenderSendsLetter, TIssueType>> packages,...
using RX_Explorer.Class; using Windows.Storage; namespace RX_Explorer.Interface { public interface ICoreStorageItem<T> where T : IStorageItem { public T StorageItem { get; } } }
using Jot.Storage; using Jot.Tests.TestData; using System; using System.Collections.Generic; using System.Net; using System.Text; using Xunit; namespace Jot.Tests { public class JsonFileStoreTests { JsonFileStore _store = new JsonFileStore(); [Fact] public void StoresPrimitiveData() ...
using Senai.Optus.WebApi.Domains; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Senai.Optus.WebApi.Repositories { public class EstiloRepository { List<Estilos> ListaDeEstilos = new List<Estilos>(); public List<Estilos> Listar() ...
using System; using System.Linq; using System.Collections.Generic; using UnityEngine; namespace PubNubAPI { public class TimeBuilder { private readonly TimeRequestBuilder pubBuilder; public TimeBuilder(PubNubUnity pn){ pubBuilder = new TimeRequestBuilder(pn); }...
using Microsoft.Extensions.DependencyInjection; namespace MigrationTools { public static partial class ServiceCollectionExtensions { public static void AddMigrationToolServicesForClientAzureDevopsRest(this IServiceCollection context) { // } } }
//------------------------------------------------------------------------------ // <copyright file="TreeNodeStyleCollection.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //------------------------------------------------------------------------------ namesp...
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; using ICSharpCode.SharpDevelop.Dom; namespace ICSharpCode.XamlBinding { /// <summary> /// IReturnType that ge...
using Moonlay.ExtCore.Mvc.Abstractions; namespace ChartOfAccounts.Infrastructure { public class WorkContext : IWorkContext { public WorkContext() { } public string CurrentUser { get; internal set; } } }
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Text; using System.Web; namespace MIMWebClient.Core.Events { using MIMWebClient.Core.Player; using MIMWebClient.Core.PlayerSetup; using PlayerClass = MIMWebClient.Core.Player.Classes.Play...
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 System.Security.Permissions; using Charlotte.Tools; namespace Charlotte { public partial class MainWin : Form { #region ALT_...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; namespace Behaviour{ public class BehaviourTreeController : MonoBehaviour { /** * \class Behaviour.BehaviourTreeController * Component attached to GameObjects to use BehaviourTrees */ public Behaviou...
using UnityEngine; using System.Collections; using System; namespace Lockstep { public static class LSUtility { const uint Y = 842502087, Z = 3579807591, W = 273326509; public static uint Seed = 1; private static uint y = Y, z = Z, w; public static void Initialize (uint seed) { Seed = seed; y = Y;...
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Diagnostics.Eventing.Reader; using System.Linq; using Tx.Windows; namespace TxSamples.EvtxRaw { class Program { ...
using Xunit; namespace FakeXrmEasy.Tests.FakeContextTests { public class FakeTracingServiceTests { [Fact] public void When_a_trace_is_dumped_it_should_return_right_traces() { var tracingService = new XrmFakedTracingService(); var trace1 = "This is one trace"; ...
//using System; //using System.Collections.Generic; //using System.Linq; //using System.Threading.Tasks; //using Microsoft.Extensions.Logging; //namespace FluentMigrator.NHibernate.Tool.Commands //{ // public interface ICommand // { // int Execute(ILoggerFactory loggerFactory); // } // public clas...
using FlatRedBall.Glue.Plugins.ExportedInterfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FlatRedBall.Glue.Events; using FlatRedBall.Glue.SaveClasses; using FlatRedBall.Glue.VSHelpers.Projects; using GlueBuilder.Managers; using FlatRedB...
using System; using System.Runtime.InteropServices; using static RekordboxDatabaseReader.Internal.ParserHelper; namespace RekordboxDatabaseReader.Internal { public ref struct CueObjectDescriptor { public int HeadSize; public int PacketSize; public bool IsHotCue; public int Numb...
using System.Xml.Serialization; namespace Xms.Core { public enum AccessRightValue { [XmlEnum("1")] Read = 1, [XmlEnum("2")] Create = 2, [XmlEnum("3")] Update = 3, [XmlEnum("4")] Delete = 4, [XmlEnum("5")] Share = 5, [...
namespace TimelineExample.ViewModels { using System; using GalaSoft.MvvmLight; using GalaSoft.MvvmLight.Messaging; using TimelineExample.Messaging; using TimelineExample.Services.Activity; using TimelineExample.Services.Data; public class EditorPageViewModel : ViewModelBase { ...
using System; namespace TeamPasswordManagerClient { public class TpmConfig { public string BaseUrl { get; } public string PublicKey { get; } public string PrivateKey { get; } /// <summary> /// The required config for connecting to the TPM api, which can be found under ...
/******************************************************** * Class Name : MImpFormat * Purpose : Import Format Model * Class Used : X_AD_ImpFormat * Chronological Development * Deepak : 03-feb-2010 ******************************************************/ using System; using System.Collec...
namespace Umbraco.Cms.Web.Website.Models; public class NoNodesViewModel { public string? UmbracoPath { get; set; } }
using System; namespace BlogBackendService.Models { public class ArticleSnapShot { public int Id { get; set; } public int? AppId { get; set; } public int? ArticleId { get; set; } public string Title { get; set; } public string Author { get; set; } public string S...
using DataStructuresLib.Permutations; using DataStructuresLib.Sequences.Periodic1D; using EuclideanGeometryLib.BasicMath.Tuples; namespace MeshComposerLib.Geometry.PointsPath.Space2D { public class PartialPointsPath2D : PSeqPartial1D<ITuple2D>, IPointsPath2D { public IPointsPath2D BasePath { g...
using UnityEngine; using System.Collections; public class Bullet : MonoBehaviour { public GameObject hitPrefab; private float time = 0.0f; public Vector3 delta; // Use this for initialization void Start () { transform.LookAt( transform.position + delta); } // Update is called once per fram...
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.FileFormats { internal static class Helpers { // Based on Convert.FromHexString, as we don't yet target TFMs where it's av...
using Microsoft.VisualStudio.TestTools.UnitTesting; namespace TheBlueAlliance.Tests { [TestClass] public class CachingUnitTests { private const string TeamKey = "frc832"; private const int Year = 2019; // Test that the headers are working. This is full caching, with Last-Modified check. [TestMethod] p...
using System; namespace GestureSample.ViewModels { public class ThreeDatesViewModel : CustomEventArgsViewModel { private DateTime value1; public DateTime Value1 { get { return value1; } set { SetProperty(ref value1, value); } } private DateTime value2 = new DateTime(2014, 12, 17, 16, 18, 27); pub...
using System; using System.Collections.Generic; using System.Text; namespace FeedbackMessages { /// <summary> /// Event args on appended message. /// </summary> public class MessageAppendedEventArgs : EventArgs { public FeedbackMessage Message { get; set; } public MessageAppendedE...
using UnityEngine; public class SaveManager : MonoBehaviour { [Header("Save Information")] public bool saveExists; public int saveFileVersion; public string playerName; private void Start() { // If no save file exists, create save and return. if (!saveExists) return; ...
using KpNet.KdbPlusClient; namespace KpNet.Hosting { /// <summary> /// Abstract class for the Kdb process. /// </summary> public abstract class KdbPlusProcess { /// <summary> /// Initializes a new instance of the <see cref="KdbPlusProcess"/> class. /// </summary>...
using System; using System.Xml.Serialization; namespace BroadWorksConnector.Ocip.Models { /// <summary> /// Presentation Indicator /// </summary> [Serializable] [XmlRoot(Namespace = "")] public enum PresentationIndicator { [XmlEnum(Name = "Anonymous")] Anonymous, [Xm...
using System; using System.Collections.Generic; using System.Text; namespace PrimesGenerator { public interface ISieve { void ListPrimes(Action<long> callback); } }
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.IIS.Administration.Security { using System; using Core.Security; using IdentityModel.Tokens; class SecurityToken : Ide...
using CoarUtils.commands.logging; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Features; using Newtonsoft.Json; using System; using System.Linq; using System.Collections.Generic; namespace CoarUtils.commands.web { public class GetPublicIpAddress { /// <summary> /// account for possbility...
using System; using System.Collections.Generic; using System.Threading.Tasks; using HotChocolate.Resolvers; using HotChocolate.Types; namespace HotChocolate.Stitching { public class DictionaryResultMiddleware { private readonly FieldDelegate _next; public DictionaryResultMiddleware(FieldDeleg...
// Copyright ClassTypeReference Contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root. namespace Example { using System; using TypeReferences; using UnityEngine; public class ExampleBehaviour : MonoBehaviour { [ClassImplements(typeof(IG...
namespace Policy.Search.Regions { public class RegionNames { #region Constants and Fields public const string POLICY_SEARCH_RESULTS_REGION = "PolicySearchResultsRegion"; #endregion } }
namespace OneLine.Models.Users { public interface IForgotPassword { string Email { get; set; } } public class ForgotPassword : IForgotPassword { public string Email { get; set; } } public class ForgotPasswordViewModel : IForgotPassword { public string Email { get...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TreciZadtak { class Vozilo { protected bool JeLiLeti; protected bool JeLiPlovi; public void KudaVozi() { Console.WriteLine("...
namespace CustomerManager.Shared.Constants.Role { public static class RoleConstants { public const string AdministratorRole = "Administrator"; public const string CustomerRole = "Customer"; public const string DefaultPassword = "123Pa$$word!"; } }
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CameraController : MonoBehaviour { public Transform target; private void LateUpdate() { if (target.position.y >= transform.position.y) { Vector2 newPos = new Vector2(0, targe...
using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(LineRenderer))] public class GrapplingGun : MonoBehaviour { [SerializeField] Transform firePoint; [SerializeField] Hook hookPrefab; [SerializeField] GameObject hookOnWeapon; [SerializeField] float f...
using UnityEngine; public class SpiritController : MonoBehaviour { private SpiritsController _spiritsController; void Init(SpiritsController spiritsController) { _spiritsController = spiritsController; } private void OnDestroy() { if (_spiritsController != null) ...
using System.Reflection; using Microsoft.Extensions.Configuration; namespace Infrastructure.Modules { internal class ModuleDescription { public string Name { get; set; } public string Description { get; set; } public string AssemblyFile { get; set; } public string XmlDescriptio...
using JetBrains.Annotations; using UnityEngine; using XdParser.Internal; namespace AkyuiUnity.Xd { public interface IXdGroupParser { bool Is(XdObjectJson xdObject, XdObjectJson[] parents); Rect CalcSize(XdObjectJson xdObject, Rect rect); (IComponent[], IAsset[]) Render(XdObjec...
/* * Copyright 2017, Optimizely * * 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...
using System; using Purchasing.Core.Domain; using UCDArch.Core.PersistanceSupport; namespace Purchasing.Core { public interface IRepositoryFactory { IRepositoryWithTypedId<Account, string> AccountRepository { get; set; } IRepository<Approval> ApprovalRepository { get; set; } IRepositor...
using System; using System.Xml.Linq; using System.Xml.Schema; namespace _16.CatalogueXSDSchema { class CatalogueXSDSchema { static void Main(string[] args) { // Load xsd schema string xsdPath = "../../CatalogueSchema.xsd"; XmlSchemaSet xsdSchema = LoadXsdFil...
using ApplicationCore.Entities; using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Text; namespace ApplicationCore.Specifications { public sealed class OfficeWithOperatorsSpecification : BaseSpecification<OfficeOperator> { public OfficeWithOperatorsSpecificatio...
using Autofac; using XamlingCore.Portable.Data.Glue; using XamlingCore.Tests.Android.Glue; namespace XamlingCore.Tests.Android.Base { public class TestBase { protected IContainer Container; public TestBase() { var glue = new ProjectGlue(); glue.Init(); ...
using System; using System.Linq; namespace Deveroom.VisualStudio.SpecFlowConnector.Discovery { interface IRemotingSpecFlowDiscoverer : IDisposable { string Discover(string testAssembly, string configFilePath); } }
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; namespace Disconf.Net { /// <summary> /// 文件MD5操作类 /// </summary> public class MD5Checker { /// <summary> /// 通过MD5CryptoServiceProvider类中的Comp...
// Copyright (c) Jeremy W. Kuhne. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace WInterop.Compression { public enum LzError { /// <summary> /// Invalid input handle. [LZERROR_BADINHANDLE] /// </summa...
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; namespace PHP.Testing { public static class Utils { public static string MakeTColumn(string str) { return MakeTColumn(str, false); } public static string Make...
using System.Collections.Generic; using System.IO; using System.Linq; using Microsoft.Boogie; using Microsoft.Dafny; using Xunit; using Xunit.Abstractions; using BoogieProgram = Microsoft.Boogie.Program; using Parser = Microsoft.Dafny.Parser; namespace DafnyPipeline.Test { // Main.Resolve has static shared state (Ty...
using System; using LinCms.Entities; namespace LinCms.Blog.Notifications { public class CommentEntry:EntityDto<Guid> { public Guid? RespId { get; set; } public string Text { get; set; } } }
using System; namespace CopperCowEngine.ECS { public struct Entity : IEquatable<Entity> { public static Entity Null { get; } = new Entity(-1, -1); public int Id { get; } public int Version { get; } private Entity(int id, int version) { Id = id; ...
using System.Collections; using System.Collections.Generic; using System.Linq; using Lucene.Net.Index; using Lucene.Net.Util; namespace Lucene.Net.Queries.Function.ValueSources { /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE fil...
namespace ViewModels.ViewModels.Commands { public class InterfaceCasts { private readonly object _testComponentInstance; public InterfaceCasts(object testComponentInstance) { _testComponentInstance = testComponentInstance; } public T To<T>(T nullCapabilities) where T : class { ...
using System.Threading; using System.Threading.Tasks; using AutoMapper; using MediatR; using Microsoft.EntityFrameworkCore; using U.ProductService.Application.Common.Exceptions; using U.ProductService.Application.Pictures.Models; using U.ProductService.Persistance.Contexts; namespace U.ProductService.Application.Pictu...
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Authorization; using Gov.Jag.PillPressRegistry.Public.Models; namespace Gov.Jag.PillPressRegistry.Public.Authorization { /// <summary> /// MVC Options Extension /// </summary> public static class M...
using System; using Xunit; namespace HttpCode.Core.Test { public class TestRequest { /// <summary> /// 测试异步请求 /// </summary> [Fact] public async void TestGetRequestAsync() { string url = "https://github.com/stulzq/HttpCode.Core";//请求地址 string res = string.Empty;//请求结...
using SIS.MvcFramework.Attributes.Validation; namespace IRunes.App.ViewModels.Albums { public class AlbumCreateInputModel { [Required] [StringLength(4, 20, "The Name length should be between 4 and 20 characters.")] public string Name { get; set; } [Required] [StringLen...
using Ctrl.Core.Entities.Dtos; using Ctrl.Core.Entities.Tree; using Ctrl.Domain.Models.Dtos.Config; using System.Collections.Generic; using System.Threading.Tasks; using CtrlCloud.Framework.Application.Contracts.CtrlCloud.Config.Dtos; using Volo.Abp.Domain.Repositories; using Volo.Abp.Domain.Repositories.Dapper; name...
using System; using System.Linq; using static Proxoft.SemanticUI.Core.TableDecorations; namespace Proxoft.SemanticUI.Core { [Flags] public enum TableDecorations { DefaultProperties = 0, Basic = 1 << 0, VeryBasic = 1 << 1, // use either Basic or VeryBasic ...
using Moq; using System; using System.Collections.Generic; using System.Linq; using TheraLang.BLL.Interfaces; using TheraLang.BLL.Services; using TheraLang.DAL.Entities; using TheraLang.DAL.UnitOfWork; using TheraLang.Tests.DataBuilders.ResourcesBuilders; using TheraLang.Tests.Mocks; namespace TheraLang.Tests.Setups ...
using Gldf.Net.Domain.Definition.Types; using Gldf.Net.Domain.Global; using System.Xml.Serialization; namespace Gldf.Net.Domain.Definition { public class LightSource { [XmlAttribute(DataType = "ID", AttributeName = "id")] public string Id { get; set; } public Locale[] Name { 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.Azure.Management.ResourceManager.Fluent.Core { using System.Collections.Generic; using Microsoft.Azure.Management.ResourceManager.Flu...
using FluentAssertions; using Paynova.Api.Client.Model; using Paynova.Api.Client.Testing; namespace Paynova.Api.Client.UnitTests.Model { public class CurrencyCodeTests : UnitTestsOf<CurrencyCode> { [MyFact] public void When_United_states_dollar_It_is_correct_ISO_4217_values() { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace GOCalendarSyncCommon { public class GetRangeRequest : Packet { public DateTime Start; public DateTime End; } }
namespace PowerShellTools.Project { internal static class ProjectConstants { public const string SignOutput = "SignOutput"; public const string OutputDirectory = "OutputDirectory"; public const string CodeSigningCert = "CodeSigningCert"; public const string DebugArguments...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace IAM.Filters { public class FilterMatch : IDisposable { public Boolean Success { get; protected set; } public FilterRule Filter { get; protected set; } public FilterMatch(Boolean success, Fi...
using System; using System.Collections.Generic; using NextGenSpice.Core.Devices; namespace NextGenSpice.Parser { /// <summary>Defines methods for manipulating existing symbols during SPICE code parsing.</summary> public interface ISymbolTable { /// <summary>Gets the model parameters of given type associated with...
using System.Drawing; using System.Drawing.Imaging; using System.IO; namespace Ressy.Tests.Utils.Extensions; internal static class DrawingExtensions { public static byte[] GetData(this Bitmap bitmap, ImageFormat format) { using var stream = new MemoryStream(); bitmap.Save(stream, format); ...
using SimpleECS.Core.Common; namespace SimpleECS.Core.Components { public sealed class HealthComponent : IComponent { public int Health; public DamageLayer Layer { get; private set; } public HealthComponent Init(int health = 1, DamageLayer layer = default) { Health = health; Layer = layer; return thi...
using Clockify_API_Client_Core.UserClasses; using Newtonsoft.Json; namespace Clockify_API_Client_Core.UserClasses { public partial class Membership { [JsonProperty("userId")] public string UserId { get; set; } [JsonProperty("hourlyRate")] public HourlyRate HourlyRate { get; se...
namespace Tars.Csharp.Rpc.DynamicProxy { public interface IDynamicProxyGenerator { T CreateInterfaceProxy<T>(DynamicProxyContext context); } }
using System; using System.Collections.Generic; using System.Text; using AvaExt.Common; using AvaExt.SQL.Dynamic; namespace AvaExt.PagedSource { public class PagedSourceCampCard : ImplPagedSource { public PagedSourceCampCard(IEnvironment pEnv) :base(pEnv,new SqlBuilderCompCard(pE...
using System; using System.Threading.Tasks; using Collectively.Common.Domain; using Collectively.Common.Services; using Collectively.Common.Types; using Collectively.Services.Users.Domain; using Collectively.Services.Users.Repositories; namespace Collectively.Services.Users.Services { public class Authentication...
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; using System.Web.Mvc; namespace ControlePluvial.Models { public class Reports { [Key] public int codFlux { get; set; } public DateTime data { get; set; } ...
using System; using System.IO; using System.Linq; using System.Collections.Generic; namespace day23 { class Program { static void Main(string[] args) { var inputs = File.ReadAllLines("./input.txt"); var points = inputs.Select(i => new Point3D(i)); var highe...