text stringlengths 1 932k |
|---|
using System.Reflection;
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("AWSSDK.CodeStar")]
[assembly: AssemblyDesc... |
using System;
using System.ComponentModel;
namespace MvvmScarletToolkit
{
public interface ILocalizationViewModel : INotifyPropertyChanged, IDisposable
{
string Value { get; }
}
} |
using ClosedXML.Excel;
using NPOI.SS.UserModel;
using NPOI.XSSF.UserModel;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using XSheet.Renderers.ClosedXml;
using XSheet.Renderers.NPOI;
namespace Xsheet.Tests
{
public static class TestUtils
{
public static List<ICel... |
using System;
namespace _02.HalfSumElement
{
class Program
{
static void Main(string[] args)
{
int countNumber = int.Parse(Console.ReadLine());
int sum = 0;
int max = int.MinValue;
for (int i = 0; i < countNumber; i++)
{
... |
/************************************************************************************
Copyright : Copyright 2014 Oculus VR, LLC. All Rights reserved.
Licensed under the Oculus VR Rift SDK License Version 3.2 (the "License");
you may not use the Oculus VR Rift SDK except in compliance with the License,
which is pr... |
namespace GrpcNetProxyTest.Scenarios
{
/// <summary>
/// Status service scenario
/// </summary>
public class StatusServiceScenario : DefaultScenario
{
/// <summary>
/// Enable status service
/// </summary>
public override bool EnableStatusService => true;
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using Foundation;
using UIKit;
namespace SO61130182.iOS
{
public class Application
{
// This is the main entry point of the application.
static void Main(string[] args)
{
// if you want to use a different A... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BedDetector : MonoBehaviour
{
public void OnTriggerEnter2D()
{
if (!TimeSystem.Data.Sleeping) UI.Elements["Bed"].SetActive(true);
}
public void OnTriggerExit2D()
{
UI.Elements["Bed"... |
// Copyright (c) 2020 Flucto Team and others. Licensed under the MIT Licence.
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Runtime.InteropServices;
using osuTK;
using osuTK.Graphics;
usin... |
@model TemplatesModel
<div class="panel panel-default">
<div class="panel-body">
@await Component.InvokeAsync("AdminWidget", new { widgetZone = AdminWidgetZones.ManufacturerTemplateListButtons })
@await Html.PartialAsync("Table", new DataTablesModel
{
Name = "templates-manufact... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
namespace EntityFramework_CodeFirst_MultiValue2
{
public class Student
{
Student()
... |
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("Ca... |
using System.Threading.Tasks;
using FlatMate.Module.Lists.Api;
using FlatMate.Module.Lists.Api.Jso;
using FlatMate.Web.Areas.Lists.Data;
using FlatMate.Web.Mvc;
using FlatMate.Web.Mvc.Base;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using prayzzz.Common.Results;
namespace FlatMate.Web.Areas.L... |
using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle ("csharp-redis-queue")]
[assembly: AssemblyDescription ("")]
[assembly: AssemblyConfiguration ("")]... |
// Copyright (c) 2015 - 2018 Doozy Entertainment / Marlink Trading SRL. All Rights Reserved.
// This code can only be used under the standard Unity Asset Store End User License Agreement
// A Copy of the EULA APPENDIX 1 is available at http://unity3d.com/company/legal/as_terms
using UnityEngine;
using System;
#if UNI... |
// Mono.Util.CorCompare.MissingField
//
// Author(s):
// Piers Haken (piersh@friskit.com)
//
// (C) 2002 Piers Haken
using System;
using System.Reflection;
namespace Mono.Util.CorCompare
{
/// <summary>
/// Represents an interface implemented on a class
/// </summary>
/// <remarks>
/// created by - Piers
... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OrdenesDeTrabajo.BL
{
public class Categoria
{
public int Id { get; set; }
[Required(ErrorMessage = "Ingrese la categoria")... |
using System;
using NAudio.Wave;
namespace Jammit.Audio
{
/// <summary>
/// A song player plays a song, which is consists of one or more channels.
/// Channels could represent different instruments.
/// </summary>
public interface ISongPlayer
{
void Play();
void Pause();
void Stop();
long ... |
using Screna;
namespace Captura.Models
{
public class DiscardWriter : IVideoFileWriter
{
public void Dispose() { }
public void WriteFrame(IBitmapFrame Image)
{
Image.Dispose();
}
public bool SupportsAudio { get; }
public void WriteAudio(byte[] Buf... |
using System;
namespace yocto
{
internal class MultiInstanceLifetimeFactory : ILifetimeFactory
{
public IInstanceFactory GetInstanceFactory(IContainer container, Type interfaceType, Type implementationType, Func<object> factory, params object[] values)
{
return new MultiInstanceFac... |
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fi... |
using System;
using System.Collections.ObjectModel;
using System.Linq;
using System.Linq.Expressions;
using Jint.Native;
using System.Collections.Generic;
using System.Reflection;
namespace Jint.Runtime.Interop
{
public class DefaultTypeConverter : ITypeConverter
{
private readonly Engine _engine;
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PipePool : MonoBehaviour
{
public GameObject pipePrefab;
public int pipePoolSize = 5;
public float spawnRate = 3f;
public float pipeMin = -1f;
public float pipeMax = 3.5f;
public float screenOffset = 0.... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// <spec>http://www.w3.org/TR/xpath#exprlex</spec>
//------------------------------------------------------------------------------
using System.Diagnostics;
namespace System.Xml.X... |
namespace SG1
{
public abstract class Response : NetworkMessage
{
public override NetworkType NetworkType
{
get
{
return NetworkType.Response;
}
}
}
} |
using Microsoft.EntityFrameworkCore.Migrations;
namespace Repositories.Migrations
{
public partial class UpdateSubscription : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "SubscribeAll",
... |
using System;
namespace Lenic.Framework.Common.Exceptions
{
/// <summary>
/// 异常信息等级
/// </summary>
[Serializable]
public enum ExceptionLevel
{
/// <summary>
/// 【缺省值】跟踪级别,记录全部异常信息。
/// </summary>
Trace = 0,
/// <summary>
/// 调试级别,记录调试级别的异常信息。
... |
namespace AniVetNetwork.Data.Common
{
using System;
using System.Threading.Tasks;
public interface IDbQueryRunner : IDisposable
{
Task RunQueryAsync(string query, params object[] parameters);
}
} |
namespace GroceryList_Api.Models
{
public class User
{
public Guid Id { get; set; }
public string Email { get; set; }
public string Password { get; set; }
public string Name { get; set; }
public virtual List<GroceryList> GroceryLists { get; set; } = new List<GroceryList... |
using Ship;
using SubPhases;
using System;
using System.Collections.Generic;
using Tokens;
using Upgrade;
namespace Ship
{
namespace SecondEdition.TIEAdvancedX1
{
public class ZertikStrom : TIEAdvancedX1
{
public ZertikStrom() : base()
{
PilotInfo = new ... |
//
// SpecialFolder.cs
//
// Author: Jeffrey Stedfast <jestedfa@microsoft.com>
//
// Copyright (c) 2013-2020 .NET Foundation and Contributors
//
// 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 Sof... |
using System;
namespace SettingsProviderTests
{
/// <summary>
/// A dummy class used for testing purposes.
/// </summary>
[Serializable]
public class Person
{
public Person()
{
Name = "<noname>";
LastName = "<noname>";
Age = 0;
}
... |
using System.Collections.Generic;
namespace Domain
{
public class Hashtag : BaseEntity
{
public string Tag { get; set; }
public ICollection<ArticleHashtag> HashtagArticles { get; set; }
}
} |
// 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 Cake.Common.Tools.GitVersion
{
/// <summary>
/// The GitVersion verbosity. Default is <see cref="... |
using System;
using VU_BOOL = System.Boolean;
using VU_TIME = System.UInt64;
namespace FalconNet.VU
{
//--------------------------------------------------
public class VuSessionEvent : VuEvent
{
public VuSessionEvent(VuEntity ent, vuEventTypes subtype, VuTargetEntity target,
... |
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fi... |
using System.Collections.Generic;
using System.Linq;
using Duffel.ApiClient.Models.Payments;
using Newtonsoft.Json;
using PaymentJsonConverter = Duffel.ApiClient.Converters.Json.PaymentJsonConverter;
namespace Duffel.ApiClient.Models.Requests
{
public class OrderRequest
{
/// <summary>
/// The ... |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using Microsoft.EntityFrameworkCore.Infrastructure;
usin... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace phdesign.NppToolBucket
{
class classMosaic
{
public string MOSAIC_VISF_TO_XML(string text)
{
string output = text;
// Ha dau $
... |
// 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.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;
using Sy... |
namespace ProjectMagma.Framework.Attributes
{
public abstract class Attribute
{
public Attribute(string name)
{
this.name = name;
}
public abstract void Initialize(string value);
public string Name
{
get
{
re... |
using System;
using Windows.UI.Notifications;
using Windows.UI.Popups;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
namespace Notifications.ScenarioPages.Toasts.Actions.Action.QuickReply
{
/// <summary>
/... |
namespace Sql2SqlCloner.Core.SchemaTransfer
{
public class SqlSchemaTable : SqlSchemaObject
{
public long RowCount { get; set; }
public long TopRecords { get; set; }
public string WhereFilter { get; set; }
public bool HasRelationships { get; set; }
public SqlSchemaTable... |
//
// NSUnit.cs
//
// Authors:
// Alex Soto (alexsoto@microsoft.com)
//
// Copyright 2017 Xamarin Inc.
//
using System;
using Foundation;
using ObjCRuntime;
namespace Foundation {
#if !XAMCORE_4_0
public partial class NSUnit {
[Obsolete ("Use .ctor(string)")]
public NSUnit () { }
}
public partial clas... |
// <copyright file="StrictSecurityTokenValidator.cs" company="Okta, Inc">
// Copyright (c) 2018-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>
using System;
using System.IdentityModel.Tokens.Jwt;
... |
using System.Collections.Generic;
using Alipay.AopSdk.Core;
using Alipay.AopSdk.Core.Response;
using Alipay.AopSdk.Core.Util;
namespace Alipay.AopSdk.Core.Request
{
/// <summary>
/// AOP API: alipay.zdatafront.datatransfered.fileupload
/// </summary>
public class
AlipayZdatafrontDatatransferedFileuploadReque... |
using Microsoft.EntityFrameworkCore.Migrations;
namespace WebSite.Migrations
{
public partial class Initial : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "ToDos",
columns: table => n... |
using Bridge.Test.NUnit;
namespace Bridge.ClientTest.Batch3.BridgeIssues
{
[Category(Constants.MODULE_ISSUES)]
[TestFixture(TestNameFormat = "#1741 - {0}")]
public class Bridge1741
{
[Test]
public void TestNumbersHashCode()
{
Assert.AreEqual(10, 10.GetHashCode(), "10... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml... |
using System;
using System.Windows.Input;
using Xamarin.Forms;
namespace AppSample.ViewModels
{
public class AboutViewModel : BaseViewModel
{
public AboutViewModel()
{
Title = "About";
OpenWebCommand = new Command(() => Device.OpenUri(new Uri("https://xamarin.com/plat... |
using System;
using System.Runtime.Serialization;
namespace TygaSoft.WcfModel
{
[DataContract(Name = "DlgPackageModel")]
public class DlgPackageModel
{
[DataMember]
public int PageIndex { get; set; }
[DataMember]
public int PageSize { get; set; }
[DataMember]
... |
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Brimborium.WebDavServer.Utils
{
internal static class TokenParser
{
private static readonly ISet<char> _separators = new HashSet<char>(
new[]
{
'(', ')', '<', '>', '@',
... |
using Backtrace.Unity.Types;
using System;
using System.IO;
using UnityEngine;
namespace Backtrace.Unity.Model
{
[Serializable]
public class BacktraceDatabaseConfiguration : BacktraceClientConfiguration
{
public bool Enabled = false;
/// <summary>
/// Directory path where reports a... |
namespace Artemis.Presentacion.Sales
{
partial class EditorVenta
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary... |
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("Ha... |
/* Copyright (c) Citrix Systems, Inc.
* 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 l... |
using System;
namespace LinqToDB.ServiceModel
{
using SqlProvider;
public class LinqServiceInfo
{
public string MappingSchemaType { get; set; }
public string SqlProviderType { get; set; }
public SqlProviderFlags SqlProviderFlags { get; set; }
public string[] ConfigurationLis... |
using System;
using System.Runtime.InteropServices;
using System.ComponentModel.Composition;
using Dicom;
using Dicom.Imaging;
using Dicom.Imaging.Codec;
using Dicom.IO;
using Dicom.IO.Buffer;
namespace Efferent.Native.Codec
{
[Flags]
public enum CharlsInterleaveModeType
{
None = 0,
Line ... |
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Microsoft.Azure.Devices;
using Microsoft.Azure.Devices.Common.Exceptions;
... |
using System;
namespace Stenn.EntityFrameworkCore.EntityConventions
{
public static class ConventionsAnnotationNames
{
/// <summary>
/// Set default as <see cref="DateTime.Now"/> for specific provider
/// </summary>
public const string SqlDefault_CurrentDateTime = "SqlDefault_Cu... |
namespace TymurKoshel.Coordinator
{
public interface IRouter
{
void Transition(ICoordinator parent, ICoordinator current, ICoordinator next);
}
} |
#nullable disable
using System;
using System.Collections.Generic;
using System.Linq;
using NLog;
using VocaDb.Model.Domain;
using VocaDb.Model.Domain.Users;
namespace VocaDb.Model.Helpers
{
/// <summary>
/// Manages concurrent entry edits.
/// </summary>
public class ConcurrentEntryEditManager
{
private static... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace AsmdefHelper.Example.Hoge {
public class NewBehaviourScript : MonoBehaviour {
// Start is called before the first frame update
void Start() {
}
// Update is called once per frame
void... |
using System;
using System.Collections;
using Assembly = System.Reflection.Assembly;
using Hashtable = System.Collections.Hashtable;
using ArrayList = System.Collections.ArrayList;
using Debug = System.Diagnostics.Debug;
using AST = antlr.collections.AST;
using ASTArray = antlr.collections.impl.ASTArray;
using ANTLREx... |
using System.ComponentModel;
using Xamarin.Essentials;
using Xamarin.Forms;
using Colors = System.Drawing.Color;
namespace HtmlLabel.Forms.Plugin.Tests.App
{
// Learn more about making custom code visible in the Xamarin.Forms previewer
// by visiting https://aka.ms/xamarinforms-previewer
[DesignTimeVisibl... |
using Microsoft.EntityFrameworkCore;
using System;
using System.Linq;
using System.Collections.Generic;
namespace platzi_asp_net_core.Models
{
public class EscuelaConexto : DbContext
{
public DbSet<Escuela> Escuelas { get; set; }
public DbSet<Asignatura> Asignaturas { get; set; }
public... |
using HealthChecks.UI.Core;
using HealthChecks.UI.Core.Data;
using System.Collections.Generic;
using System.Linq;
namespace Microsoft.Extensions.Diagnostics.HealthChecks
{
public static class HealthReportExtensions
{
public static List<HealthCheckExecutionEntry> ToExecutionEntries(this UIHealthReport ... |
namespace Observatory.Framework.Files.ParameterTypes
{
public class CarrierFinance
{
public long CarrierBalance { get; init; }
public long ReserveBalance { get; init; }
public long AvailableBalance { get; init; }
public int ReservePercent { get; init; }
public int TaxRat... |
namespace Oliviann.Tests
{
#region Usings
using System;
using Xunit;
#endregion Usings
[Trait("Category", "CI")]
public class HighResolutionDateTimeTests
{
[Fact]
public void GetUtcNow()
{
DateTime expected = DateTime.UtcNow;
DateTime resul... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Editor.Implementation.AutomaticCompletion;
using Microsoft.CodeAnalysis.Editor.UnitTests.Automatic... |
namespace TestApp.Client.Features.Counter
{
using System;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using Microsoft.Extensions.Logging;
using TestApp.Client.Pipeline.NotificationPostProcessor;
internal class IncrementCountNotificationHandler
: INotificationHandler<PostPip... |
// This source code was generated by ClangCaster
using System;
using System.Runtime.InteropServices;
namespace NWindowsKits
{
// C:/Program Files (x86)/Windows Kits/10/Include/10.0.18362.0/um/WinUser.h:12023
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct CLIENTCREATESTRUCT
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
using WolvenKit.CR2W.Reflection;
namespace WolvenKit.CR2W.Types
{
/// <summary>
/// The reflection magic happens mostly here, with System.Activator.
/// A class is instantiated... |
// Copyright(c) Microsoft Corporation.All rights reserved.
// Licensed under the MIT License.
using System;
namespace Microsoft.Maps.Unity.Search
{
[Serializable]
internal class ResourceSet
{
public string estimatedTotal = null;
public Resource[] resources = null;
}
} |
namespace SV.UPnPLite.Core
{
using System;
internal static class StringExtensions
{
public static string F(this string st, params object[] args)
{
return String.Format(st, args);
}
public static string[] SplitIntoLines(this string text)
{
return text.Split(new char[] { '\r', '\n' }, StringSpli... |
using FastGithub.Configuration;
using Microsoft.Extensions.Logging;
using System.Runtime.Versioning;
namespace FastGithub.PacketIntercept.Tcp
{
/// <summary>
/// ssh拦截器
/// </summary>
[SupportedOSPlatform("windows")]
sealed class SshInterceptor : TcpInterceptor
{
/// <summary>
... |
using System;
using System.Threading;
namespace Contoso.Bus.NugetMessages
{
public class DeployReply
{
public class WaitState
{
internal ManualResetEvent WaitEvent = new ManualResetEvent(false);
public Action<string> Success { get; set; }
public Action Failu... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Xunit;
namespace System.Windows.Forms.Tests
{
public class DataGridViewTests
{
[Fact]
... |
using System;
using System.Collections.Generic;
using System.Text;
namespace NDSolver
{
class PremiseStep : IProofStep
{
public ISymbol Conclusion { get => premise; }
public int Start { get => stepNumber; }
public int End { get => stepNumber; }
private int stepNumber;
... |
// 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.CodeAnalysis.Operations.ControlFlow
{
/// <summary>
/// Kind of <see cref="BasicBlock"/>.
/// NOTE: This class is temporary a... |
namespace Chad.Models
{
/// <summary>
/// 正在生成的用户
/// </summary>
public record ManagedGeneratingUser : ManagedUser
{
/// <summary>
/// 初始密码
/// </summary>
public string InitialPassword { get; init; }
}
} |
namespace ShoppingAggregator.Models
{
public class OrderResponseModel
{
public string UserName { get; set; }
public decimal TotalPrice { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string EmailAddress { get; set; }
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DuplicateMachineScript : MonoBehaviour
{
public MachineScript machine;
NumberScript number;
NumberScript newNumber;
CraneMovement crane;
void Start() {
crane = GameObject.Find("Crane").GetComponent<... |
using UnityEngine;
namespace Bachelor.MyExtensions
{
public static class GameObjectExtensions
{
static public T GetOrAddComponent<T>(this GameObject gameObject) where T : Component
{
T result = gameObject.GetComponent<T>();
if (result == null)
{
... |
using System;
using System.Collections.Generic;
using System.Text;
namespace AutoUpdateLib
{
public class DownloadFileContract
{
private string fileName;
public string FileName
{
get { return fileName; }
set { fileName = value; }
}
}
} |
using System.Reflection;
// Allgemeine Informationen über eine Assembly werden über folgende
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[assembly: AssemblyTitle("RestSharp.Portable.Core")]
[assembly: AssemblyProduct("RestSharp.Portabl... |
using System.BluetoothLe;
namespace System.BluetoothLe.EventArgs
{
public class BluetoothStateChangedArgs : System.EventArgs
{
/// <summary>
/// State before the change.
/// </summary>
public BluetoothState OldState { get; }
/// <summary>
/// Current state.
... |
/*******************************************************************************
* Copyright 2012-2019 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... |
using System.Net.Http;
using System.Threading.Tasks;
using NextApi.Common;
using NextApi.Common.Event;
namespace NextApi.Client
{
/// <summary>
/// NextApi client
/// </summary>
public interface INextApiClient
{
/// <summary>
/// Invoke method of specific service and return result
... |
namespace ReaLocate.Services.Data
{
using Contracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ReaLocate.Data.Models;
using ReaLocate.Data.Common;
public class PaymentDetailsService : IPaymentDetailsServ... |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.EntityFrameworkCore.ChangeTracking;
using Microsoft.EntityFrameworkCore.Diagnostics;
using Microsoft.EntityFrameworkCore.T... |
using System;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin;
using Microsoft.Owin.Security.Cookies;
using Microsoft.Owin.Security.Google;
using Owin;
using ContactUs.Web.Models;
namespace ContactUs.Web
{
public partial class Startup
{
// For more informati... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Microsoft.Maui.Controls.ControlGallery
{
public class EditorGallery : ContentPage
{
public EditorGallery()
{
var cellTemplate = new DataTemplate(typeof(TextCell));
cellTemplate.Set... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
using Microsoft.PowerFx.Core.Localization;
using Microsoft.PowerFx.Core.Utils;
namespace Microsoft.PowerFx.Core.Lexer.Tokens
{
internal class StrInterpEndToken : Token
{
public StrInterpEndToken(Span span)
: base(T... |
namespace SimpleMvc.Common
{
using System.Linq;
using System.Security.Cryptography;
public static class PasswordUtilities
{
public static string GetPasswordHash(string password)
{
var sha256 = SHA256Managed.Create();
return string.Join(
"",
... |
using System;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using SMS_Sender.Models;
namespace SMS_Sender.Controllers
{
[Authorize]
public class ManageController : C... |
// *** 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... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34014
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... |
using System;
using System.Collections.Concurrent;
using System.ComponentModel;
using System.Diagnostics;
using SJP.Schematic.Core.Extensions;
using SJP.Schematic.Core.Utilities;
namespace SJP.Schematic.Core
{
/// <summary>
/// Describes an identifier which represents any object with a database. In particular... |
// This file is a part of JsonBourne project.
//
// Copyright 2020 Emzi0767
//
// 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
//
// ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.