lang
stringclasses
10 values
seed
stringlengths
5
2.12k
csharp
static bool TakeInput() { string[] materials = Console.ReadLine() .Split(' ') .Where(p => !string.IsNullOrWhiteSpace(p)) .ToArray(); for (int i = 0; i < materials.Length - 1; i += 2) {
csharp
namespace GMBAcademy.Domain.Entities.Base { public class BaseEntity: IEntity { public Guid Id { get; set; } = Guid.NewGuid(); public bool IsActive { get; set; } = true; } }
csharp
using System.Threading.Tasks; namespace XRTK.Utilities.Async.AwaitYieldInstructions { /// <summary> /// Helper class for continuing executions on a background thread. /// </summary> public class BackgroundThread { public static ConfiguredTaskAwaitable.ConfiguredTaskAwaiter GetAwaiter() { return Task.Run(() => { }).ConfigureAwait(false).GetAwaiter(); }
csharp
{ if (s_Instance == null) { s_Instance = new Settings(k_PackageName); } return s_Instance; }
csharp
using StarMeApp.Application.Contracts.DTOs; using StarMeApp.Application.Contracts.DTOs.Common; using StarMeApp.Domain.BusinessEntities; using System.Threading.Tasks; namespace StarMeApp.Application.Contracts.Services { public interface IStoryService: IGenericService<AddStoryDTO, GetStoryDTO, long> { Task<ResponseListDTO<GetStoryDTO>> GetStoriesByTag(long tagId); Task<ResponseListDTO<GetStoryDTO>> GetStoriesByTitle(string title); } }
csharp
return Add(new Station("Station-1", 1)) && Add(new Station("Station-2", 2)) && Add(new Station("Station-3", 3)) && Add(new Station("Station-4", 4)) && Add(new Station("Station-50", 50)); }
csharp
using System.Text; using TMDbApiDom.Dto.Tvs.SubClasses; namespace TMDbApiDom.Dto.Tvs { public class TvChanges<T> { public T[] changes { get; set; } } }
csharp
public decimal low { get; set; } public decimal high { get; set; } public decimal volume { get; set; } public TickEvent() : base() { } } } }
csharp
{ using FluentNHibernate.Cfg; using FluentNHibernate.Cfg.Db; using NHibernate.Cfg; using NHibernatePlayground.Model.Mapping; internal static class SqliteConfigurationFactory { internal static Configuration Create() {
csharp
/// <summary> /// Gets or sets the plane representing the mouse cursor's X position in 3D space. This forms /// a plane such that if it were projected back to the screen it would intersect the mouse's /// X position along the Y axis of the screen. This is updated automatically by /// DefaultRenderContext based on the World, View and Projection properties of the current render context. /// </summary> /// <value>The plane representing the mouse cursor's X position in 3D space.</value>
csharp
using Autodesk.DesignScript.Runtime; namespace DynaShape.Goals { [IsVisibleInDynamoLibrary(false)] public class CoLinearGoal : Goal { public CoLinearGoal(List<Triple> nodeStartingPositions, float weight = 1f)
csharp
return false; return Attribute.IsDefined(checkObject.GetType(), typeof(T)); } internal static T GetAttribute<T>(this object checkObject) where T : Attribute { if (!checkObject.HasAttribute<T>()) return null; return (T)Attribute.GetCustomAttribute(checkObject.GetType(), typeof(T)); } internal static byte[] GetBytes(this Stream stream) { using (MemoryStream ms = new MemoryStream())
csharp
{ UnityEngine.Debug.LogError("Unable to find the specified sound: " + name); return false; } return true; } private bool IsMusicValid(string name) { Sound s = Array.Find(musics, music => music.name == name); if (s == null) { UnityEngine.Debug.LogError("Unable to find the specified music: " + name); return false;
csharp
addIndex++; } if (addIndex < _entries.Count) { Array.Resize(ref values, addIndex); } return values; } /// <summary>
csharp
public int Id { get { return id; } set { id = value; OnPropertyChanged("Id"); } } public string Name { get { return name; } set { name = value; OnPropertyChanged("Name"); } }
csharp
@helper Truncate(string input, int length) { if (!string.IsNullOrEmpty(input)) { if (input.Length <= length)
csharp
public enum ImageSize { Full = 0, S50X50 = 20, S80X80 = 21, S150X150 = 22, W500 = 23 } }
csharp
public IEnumerable<ConditionDto> GetAll() { return dbContext.Conditions .OrderBy(condition => condition.Type) .Select(condition => new ConditionDto { Id = condition.Id, Type = condition.Type }) .ToList();
csharp
namespace ConnectionManager { public class SSHClient { private SshClient client = null; private SshCommand cmd = null; //--------------------------- // Open connection //--------------------------- public bool Open(string host, int port, string login, string password)
csharp
internal class CondLengthProperty : Property { internal class Maker : PropertyMaker { public Maker(string name) : base(name) { }
csharp
{ [Required] public int questionId { get; set; } } }
csharp
using Jace.RealTime.Operations; using Jace.RealTime.Execution; using Jace.RealTime.Compilation; namespace Jace.RealTime.Compilation { public class Optimizer { private readonly IExecutor executor; public Optimizer(IExecutor executor) { this.executor = executor; }
csharp
public class ExponentialSearch { public static long search(long[] arr, long n, long x) { // If x is present at // first location itself
csharp
// fixed width Null = 0x40, Boolean = 0x56, BooleanTrue = 0x41, BooleanFalse = 0x42, UInt0 = 0x43, ULong0 = 0x44, UByte = 0x50, UShort = 0x60,
csharp
namespace JudoPayDotNet.Clients.WebPayments { /// <summary> /// Provides operations for webpayments /// </summary> // ReSharper disable UnusedMemberInSuper.Global public interface IWebPayments { /// <summary> /// Allows you to create a (payment) webpayment before passing Judo your customer to complete the payment /// </summary> IPayments Payments { get; set; } /// <summary> /// Allows you to create a (preauth) webpayment before passing Judo your customer to complete the payment
csharp
@model Int16 @( Html.Kendo().DropDownListFor(p => p) .DataValueField("EntityTypeCode").DataTextField("EntityTypeName").OptionLabel("Select EntityType") .BindTo((System.Collections.IEnumerable)ViewData["EntityTypeList"]) .HtmlAttributes(new { style = "width: 11em;", title = "Select most appropriate EntityType." }) )
csharp
_sbox = new int[N]; var key = new int[N]; for (var a = 0; a < N; a++) { key[a] = _seedKey[a % _seedKey.Length]; _sbox[a] = a; } var b = 0; for (var a = 0; a < N; a++) {
csharp
private bool isDisposed = false; public RequestHandlerScope(RequestHandler handler) { if (handler == null) {
csharp
<gh_stars>0 <h1>There are no contacts in the Address Book!</h1>
csharp
byte v3 = (byte)rnd.Next(0, 255); palette[i] = new Vec3b(v1, v2, v3); } return palette; } static void Main(string[] args) { if (args.Length != 3) { Console.WriteLine("usage:\n image_segmentation deviceName modelPath imagePath\n");
csharp
using System.ComponentModel; using MTSC.Common.Http.RoutingModules; namespace MTSC.UnitTests.RoutingModules { [TypeConverter(typeof(SomeResponseConverter))] public class SomeRoutingResponse { } }
csharp
using Microsoft.Extensions.Options; namespace ApiRest.Controllers { [Route("api/[controller]")] public class JwtController : Controller { private readonly JwtIssuerOptions _jwtOptions; private readonly ILogger _logger; private readonly SignInManager<ApplicationUser> _signInManager; private readonly UserManager<ApplicationUser> _userManager;
csharp
public DlrKernel(INinjectSettings settings, params INinjectModule[] modules) : base(settings, modules) { } protected override void AddComponents() { base.AddComponents(); Components.Add<IRubyEngine, RubyEngine>(); Components.Add<IModuleLoaderPlugin, RubyModuleLoaderPlugin>(); } /// <summary> /// Loads the assemblies the provide types are defined in into the ruby engines.
csharp
if (selecting) { if (Input.GetKeyDown(KeyCode.DownArrow)) { selectedOption++; } else if (Input.GetKeyDown(KeyCode.UpArrow)) { selectedOption--;
csharp
{ public interface IGranularitySpec { string Type { get; } DateTime? Origin { get; } }
csharp
{ public interface IRecorder : IDisposable { bool IsStarted { get; } byte[] Data { get; } void Start(); void Stop(); event EventHandler<VoiceActionsEventArgs> Started; event EventHandler<VoiceActionsEventArgs> Stopped; } }
csharp
break; case 'u': count++; break; } } return count; } } }
csharp
/// Gets the guid identifier of an object, which has the name "Id". /// </summary> /// <param name="item">The item.</param> /// <returns>The guid identifier of an object, which has the name "Id".</returns> public static Guid GetId(this object item) { // TODO: Add cache var idProperty = item.GetType().GetProperties().FirstOrDefault(p => p.Name.Equals("Id") && p.PropertyType == typeof(Guid)); if (idProperty == null) {
csharp
public Markets Data { get; set; } internal static bool TryHandle(string response, ISubject<MarketsResponse> subject) { if (!FtxJsonSerializer.ContainsValue(response, "markets")) return false; var parsed = FtxJsonSerializer.Deserialize<MarketsResponse>(response);
csharp
public interface ITask { /// <summary>任务项编号</summary> Int32 ID { get; set; } /// <summary>开始。大于等于</summary> DateTime Start { get; set; } /// <summary>结束。小于</summary> DateTime End { get; set; } /// <summary>批大小</summary>
csharp
<div class="row"> <div class="col-sm-1 mb-1"> @Html.LabelFor(m => m.Email) </div> <div class="col-sm-1 mb-1"> @Html.TextBoxFor(m => m.Email) </div> </div> <div class="row"> <div class="col-sm-1 mb-1"> @Html.LabelFor(m => m.Password) </div> <div class="col-sm-1 mb-1"> @Html.TextBoxFor(m => m.Password, new {@type="password"}) </div>
csharp
@using Microsoft.AspNetCore.Identity @using LedgerMain @using LedgerMain.Data @namespace LedgerMain.Pages @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
csharp
int dcIndex = 0; int nyquistIndex = m_result.Count() / 2; m_result = m_result.Select(number => number * 2.0D).ToArray(); //adjust first and last bucket (residual and DC)
csharp
namespace SA { [CreateAssetMenu(menuName = "AI/AI Mods/Enumerable Phase Data/EgilStaminaMod_3rdPhase_EP_Data")] public class EgilStaminaMod_3rdPhase_EP_Data : EnumerablePhaseData { [Header("Egil Stamina Mod EP Data.")] public int _lastPhaseEgilStaminaActionAmount = 32; public override void SetNewPhaseData(AIManager _ai) {
csharp
public TextIndentedWriter() : this(null) { } /// <summary> /// 释放资源. /// </summary> /// <param name="disposing">是否释放托管资源.</param> protected override void Dispose(bool disposing) { if (disposing) { // Release managed resources
csharp
} base.Dispose(disposing); } } private static unsafe void LoadOrSaveSurfaceRegion(FileStream fileHandle, Surface surface, PdnRegion region, bool trueForSave) { Rectangle[] scans = region.GetRegionScansReadOnlyInt(); Rectangle regionBounds = region.GetBoundsInt(); Rectangle surfaceBounds = surface.Bounds; int scanCount = 0; void*[] ppvBuffers; uint[] lengths;
csharp
if (!Directory.Exists(path)) return; DirectoryInfo di = new DirectoryInfo(path); int i = 0; foreach (DirectoryInfo d in di.GetDirectories()) {
csharp
using System; namespace Tests { public class FileForTest : BaseElementForTest { public String FileName { get; set; } } }
csharp
[DisplayName("Telefone 2")] public string Phone_2 { get; set; } public DateTime CreatedAt { get; set; } public CompanyUnitViewModel CompanyUnit { get; set; } public IEnumerable<CompanyUnitViewModel> CompanyUnits { get; set; }
csharp
// 用户金币 public long gold; public UserData() { }
csharp
/// tables rather /// than single records within tables. Some examples of metadata are owner /// of the /// table, table creation timestamp etc.</summary> public class AlterTableMetadataRequest : KineticaData { /// <summary>Names of the tables whose metadata will be updated, in /// [schema_name.]table_name format, using standard <a /// href="../../../concepts/tables/#table-name-resolution" /// target="_top">name resolution rules</a>. All specified tables must
csharp
namespace EVEStandard.Enumerations { public enum FleetRole { fleet_commander = 1, squad_commander = 2, squad_member = 3, wing_commander = 4
csharp
using System.Collections.Generic; namespace Vardirsoft.DI.Interfaces { public interface IDependencyResolver { IEnumerable<IResolvedDependency> Resolve(IDIContainer diContainer, IEnumerable<IDependency> dependencies); } }
csharp
await jsonWriter.WriteValueAsync(obj.Rating, cancellationToken).ConfigureAwait(false); } if (obj.Votes.HasValue) { await jsonWriter.WritePropertyNameAsync(JsonProperties.PROPERTY_NAME_VOTES, cancellationToken).ConfigureAwait(false); await jsonWriter.WriteValueAsync(obj.Votes, cancellationToken).ConfigureAwait(false); } if (obj.Distribution?.Count > 0) { await jsonWriter.WritePropertyNameAsync(JsonProperties.PROPERTY_NAME_DISTRIBUTION, cancellationToken).ConfigureAwait(false); await JsonWriterHelper.WriteDistributionAsync(jsonWriter, obj.Distribution, cancellationToken).ConfigureAwait(false); }
csharp
using Controller; namespace Operator.Definitions { public class LinkedConfigMapCRD : CustomResource<LinkedConfigMap> { } }
csharp
public static class AssertionsExtensions { public static AndConstraint<TAssertions> Equal<TSubject, TAssertions>(this ReferenceTypeAssertions<TSubject, TAssertions> assertions, TSubject? other, IEqualityComparer<TSubject> comparer, string because = "", params object[] becauseArgs) where TAssertions : ReferenceTypeAssertions<TSubject, TAssertions> { return assertions.Match(x => comparer.Equals(x, other), because, becauseArgs); } public static AndConstraint<ObjectAssertions> Equal<TSubject>(this ObjectAssertions assertions, TSubject? other, IEqualityComparer<TSubject?> comparer, string because = "", params object[] becauseArgs) where TSubject : class { return assertions.Match(x => comparer.Equals(x as TSubject, other), because, becauseArgs); }
csharp
{ public GameObject HUD_NPCQuestLivro; void Start() { HUD_NPCQuestLivro.SetActive(false); } void OnTriggerEnter(Collider hit){ if(hit.gameObject.tag == "Player_3.0") { HUD_NPCQuestLivro.SetActive(true); }
csharp
if (!a) { Console.WriteLine("You entered not a number, try again"); } else if (result != 0 && result < 129) { return result; }
csharp
private bool isEquippable = false; public bool IsEquippable { get => isEquippable; set => isEquippable = value; } [SerializeField] private bool isUsable = false; public bool IsUsable { get => isUsable; set => isUsable = value; }
csharp
namespace RestApisGen { class Program { static void Main(string[] args) { Console.WriteLine("Reading API templates"); var apis = Directory.EnumerateDirectories("ApiTemplates")
csharp
{ var nums = ex.ReadNums(); if (nums == null) break; var min = ex.FindMin(nums);
csharp
} #endregion #region ImageSizeRadioButtons
csharp
namespace OffSync.Mapping.Mappert.Tests.MappingRules { [TestFixture] public class AbstractMappingRuleBuilderTest {
csharp
/// <param name="ClanCallsign">ClanCallsign.</param> /// <param name="ClanBannerData">ClanBannerData.</param> public GroupsV2GroupV2ClanInfoAndInvestment(Dictionary<string, DestinyDestinyProgression> D2ClanProgressions = default(Dictionary<string, DestinyDestinyProgression>), string ClanCallsign = default(string), GroupsV2ClanBanner ClanBannerData = default(GroupsV2ClanBanner)) { this.D2ClanProgressions = D2ClanProgressions; this.ClanCallsign = ClanCallsign; this.ClanBannerData = ClanBannerData; } /// <summary> /// Gets or Sets D2ClanProgressions
csharp
public class LordJob_NonVoluntaryJoinable_MarriageCeremony : LordJob { public Pawn firstPawn; public Pawn secondPawn; private IntVec3 spot; private Trigger_TicksPassed afterPartyTimeoutTrigger;
csharp
using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cryptography.Domain.Abstractions { public interface ITripleDesService
csharp
var right = scene.RootNode.CreateChildNode(); left.Transform.Translation = new Vector3(8, 0, 0); // Direction property defines the direction of the extrusion. // Perform linear extrusion on left node using twist and slices property left.CreateChildNode(new LinearExtrusion(profile, 10) { Twist = 360, Slices = 100 }); // Perform linear extrusion on right node using twist, slices, and direction property right.CreateChildNode(new LinearExtrusion(profile, 10) { Twist = 360, Slices = 100, Direction = new Vector3(0.3, 0.2, 1) }); // Save 3D scene scene.Save(RunExamples.GetOutputFilePath("DirectionInLinearExtrusion.obj"), FileFormat.WavefrontOBJ); // ExEnd:DirectionInLinearExtrusion } } }
csharp
namespace IService { public interface IWorkFlowModelService { ///// <summary> ///// 获取类别信息 ///// </summary> ///// <returns></returns> //List<WorkFlowModel> GetWorkFlowModel();
csharp
using QX.NodeParty.Services; namespace QX.NodeParty.Runtime.Registry.Services { public abstract class ServiceFactoryRegistrationInfo { public abstract Task<object> CreateService(IServiceLocator serviceLocator); } public class ServiceFactoryRegistrationInfo<TService> : ServiceFactoryRegistrationInfo where TService : class { private readonly string _serviceFactoryId; private readonly Func<IServiceLocator, Task<TService>> _serviceFactory;
csharp
var bst = new BinarySearchTree<int>(); bst.Insert(firstValue); bst.Insert(secondValue); NodeAssert.NotNullAndValueEqual(bst.Root, firstValue); NodeAssert.NotNullAndValueEqual(bst.Root.Left, secondValue); } [Fact] public void Insert_InsertSecondBiggerItem_TreeContainsTwoItems() { var firstValue = 2;
csharp
public SerialInputItem() { Option = ""; Label = ""; StoreKey = ""; Context = 0; Callback = null; } }
csharp
return TextsEngine.ListFileNameWithCulture(); } catch (Exception) { throw; }
csharp
private ParserENG parserENG; private ParserSPA parserSPA; public ParserOptions options; public ClippingStorage ClippingStorage; //Variable keeping count of raw clippings, declared on the class scope so that
csharp
using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; namespace NetOffice.MSHTMLApi { /// <summary> /// DispatchInterface HTMLWindowEvents3 /// SupportByVersion MSHTML, 4 /// </summary> [SupportByVersion("MSHTML", 4)] [EntityType(EntityType.IsDispatchInterface)] [TypeId("3050F5A1-98B5-11CF-BB82-00AA00BDCE0B")] public interface HTMLWindowEvents3 : HTMLWindowEvents2
csharp
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EyeScript : MonoBehaviour { [SerializeField] SpriteRenderer eyeSprite; [SerializeField] SpriteRenderer diamondSprite;
csharp
{ _data.UpdateCountry(country); return RedirectToAction("Index"); }
csharp
<gh_stars>0 namespace CyberCAT.Core.DumpedEnums { public enum EWindowBlindersStates { NonInteractive = 0, Open = 1, Closed = 2, Tilted = 3 } }
csharp
MangoJwtIssuer = mangoJwtIssuer; MangoJwtAudience = mangoJwtAudience; MangoJwtSignKey = mangoJwtSignKey; MangoJwtLifetimeMinutes = mangoJwtLifetimeMinutes; MangoRefreshTokenLifetimeDays = mangoRefreshTokenLifetimeDays; }
csharp
namespace ACUnicep.WebAPI.DTO { public class BaseResponse { private bool Success { get; set; } private string Message { get; set; } private object Data { get; set; } public BaseResponse() {} public BaseResponse Ok(bool success, string message, object data)
csharp
using UnityEngine.UI; using System.Collections; public class PanelScript : MonoBehaviour { public GameObject panelCanvas; public GameObject panel; private RectTransform rectTransform; // Use this for initialization void Start () {
csharp
ChangeAmmo(-1); ps.gameObject.SetActive(true); ps.Play(); RaycastHit hit; Vector3 screenPoint = cam.ScreenToWorldPoint(new Vector3(Screen.width / 2, Screen.height / 2, atkRange)), dir = screenPoint - ps.transform.position;
csharp
public float speed = 2; private void Update() { if(Input.GetAxis("Horizontal") > 0) {
csharp
/// Encapsulates snapshot information from the Alpaca REST API. /// </summary> [CLSCompliant(false)] [SuppressMessage("ReSharper", "UnusedMemberInSuper.Global")] public interface ISnapshot { /// <summary>
csharp
// 632 Client->Server public virtual void ReplyPeerId(Manager.Peer peer, CRLFSocket socket, Packet packet) { if (packet.Data == null || packet.Data.Length != 1) {
csharp
[JsonPropertyName("id")] public int Id { get; set; } [JsonPropertyName("params")] public object[] Parameters { get; set; } public DaemonRequest() { } public DaemonRequest(string method, params object[] parameters) { Method = method;
csharp
// Start is called before the first frame update void Start() { hero = FindObjectOfType<Hero>(); goldText = GetComponent<Text>(); } // Update is called once per frame void Update()
csharp
using System.Threading.Tasks; using Tinkoff.ISA.DAL.Elasticsearch.Request; using Tinkoff.ISA.Domain.Search; namespace Tinkoff.ISA.DAL.Elasticsearch.Services { public interface IElasticSearchService { Task<IList<TResponse>> SearchAsync<TResponse>(ElasticSearchRequest request) where TResponse : SearchableText; Task<IList<TResponse>> SearchWithTitleAsync<TResponse>(ElasticSearchRequest request) where TResponse : SearchableWithTitle;
csharp
@using Jmelosegui.Mvc.GoogleMap @model String @{ Html.GoogleMap() .Name("addressMap") .Height(600) .Zoom(15) .Center(c => c.Address(Model)) .ClientEvents(events => events .OnMapClick("mapAddressClick") .OnMapLoaded("mapAddressLoaded") )
csharp
using System.Collections.Generic; using System.Threading.Tasks; namespace WikEpubLib.Extensions { public static class EnumerableExtension { public static async Task ForEachAsync<T>(this IEnumerable<T> enumerable, Func<T, Task> action) { foreach (var item in enumerable) { await action(item);
csharp
/// <summary> /// Will clear the seen messages cache. /// </summary> /// <returns>A collection of message ids which have already passed.</returns> IEnumerable<string> PurgeSeenMessagesCache(); /// <summary> /// Extracts the Envelope's header. /// </summary> /// <param name="envelope">The <see cref="TransportEnvelope"/> to retrieve the header from.</param> /// <returns>The <see cref="ITransportEnvelopeHeader"/> belonging to the given <see cref="TransportEnvelope"/>.</returns> ITransportEnvelopeHeader ExtractHeader(TransportEnvelope envelope); ///// <summary>
csharp
public class Tweet : ITweet { public Tweet(string receivedMessage) { if (string.IsNullOrEmpty(receivedMessage) || string.IsNullOrWhiteSpace(receivedMessage)) { throw new ArgumentException("The received message is invalid!"); } this.Message = receivedMessage; } public string Message { get; private set; } }
csharp
public static IObservable<System.Boolean> Dispose(this IObservable<System.Threading.Timer> TimerValue, IObservable<System.Threading.WaitHandle> notifyObject) { return Observable.Zip(TimerValue, notifyObject, (TimerValueLambda, notifyObjectLambda) => TimerValueLambda.Dispose(notifyObjectLambda)); }
csharp
{ prediction = maxPrediction; } else { prediction = distance/speed; }
csharp
{ if (connection is null) { ThrowHelper.ThrowArgumentNullException(ExceptionArgument.connection); } return connection.ReadEventAsync(stream, StreamPosition.Start, resolveLinkTos, userCredentials); } #endregion #region -- ReadLastEvent -- /// <summary>Reads the last event from a stream.</summary> /// <param name="connection">The <see cref="IEventStoreConnectionBase"/> responsible for raising the event.</param> /// <param name="stream">The stream to read from.</param>
csharp
public override Core.Token GetLastToken(Core.GetTokenMode mode) { if (mode >= Core.GetTokenMode.RemoveWhiteSpace) return null; return this; }
csharp
{ ret.Ignore = true; return ret; } ret.NewLineCharacter = (NewLineCharacter)newlineCharCbx.SelectedIndex; ret.SaveUTF8 = (bool)saveUTF8Btn.IsChecked; ret.Operation = (bool)tabifyBtn.IsChecked ? TabifyOperation.Tabify : TabifyOperation.Untabify; return ret; } } private void tabifyBtn_Checked(object sender, RoutedEventArgs e) {
csharp
public delegate void PublicDelegate(); namespace A {
csharp
namespace ReverseNumbers { class Program { static void Main(string[] args) { int[] numbers = Console.ReadLine().Split(new char[] {' '},StringSplitOptions.RemoveEmptyEntries).Select(int.Parse).ToArray(); var stack = new Stack<int>(numbers); for (int i = 0; i < numbers.Length; i++) { Console.Write(stack.Pop()+" ");
csharp
{ private float power_const = 500; private float rotation_angle_rate = 0.0f; private float motor_radius = 3.3f; //3.3cm private GameObject obj;
csharp
{ base.Setup(); symbol = MethodCompiler.Linker.GetSymbol(MethodCompiler.Method.FullName, SectionKind.Text); simLinker = MethodCompiler.Linker as SimLinker; simLinker.ClearSymbolInformation(symbol); } protected override void EmitInstruction(InstructionNode node, BaseCodeEmitter codeEmitter) { long start = codeEmitter.CurrentPosition;