Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Fix for display of hours
@model RedFolder.Podcast.Models.PodcastMetrics <div class="podcast-metrics"> <div> <h3 class="title">Number of episodes</h3> <p class="metric"> @Model.NumberOfEpisodes </p> </div> <div> <h3 class="title">Total duration</h3> <p class="metric"> ...
@model RedFolder.Podcast.Models.PodcastMetrics <div class="podcast-metrics"> <div> <h3 class="title">Number of episodes</h3> <p class="metric"> @Model.NumberOfEpisodes </p> </div> <div> <h3 class="title">Total duration</h3> <p class="metric"> ...
Check if property has setter
using System.Linq; namespace CmsEngine.Extensions { public static class ObjectExtensions { public static object MapTo(this object source, object target) { foreach (var sourceProp in source.GetType().GetProperties()) { var targetProp = target.GetType().Ge...
using System.Linq; namespace CmsEngine.Extensions { public static class ObjectExtensions { public static object MapTo(this object source, object target) { foreach (var sourceProp in source.GetType().GetProperties()) { var targetProp = target.GetType().Ge...
Set NullHandling to Ignore for key
using MbDotNet.Models.Stubs; using Newtonsoft.Json; using System.Collections.Generic; namespace MbDotNet.Models.Imposters { public class HttpsImposter : Imposter { [JsonProperty("stubs")] public ICollection<HttpStub> Stubs { get; private set; } // TODO Need to not include key...
using MbDotNet.Models.Stubs; using Newtonsoft.Json; using System.Collections.Generic; namespace MbDotNet.Models.Imposters { public class HttpsImposter : Imposter { [JsonProperty("stubs")] public ICollection<HttpStub> Stubs { get; private set; } // TODO This won't serialize ke...
Put in defensive code to prevent crash when toggling wait cursor state.
using System; using System.Linq; using System.Windows.Forms; namespace Palaso.UI.WindowsForms.Miscellaneous { /// ---------------------------------------------------------------------------------------- public class WaitCursor { /// --------------------------------------------------------------------------------...
using System; using System.Linq; using System.Windows.Forms; namespace Palaso.UI.WindowsForms.Miscellaneous { /// ---------------------------------------------------------------------------------------- public class WaitCursor { /// --------------------------------------------------------------------------------...
Use the managed thread id as identifier in our trace messages.
using System.Diagnostics; namespace Renci.SshNet.Abstractions { internal static class DiagnosticAbstraction { #if FEATURE_DIAGNOSTICS_TRACESOURCE private static readonly SourceSwitch SourceSwitch = new SourceSwitch("SshNetSwitch"); public static bool IsEnabled(TraceEventType traceEventType) ...
using System.Diagnostics; using System.Threading; namespace Renci.SshNet.Abstractions { internal static class DiagnosticAbstraction { #if FEATURE_DIAGNOSTICS_TRACESOURCE private static readonly SourceSwitch SourceSwitch = new SourceSwitch("SshNetSwitch"); public static bool IsEnabled(TraceEv...
Add a title for nested types
@{ Layout = "default"; Title = "Module"; } <div class="row"> <div class="span1"></div> <div class="span10" id="main"> <h1>@Model.Module.Name</h1> <div class="xmldoc"> @Model.Module.Comment.FullText </div> @if (Model.Module.NestedTypes.Length > 0) { <div> <table class="table t...
@{ Layout = "default"; Title = "Module"; } <div class="row"> <div class="span1"></div> <div class="span10" id="main"> <h1>@Model.Module.Name</h1> <div class="xmldoc"> @Model.Module.Comment.FullText </div> @if (Model.Module.NestedTypes.Length > 0) { <h2>Nested types</h2> <div> ...
Fix call dot expression first test
namespace BScript.Tests.Expressions { using System; using System.Collections.Generic; using System.Linq; using System.Text; using BScript.Commands; using BScript.Expressions; using BScript.Language; using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] pub...
namespace BScript.Tests.Expressions { using System; using System.Collections.Generic; using System.Linq; using System.Text; using BScript.Commands; using BScript.Expressions; using BScript.Language; using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] pub...
Make sure the anchor is the parent element
using UnityEngine; namespace Pear.InteractionEngine.Interactions { /// <summary> /// Manipulating objects, such as resizing and moving, can be tricky when you have multiple scripts trying the modify the same thing. /// This class creates an anchor element which is used to help these manipulations /// </summary> ...
using UnityEngine; namespace Pear.InteractionEngine.Interactions { /// <summary> /// Manipulating objects, such as resizing and moving, can be tricky when you have multiple scripts trying the modify the same thing. /// This class creates an anchor element which is used to help these manipulations /// </summary> ...
Fix a few test scenes
// 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 osu.Framework.Extensions.ObjectExtensions; namespace osu.Game.Tests.Visual { /// <summary> /// Test case which adjusts the beatmap's rate to match any spee...
// 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.Diagnostics; using osu.Framework.Extensions.ObjectExtensions; namespace osu.Game.Tests.Visual { /// <summary> /// Test case which adjusts the beatma...
Remove namespace and public from console app
using System; namespace ConsoleApplication { public class Program { public static void Main(string[] args) { Console.WriteLine("Hello World!"); } } }
using System; public class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); } }
Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major.
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Autofac.Extras.Attributed")] [assembly: AssemblyDescription("Autofac Extensions for categorized discovery using attributes")] [assembly: InternalsVisibleTo("Autofac.Tests.Extras.Attrib...
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Autofac.Extras.Attributed")] [assembly: InternalsVisibleTo("Autofac.Tests.Extras.Attributed, PublicKey=00240000048000009400000006020000002400005253413100040000010001008728425885ef385e04...
Make equipped list a property instead of a field
using Newtonsoft.Json; using OniBot.Interfaces; using System.Collections.Generic; namespace OniBot.CommandConfigs { public class SweepConfig : CommandConfig { public Dictionary<ulong, string> Equiped = new Dictionary<ulong, string>(); [JsonIgnore] public override string ConfigKey => "...
using Newtonsoft.Json; using OniBot.Interfaces; using System.Collections.Generic; namespace OniBot.CommandConfigs { public class SweepConfig : CommandConfig { public Dictionary<ulong, string> Equiped { get; set; } = new Dictionary<ulong, string>(); [JsonIgnore] public override string ...
Remove editor functionality from VirtualBeatmapTrack
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.Linq; using osu.Framework.Audio.Track; using osu.Game.Rulesets.Objects.Types; namespace osu.Game.Beatmaps { public partial class WorkingBeatmap { ...
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.Linq; using osu.Framework.Audio.Track; using osu.Game.Rulesets.Objects.Types; namespace osu.Game.Beatmaps { public partial class WorkingBeatmap { ...
Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major.
using System; using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Autofac.Extras.EnterpriseLibraryConfigurator")] [assembly: AssemblyDescription("Autofac support for Enterprise Library container configuration.")] [assembly: ComVisible(false)]
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Autofac.Extras.EnterpriseLibraryConfigurator")] [assembly: ComVisible(false)]
Use the AppSettings 'NuGetPackagePath' if exists and the default ~/Packages otherwise
using System; using System.Web; using System.Web.Hosting; namespace NuGet.Server.Infrastructure { public class PackageUtility { internal static string PackagePhysicalPath = HostingEnvironment.MapPath("~/Packages"); public static Uri GetPackageUrl(string path, Uri baseUri) { re...
using System; using System.Web; using System.Web.Hosting; using System.Configuration; namespace NuGet.Server.Infrastructure { public class PackageUtility { internal static string PackagePhysicalPath; private static string DefaultPackagePhysicalPath = HostingEnvironment.MapPath("~/Pa...
Fix local service discovery now that services are listening on 0.0.0.0
using System; using System.Linq; using System.Net; using Google.Protobuf.Reflection; using KillrVideo.Host.Config; namespace KillrVideo.Protobuf.ServiceDiscovery { /// <summary> /// Service discovery implementation that just points all service clients to the host/port where they /// have been configured t...
using System; using Google.Protobuf.Reflection; using KillrVideo.Host.Config; namespace KillrVideo.Protobuf.ServiceDiscovery { /// <summary> /// Service discovery implementation that just points all service clients to 'localhost' and the port /// where they have been configured to run locally. /// </s...
Set correct version number in main window
using System.Reflection; using System.Windows; namespace Arkivverket.Arkade.UI.Views { public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); Title = string.Format(UI.Resources.UI.General_WindowTitle, typeof(App).Assembly.GetName().Versi...
using System.Reflection; using System.Windows; namespace Arkivverket.Arkade.UI.Views { public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); Title = string.Format(UI.Resources.UI.General_WindowTitle, "0.3.0"); // Todo - get correct appl...
Add a debug assert when a node is being reparented.
using System.Collections.Generic; namespace Microsoft.Build.Logging.StructuredLogger { public class ParentedNode : BaseNode { public TreeNode Parent { get; set; } public IEnumerable<ParentedNode> GetParentChain() { var chain = new List<ParentedNode>(); ...
using System.Collections.Generic; namespace Microsoft.Build.Logging.StructuredLogger { public class ParentedNode : BaseNode { private TreeNode parent; public TreeNode Parent { get => parent; set { #if DEBUG if (parent != ...
Set main page of bit application of cs client if no main page is provided (Due error/delay in initialization)
using Autofac; using Bit.Model.Events; using Plugin.Connectivity.Abstractions; using Prism; using Prism.Autofac; using Prism.Events; using Prism.Ioc; using Xamarin.Forms; namespace Bit { public abstract class BitApplication : PrismApplication { protected BitApplication(IPlatformInitializer platformIni...
using Autofac; using Bit.Model.Events; using Plugin.Connectivity.Abstractions; using Prism; using Prism.Autofac; using Prism.Events; using Prism.Ioc; using Xamarin.Forms; namespace Bit { public abstract class BitApplication : PrismApplication { protected BitApplication(IPlatformInitializer platformIni...
Expand the misspelled member name test
using static System.Console; public class Counter { public Counter() { } public int Count; public Counter Increment() { Count++; return this; } } public static class Program { public static readonly Counter printCounter = new Counter(); public static void Main() { ...
using static System.Console; public class Counter { public Counter() { } public int Count; public Counter Increment() { Count++; return this; } public Counter Decrement<T>() { Count--; return this; } } public static class Program { public static r...
Use direct nuget public feed URLs
namespace JetBrains.TeamCity.NuGet.Tests { public static class NuGetConstants { public const string DefaultFeedUrl_v1 = "https://go.microsoft.com/fwlink/?LinkID=206669"; public const string DefaultFeedUrl_v2 = "https://go.microsoft.com/fwlink/?LinkID=230477"; public const string NuGetDevFeed = "ht...
namespace JetBrains.TeamCity.NuGet.Tests { public static class NuGetConstants { public const string DefaultFeedUrl_v1 = "https://packages.nuget.org/v1/FeedService.svc/"; public const string DefaultFeedUrl_v2 = "https://www.nuget.org/api/v2/"; public const string NuGetDevFeed = "https://dotnet.myget.org/...
Convert candidates to an array.
namespace Bakery.Cqrs { using SimpleInjector; using System; using System.Linq; using System.Threading.Tasks; public class SimpleInjectorDispatcher : IDispatcher { private readonly Container container; public SimpleInjectorDispatcher(Container container) { if (container == null) th...
namespace Bakery.Cqrs { using SimpleInjector; using System; using System.Linq; using System.Threading.Tasks; public class SimpleInjectorDispatcher : IDispatcher { private readonly Container container; public SimpleInjectorDispatcher(Container container) { if (container == null) th...
Fix Clear-Bitmap being completely broken now, oops.
using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Linq; using System.Text; namespace PixelPet { /// <summary> /// PixelPet workbench instance. /// </summary> public class Workbench { public IList<Color> Palette { get; } public Bit...
using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Linq; using System.Text; namespace PixelPet { /// <summary> /// PixelPet workbench instance. /// </summary> public class Workbench { public IList<Color> Palette { get; } public Bit...
Use templated version of Resources.Load
using DeJson; using System.Collections.Generic; using System; using System.IO; using UnityEngine; namespace HappyFunTimes { public class HFTWebFileLoader { // TODO: Put this in one place static private string HFT_WEB_PATH = "HappyFunTimesAutoGeneratedDoNotEdit/"; static private string ...
using DeJson; using System.Collections.Generic; using System; using System.IO; using UnityEngine; namespace HappyFunTimes { public class HFTWebFileLoader { // TODO: Put this in one place static private string HFT_WEB_PATH = "HappyFunTimesAutoGeneratedDoNotEdit/"; static private string ...
Use the correct string for the warning key. (patch by olivier)
using System; using System.Collections.Generic; using System.Text; using System.Collections.Specialized; using MonoTorrent.BEncoding; using System.Net; namespace MonoTorrent.Tracker { public abstract class RequestParameters : EventArgs { protected internal static readonly string FailureKey = "failure r...
using System; using System.Collections.Generic; using System.Text; using System.Collections.Specialized; using MonoTorrent.BEncoding; using System.Net; namespace MonoTorrent.Tracker { public abstract class RequestParameters : EventArgs { protected internal static readonly string FailureKey = "failure r...
Remove whitespace around app version
using System.Collections.Generic; using StockportContentApi.Model; using StockportContentApi.Utils; using System.Linq; using System.Threading.Tasks; namespace StockportContentApi.Services { public interface IHealthcheckService { Task<Healthcheck> Get(); } public class HealthcheckService : IHe...
using System.Collections.Generic; using StockportContentApi.Model; using StockportContentApi.Utils; using System.Linq; using System.Threading.Tasks; namespace StockportContentApi.Services { public interface IHealthcheckService { Task<Healthcheck> Get(); } public class HealthcheckService : IHe...
Fix for one more IDE0078
// 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; using System.IO; namespace Microsoft.CodeAnalysis.RulesetToEditorconfig { internal static class Program { public static int Ma...
// 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; using System.IO; namespace Microsoft.CodeAnalysis.RulesetToEditorconfig { internal static class Program { public static int Ma...
Add a lock for StatisticCounter
// 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.Internal.Log { internal sealed class StatisticLogAggregator : AbstractLogAggregator<StatisticLogAggregator.StatisticCoun...
// 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.Internal.Log { internal sealed class StatisticLogAggregator : AbstractLogAggregator<StatisticLogAggregator.StatisticCoun...
Fix thumbnail retrieval options to actually work
using System; using System.Collections.Generic; namespace OneDrive { public class ThumbnailRetrievalOptions : RetrievalOptions { /// <summary> /// List of thumbnail size names to return /// </summary> public string[] SelectThumbnailNames { get; set; } /// <summary> ...
using System; using System.Collections.Generic; namespace OneDrive { public class ThumbnailRetrievalOptions : RetrievalOptions { /// <summary> /// List of thumbnail size names to return /// </summary> public string[] SelectThumbnailNames { get; set; } /// <summary> ...
Add BsonSerializer for Date and Time
using System; using InfinniPlatform.Sdk.Types; using MongoDB.Bson; using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Serializers; namespace InfinniPlatform.DocumentStorage.MongoDB { /// <summary> /// Реализует логику сериализации и десериализации <see cref="Time"/> для MongoDB. /// </su...
using System; using InfinniPlatform.Sdk.Types; using MongoDB.Bson; using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Serializers; namespace InfinniPlatform.DocumentStorage.MongoDB { /// <summary> /// Реализует логику сериализации и десериализации <see cref="Time"/> для MongoDB. /// </su...
Tweak beef001a to suppress Message when no additional shell items are present
using System; using System.Text; namespace ExtensionBlocks { public class Beef001a : BeefBase { public Beef001a(byte[] rawBytes) : base(rawBytes) { if (Signature != 0xbeef001a) { throw new Exception($"Signature mismatch! Should be Beef001a bu...
using System; using System.Text; namespace ExtensionBlocks { public class Beef001a : BeefBase { public Beef001a(byte[] rawBytes) : base(rawBytes) { if (Signature != 0xbeef001a) { throw new Exception($"Signature mismatch! Should be Beef001a bu...
Fix test case runs not being correctly isolated on mono
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using osu.Framework.Platform; using osu.Framework.Testing; namespace osu.Game.Tests.Visual { public abstract class OsuTestCase : TestCase ...
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using osu.Framework.Platform; using osu.Framework.Testing; namespace osu.Game.Tests.Visual { public abstract class OsuTestCase : TestCase ...
Handle console input in fbdev mode
using System; using System.Linq; using Avalonia; namespace ControlCatalog.NetCore { class Program { static void Main(string[] args) { if (args.Contains("--fbdev")) AppBuilder.Configure<App>() .InitializeWithLinuxFramebuffer(tl => tl.Content = new...
using System; using System.Linq; using Avalonia; namespace ControlCatalog.NetCore { class Program { static void Main(string[] args) { if (args.Contains("--fbdev")) AppBuilder.Configure<App>().InitializeWithLinuxFramebuffer(tl => { tl.Content = new MainVi...
Fix broken build because of failing test
using System; using Glimpse.Core.Extensibility; using Glimpse.Core.Resource; using Moq; using Xunit; namespace Glimpse.Test.Core.Resource { public class ConfigurationShould { [Fact] public void ReturnProperName() { var name = "glimpse_config"; var resource = ne...
using System; using Glimpse.Core.Extensibility; using Glimpse.Core.Framework; using Glimpse.Core.Resource; using Glimpse.Core.ResourceResult; using Moq; using Xunit; namespace Glimpse.Test.Core.Resource { public class ConfigurationShould { [Fact] public void ReturnProperName() { ...
Add Enabled = true, Exported = false
using System.Collections.Generic; using Android.App; using Android.Content; namespace Plugin.FirebasePushNotification { [BroadcastReceiver] public class PushNotificationActionReceiver : BroadcastReceiver { public override void OnReceive(Context context, Intent intent) { IDicti...
using System.Collections.Generic; using Android.App; using Android.Content; namespace Plugin.FirebasePushNotification { [BroadcastReceiver(Enabled = true, Exported = false)] public class PushNotificationActionReceiver : BroadcastReceiver { public override void OnReceive(Context context, Intent in...
Reset timer if period is changed while it is running.
using System; using System.Threading; using Microsoft.SPOT; namespace AgentIntervals { public delegate void HeartBeatEventHandler(object sender, EventArgs e); public class HeartBeat { private Timer _timer; private int _period; public event HeartBeatEventHandler On...
using System; using System.Threading; using Microsoft.SPOT; namespace AgentIntervals { public delegate void HeartBeatEventHandler(object sender, EventArgs e); public class HeartBeat { private Timer _timer; private int _period; public event HeartBeatEventHandler On...
Quit the Mac app after the window is closed
using AppKit; using Foundation; namespace Skia.OSX.Demo { [Register ("AppDelegate")] public partial class AppDelegate : NSApplicationDelegate { public AppDelegate () { } public override void DidFinishLaunching (NSNotification notification) { // Insert code here to initialize your application } p...
using AppKit; using Foundation; namespace Skia.OSX.Demo { [Register ("AppDelegate")] public partial class AppDelegate : NSApplicationDelegate { public AppDelegate () { } public override void DidFinishLaunching (NSNotification notification) { // Insert code here to initialize your application } p...
Make EZ mod able to fail in Taiko
// 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 osu.Game.Rulesets.Mods; namespace osu.Game.Rulesets.Taiko.Mods { public class TaikoModEasy : ModEasy { public override string Description => @"Bea...
// 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 Humanizer; using osu.Framework.Bindables; using osu.Framework.Graphics.Sprites; using osu.Game.Beatmaps; using osu.Game.Configuration; using osu.Game...
Support for parsing equality operator with constant operand.
using NUnit.Framework; using System; using System.Linq.Expressions; using TestStack.FluentMVCTesting.Internal; namespace TestStack.FluentMVCTesting.Tests.Internal { [TestFixture] public class ExpressionInspectorShould { [Test] public void Correctly_parse_equality_comparison_with_string_ope...
using NUnit.Framework; using System; using System.Linq.Expressions; using TestStack.FluentMVCTesting.Internal; namespace TestStack.FluentMVCTesting.Tests.Internal { [TestFixture] public class ExpressionInspectorShould { [Test] public void Correctly_parse_equality_comparison_with_string_ope...
Make clone root build config test more strict
using System.Threading.Tasks; using NSubstitute; using Ploeh.AutoFixture; using Ploeh.AutoFixture.Xunit; using TeamCityApi.Domain; using TeamCityApi.Locators; using TeamCityApi.Tests.Helpers; using TeamCityApi.Tests.Scenarios; using TeamCityApi.UseCases; using Xunit; using Xunit.Extensions; namespace TeamCityApi.Test...
using System.Threading.Tasks; using NSubstitute; using Ploeh.AutoFixture; using Ploeh.AutoFixture.Xunit; using TeamCityApi.Domain; using TeamCityApi.Locators; using TeamCityApi.Tests.Helpers; using TeamCityApi.Tests.Scenarios; using TeamCityApi.UseCases; using Xunit; using Xunit.Extensions; namespace TeamCityApi.Test...
Set value type for Textarea to "TEXT".
using Umbraco.Core; using Umbraco.Core.PropertyEditors; namespace Umbraco.Web.PropertyEditors { [PropertyEditor(Constants.PropertyEditors.TextboxMultipleAlias, "Textarea", "textarea", IsParameterEditor = true)] public class TextAreaPropertyEditor : PropertyEditor { } }
using Umbraco.Core; using Umbraco.Core.PropertyEditors; namespace Umbraco.Web.PropertyEditors { [PropertyEditor(Constants.PropertyEditors.TextboxMultipleAlias, "Textarea", "textarea", IsParameterEditor = true, ValueType = "TEXT")] public class TextAreaPropertyEditor : PropertyEditor { } }
Rework clear scene method by collecting all roots
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using UnityEngine; namespace HoloToolkit.Unity { public static class EditorUtils { /// <summary> /// Deletes all objects in the scene ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System.Linq; using UnityEngine; namespace HoloToolkit.Unity { public static class EditorUtils { /// <summary> /// Deletes all objects ...
Fix percent conversion to color.
namespace dotless.Core.Parser.Functions { using System.Linq; using Infrastructure; using Infrastructure.Nodes; using Tree; using Utils; public class RgbaFunction : Function { protected override Node Evaluate(Env env) { if (Arguments.Count == 2) { ...
namespace dotless.Core.Parser.Functions { using System.Linq; using Infrastructure; using Infrastructure.Nodes; using Tree; using Utils; public class RgbaFunction : Function { protected override Node Evaluate(Env env) { if (Arguments.Count == 2) { ...
Update DMLib version to 0.8.1.0
//------------------------------------------------------------------------------ // <copyright file="SharedAssemblyInfo.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation // </copyright> // <summary> // Assembly global configuration. // </summary> //------------------------------------------------...
//------------------------------------------------------------------------------ // <copyright file="SharedAssemblyInfo.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation // </copyright> // <summary> // Assembly global configuration. // </summary> //------------------------------------------------...
Set DebuggingSubProcess = Debugger.IsAttached rather than a hard coded value
using System; using System.Linq; namespace CefSharp.Example { public static class CefExample { public const string DefaultUrl = "custom://cefsharp/BindingTest.html"; // Use when debugging the actual SubProcess, to make breakpoints etc. inside that project work. private const bool debu...
using System; using System.Diagnostics; using System.Linq; namespace CefSharp.Example { public static class CefExample { public const string DefaultUrl = "custom://cefsharp/BindingTest.html"; // Use when debugging the actual SubProcess, to make breakpoints etc. inside that project work. ...
Add a formated Json serialization option
using System; using System.IO; using System.Text; namespace Eleven41.Helpers { public static class JsonHelper { public static string Serialize<T>(T obj) { return ServiceStack.Text.JsonSerializer.SerializeToString(obj, typeof(T)); } public static void SerializeToStream<T>(T obj, Stream stream) { Se...
using System; using System.IO; using System.Text; using ServiceStack.Text; namespace Eleven41.Helpers { public static class JsonHelper { public static string Serialize<T>(T obj) { return JsonSerializer.SerializeToString(obj, typeof(T)); } public static string SerializeAndFormat<T>(T obj) { return o...
Fix challenge div displaying in Chrome.
<div id="challengeInbox" style="display: none;"> <p id="challengeText"></p> <input type="button" onclick="acceptChallenge()" value="Accept" /> <input type="button" onclick="rejectChallenge()" value="Reject" /> </div> <script> function pollChallengeInbox() { $.getJSON('@Url.Content("~/Pol...
<div id="challengeInbox" style="display: none;"> <p id="challengeText"></p> <input type="button" onclick="acceptChallenge()" value="Accept" /> <input type="button" onclick="rejectChallenge()" value="Reject" /> </div> <script> function pollChallengeInbox() { $.getJSON('@Url.Content("~/Pol...
Fix failing tests on Travis
using System; using NUnit.Framework; namespace Plivo.Test { [TestFixture] public class TestSignature { [Test] public void TestSignatureV2Pass() { string url = "https://answer.url"; string nonce = "12345"; string signature = "ehV3IKhLysWBxC1sy8...
using System; using NUnit.Framework; namespace Plivo.Test { [TestFixture] public class TestSignature { [Test] public void TestSignatureV2Pass() { string url = "https://answer.url"; string nonce = "12345"; string signature = "ehV3IKhLysWBxC1sy8...
Fix horizontal scroll for Virtual list
using Silphid.Extensions; using UnityEngine; namespace Silphid.Showzup.ListLayouts { public class HorizontalListLayout : ListLayout { public float HorizontalSpacing; public float ItemWidth; protected float ItemOffsetX => ItemWidth + HorizontalSpacing; public override ...
using Silphid.Extensions; using UnityEngine; namespace Silphid.Showzup.ListLayouts { public class HorizontalListLayout : ListLayout { public float HorizontalSpacing; public float ItemWidth; protected float ItemOffsetX => ItemWidth + HorizontalSpacing; private Rect VisibleRect ...
Make polymorphic schema generation opt-in
using System; using System.Linq; using Microsoft.OpenApi.Models; using Newtonsoft.Json.Serialization; namespace Swashbuckle.AspNetCore.SwaggerGen { public class PolymorphicSchemaGenerator : ChainableSchemaGenerator { public PolymorphicSchemaGenerator( SchemaGeneratorOptions options, ...
using System; using System.Linq; using Microsoft.OpenApi.Models; using Newtonsoft.Json.Serialization; namespace Swashbuckle.AspNetCore.SwaggerGen { public class PolymorphicSchemaGenerator : ChainableSchemaGenerator { public PolymorphicSchemaGenerator( SchemaGeneratorOptions options, ...
Add HttpClient to GetToolConsumerProfileAsync convenience method to make it easier to call from an integration test.
using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; using LtiLibrary.NetCore.Common; using LtiLibrary.NetCore.Extensions; namespace LtiLibrary.NetCore.Profiles { public static class ToolConsumerProfileClient { /// <summary> /// Get a ToolConsumerProfile from the...
using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; using LtiLibrary.NetCore.Common; using LtiLibrary.NetCore.Extensions; namespace LtiLibrary.NetCore.Profiles { public static class ToolConsumerProfileClient { /// <summary> /// Get a ToolConsumerProfile from the...
Remove unused functions (that generate by unity :p)
using UnityEngine.Events; [System.Serializable] public class LiteNetLibLoadSceneEvent : UnityEvent<string, bool, float> { // Use this for initialization void Start () { } // Update is called once per frame void Update () { } }
using UnityEngine.Events; [System.Serializable] public class LiteNetLibLoadSceneEvent : UnityEvent<string, bool, float> { }
Rewrite Action Attack erased by mistake
using UnityEngine; [CreateAssetMenu (menuName = "AI/Actions/Enemy_Attack")] public class Action_Attack : Action { public override void Init(StateController controller) { return; } public override void Act(StateController controller) { } }
using UnityEngine; [CreateAssetMenu (menuName = "AI/Actions/Enemy_Attack")] public class Action_Attack : Action { [SerializeField] float staminaRequired = 2f; [SerializeField] float attackDelay = 1f; [SerializeField] float attackDuration = 1f; [SerializeField] float attackDamage = 1f; [SerializeField] fl...
Fix crash when items are added from non-WPF main thread
using System.Collections.ObjectModel; using System.Linq; using SOVND.Lib.Models; namespace SOVND.Client.Util { public class ChannelDirectory { public ObservableCollection<Channel> channels = new ObservableCollection<Channel>(); public bool AddChannel(Channel channel) { if (...
using System.Collections.ObjectModel; using System.Linq; using SOVND.Lib.Models; namespace SOVND.Client.Util { public class ChannelDirectory { private readonly SyncHolder _sync; public ObservableCollection<Channel> channels = new ObservableCollection<Channel>(); public ChannelDirectory...
Rename previously unknown GAF field
namespace TAUtil.Gaf.Structures { using System.IO; public struct GafFrameData { public ushort Width; public ushort Height; public ushort XPos; public ushort YPos; public byte Unknown1; public bool Compressed; public ushort FramePointers; ...
namespace TAUtil.Gaf.Structures { using System.IO; public struct GafFrameData { public ushort Width; public ushort Height; public ushort XPos; public ushort YPos; public byte TransparencyIndex; public bool Compressed; public ushort FrameP...
Add ThrowsWithMessage() overload with format string
using System; using Xunit; namespace Cascara.Tests { public class AssertExtension : Assert { public static T ThrowsWithMessage<T>(Func<object> testCode, string message) where T : Exception { var ex = Assert.Throws<T>(testCode); Assert.Equal(ex.Message, messa...
using System; using Xunit; namespace Cascara.Tests { public class AssertExtension : Assert { public static T ThrowsWithMessage<T>(Func<object> testCode, string message) where T : Exception { var ex = Assert.Throws<T>(testCode); Assert.Equal(ex.Message, messa...
Add logical operations to NuGit operations
using MacroDiagnostics; using MacroExceptions; using MacroGuards; namespace produce { public class NuGitModule : Module { public override void Attach(ProduceRepository repository, Graph graph) { Guard.NotNull(repository, nameof(repository)); Guard.NotNull(graph, nameof(graph)); ...
using MacroDiagnostics; using MacroExceptions; using MacroGuards; namespace produce { public class NuGitModule : Module { public override void Attach(ProduceRepository repository, Graph graph) { Guard.NotNull(repository, nameof(repository)); Guard.NotNull(graph, nameof(graph)); ...
Fix non-existant ref vars in function calls.
using System; namespace Hlpr { class WarpHelp { public static double Distance(double x1, double y1, double z1, double x2, double y2, double z2) { double dis; dis = Math.Pow(x1-x2,2) + Math.Pow(y1-y2,2) + Math.Pow(z1-z2,2); dis = Math.Pow(dis,0.5); return dis; } public static double Distance(Vecto...
using System; namespace Hlpr { class WarpHelp { public static double Distance(double x1, double y1, double z1, double x2, double y2, double z2) { double dis; dis = Math.Pow(x1-x2,2) + Math.Pow(y1-y2,2) + Math.Pow(z1-z2,2); dis = Math.Pow(dis,0.5); return dis; } public static double Distance(Vecto...
Make the JSON model over the API control be the correct casing & make Mads happy :)
using System; namespace Umbraco.Web.Models.ContentEditing { public class RollbackVersion { public int VersionId { get; set; } public DateTime VersionDate { get; set; } public string VersionAuthorName { get; set; } } }
using System; using System.Runtime.Serialization; namespace Umbraco.Web.Models.ContentEditing { [DataContract(Name = "rollbackVersion", Namespace = "")] public class RollbackVersion { [DataMember(Name = "versionId")] public int VersionId { get; set; } [DataMember(Name = "versionDa...
Set Datawriter executing logs to debug level
using System; using log4net; using Quartz; namespace DCS.Core.Scheduler { public sealed class CronTask : IJob { private readonly string _cronConfig; private readonly ILog _logger = LogManager.GetLogger(typeof(CronTask)); private readonly Action _task; private readonly string _t...
using System; using log4net; using Quartz; namespace DCS.Core.Scheduler { public sealed class CronTask : IJob { private readonly string _cronConfig; private readonly ILog _logger = LogManager.GetLogger(typeof(CronTask)); private readonly Action _task; private readonly string _t...
Update REST API version to v3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Zermelo.API.Interfaces; using Zermelo.API.Services.Interfaces; namespace Zermelo.API.Services { internal class UrlBuilder : IUrlBuilder { const string _https = "https://"; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Zermelo.API.Interfaces; using Zermelo.API.Services.Interfaces; namespace Zermelo.API.Services { internal class UrlBuilder : IUrlBuilder { const string _https = "https://"; ...
Call the disposeEmitter action on dispose
using InfluxDB.LineProtocol.Collector; using System; namespace InfluxDB.LineProtocol { public class CollectorConfiguration { readonly IPointEmitter _parent; readonly PipelinedCollectorTagConfiguration _tag; readonly PipelinedCollectorEmitConfiguration _emitter; readonly Pipelin...
using InfluxDB.LineProtocol.Collector; using System; namespace InfluxDB.LineProtocol { public class CollectorConfiguration { readonly IPointEmitter _parent; readonly PipelinedCollectorTagConfiguration _tag; readonly PipelinedCollectorEmitConfiguration _emitter; readonly Pipelin...
Replace proprietary file header with BSD one
//////////////////////////////////////////////////////////////// // // (c) 2009, 2010 Careminster Limited and Melanie Thielker // // All rights reserved // using System; using Nini.Config; using OpenSim.Framework; using OpenMetaverse; namespace OpenSim.Services.Interfaces { public interface IBakedTextureModule ...
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * 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 r...
Make flaky tests a bit less flaky
using System; using NUnit.Framework; namespace nunit.v3 { [TestFixture] public class FlakyTest { [Test] [Retry(5)] public void TestFlakyMethod() { int result = 0; try { result = FlakyAdd(2, 2); } ca...
using System; using NUnit.Framework; namespace nunit.v3 { [TestFixture] public class FlakyTest { [Test] [Retry(5)] public void TestFlakyMethod() { int result = 0; try { result = FlakyAdd(2, 2); } ca...
Add methods to manipulate MediaStoreItems
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using System.IO; namespace Snowflake.Information.MediaStore { public class MediaStoreSection { public string SectionName { get; set; } public Dictionary<st...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using System.IO; namespace Snowflake.Information.MediaStore { public class MediaStoreSection { public string SectionName { get; set; } public Dictionary<st...
Add ProfilerInterceptor.GuardInternal() for public APIs even if they are hidden.
/* JustMock Lite Copyright © 2019 Progress Software Corporation 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 ap...
/* JustMock Lite Copyright © 2019 Progress Software Corporation 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 ap...
Fix potential null ref exception.
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="IHaveInitializationStrategiesExtensionMethods.cs" company="Naos"> // Copyright 2015 Naos // </copyright> // ---------------------------------------------------------------------...
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="IHaveInitializationStrategiesExtensionMethods.cs" company="Naos"> // Copyright 2015 Naos // </copyright> // ---------------------------------------------------------------------...
Add exception to catch any incorrect defaults of `Bindable<string>`
// 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 osu.Framework.Graphics; namespace osu.Game.Overlays.Settings { public class SettingsTextBox : SettingsItem<string> { protected override Drawable C...
// 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 osu.Framework.Bindables; using osu.Framework.Graphics; namespace osu.Game.Overlays.Settings { public class SettingsTextBox : SettingsItem<string...
Add missing methods to server interface
using System.Threading.Tasks; namespace osu.Game.Online.RealtimeMultiplayer { /// <summary> /// An interface defining the spectator server instance. /// </summary> public interface IMultiplayerServer { /// <summary> /// Request to join a multiplayer room. /// </summary> ...
using System.Threading.Tasks; namespace osu.Game.Online.RealtimeMultiplayer { /// <summary> /// An interface defining the spectator server instance. /// </summary> public interface IMultiplayerServer { /// <summary> /// Request to join a multiplayer room. /// </summary> ...
Handle null values in IsMultilineDocComment
// 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; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.C...
// 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; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.C...
Improve a/an word extraction to avoid problematic cases like "Triple-A classification"
using System.Text.RegularExpressions; using System.Linq; using System; using System.Collections.Generic; namespace WikipediaAvsAnTrieExtractor { public partial class RegexTextUtils { //Note: regexes are NOT static and shared because of... http://stackoverflow.com/questions/7585087/multithreaded-use...
using System.Text.RegularExpressions; using System.Linq; using System; using System.Collections.Generic; namespace WikipediaAvsAnTrieExtractor { public partial class RegexTextUtils { //Note: regexes are NOT static and shared because of... http://stackoverflow.com/questions/7585087/multithreaded-use...
Revert "FLEET-9992: Add extra property to use new long Id's"
using System; using System.Collections.Generic; using System.Text; using MiX.Integrate.Shared.Entities.Communications; namespace MiX.Integrate.Shared.Entities.Messages { public class SendJobMessageCarrier { public SendJobMessageCarrier() { } public short VehicleId { get; set; } public string Description { ge...
using System; using System.Collections.Generic; using System.Text; using MiX.Integrate.Shared.Entities.Communications; namespace MiX.Integrate.Shared.Entities.Messages { public class SendJobMessageCarrier { public SendJobMessageCarrier() { } public short VehicleId { get; set; } public string Description { ge...
Add debugger to HelloWorldBlacksboardAI example
using UnityEngine; using NPBehave; public class NPBehaveExampleHelloBlackboardsAI : MonoBehaviour { private Root behaviorTree; void Start() { behaviorTree = new Root( // toggle the 'toggled' blackboard boolean flag around every 500 milliseconds new Service(0.5f, () => { b...
using UnityEngine; using NPBehave; public class NPBehaveExampleHelloBlackboardsAI : MonoBehaviour { private Root behaviorTree; void Start() { behaviorTree = new Root( // toggle the 'toggled' blackboard boolean flag around every 500 milliseconds new Service(0.5f, () => { b...
Disable account online check for now.
// Copyright (c) Multi-Emu. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using AuthServer.Attributes; using AuthServer.Constants.Net; using Framework.Database; using Framework.Database.Auth; namespace AuthServer.Network.Packets.Handler { clas...
// Copyright (c) Multi-Emu. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using AuthServer.Attributes; using AuthServer.Constants.Net; using Framework.Database; using Framework.Database.Auth; namespace AuthServer.Network.Packets.Handler { clas...
Fix incorrect font indexing in language dropdown
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class DropdownLanguageFontUpdater : MonoBehaviour { [SerializeField] private Text textComponent; void Start () { var language = LocalizationManager.instance.getAllLanguages()[transform.Get...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class DropdownLanguageFontUpdater : MonoBehaviour { [SerializeField] private Text textComponent; void Start () { var languages = LocalizationManager.instance.getAllLanguages(); Loc...
Throw correct exceptions for IO errors
#if !NETCOREAPP using System.ComponentModel; #endif using System.IO; #if !NETCOREAPP using System.Runtime.InteropServices; #endif namespace winsw.Util { public static class FileHelper { public static void MoveOrReplaceFile(string sourceFileName, string destFileName) { #if NETCOREAPP ...
#if !NETCOREAPP using System; #endif using System.IO; #if !NETCOREAPP using System.Runtime.InteropServices; #endif namespace winsw.Util { public static class FileHelper { public static void MoveOrReplaceFile(string sourceFileName, string destFileName) { #if NETCOREAPP File.Move(sou...
Add better error logging to see why mono build is failing
using System; using System.Collections.Generic; using System.Diagnostics; using Autofac; using Crane.Core.Configuration.Modules; using Crane.Core.IO; using log4net; namespace Crane.Integration.Tests.TestUtilities { public static class ioc { private static IContainer _container; public static ...
using System; using System.Collections.Generic; using System.Diagnostics; using Autofac; using Crane.Core.Configuration.Modules; using Crane.Core.IO; using log4net; namespace Crane.Integration.Tests.TestUtilities { public static class ioc { private static IContainer _container; private static...
Add tests for new eventing behavior.
using System.Web; using System.Web.Mvc; using Pelasoft.AspNet.Mvc.Slack; using System.Configuration; namespace Pelasoft.AspNet.Mvc.Slack.TestWeb { public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); v...
using System.Web; using System.Web.Mvc; using Pelasoft.AspNet.Mvc.Slack; using System.Configuration; namespace Pelasoft.AspNet.Mvc.Slack.TestWeb { public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); v...
Update the release/editorial endpoint schema
using System; using System.Xml.Serialization; using SevenDigital.Api.Schema.Attributes; using SevenDigital.Api.Schema.ParameterDefinitions.Get; namespace SevenDigital.Api.Schema.ReleaseEndpoint { [XmlRoot("editorial")] [ApiEndpoint("release/editorial")] [Serializable] public class ReleaseEditorial : Has...
using System; using System.Xml.Serialization; using SevenDigital.Api.Schema.Attributes; using SevenDigital.Api.Schema.ParameterDefinitions.Get; namespace SevenDigital.Api.Schema.ReleaseEndpoint { [XmlRoot("editorial")] [ApiEndpoint("release/editorial")] [Serializable] public class ReleaseEditorial : Has...
Revert "Revert "added try catch, test commit""
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Core.CrossDomainImagesWeb { public partial class Default : System.Web.UI.Page { protected void Page_PreInit(object sender, EventArgs e) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Core.CrossDomainImagesWeb { public partial class Default : System.Web.UI.Page { protected void Page_PreInit(object sender, EventArgs e) { ...
Rename field to better match type.
using System; using System.Collections.Concurrent; using System.Collections.Immutable; using System.Linq; using System.Threading; using Mitternacht.Modules.Games.Common; using Mitternacht.Services; namespace Mitternacht.Modules.Games.Services { public class GamesService : IMService { private readonly IBotConfigProv...
using System; using System.Collections.Concurrent; using System.Collections.Immutable; using System.Linq; using System.Threading; using Mitternacht.Modules.Games.Common; using Mitternacht.Services; namespace Mitternacht.Modules.Games.Services { public class GamesService : IMService { private readonly IBotConfigProv...
Call GetBaseException instead of manually unwrapping exception types.
using System; using System.Reflection; namespace NuGet { public static class ExceptionUtility { public static Exception Unwrap(Exception exception) { if (exception == null) { throw new ArgumentNullException("exception"); } if (exception.InnerE...
using System; using System.Reflection; namespace NuGet { public static class ExceptionUtility { public static Exception Unwrap(Exception exception) { if (exception == null) { throw new ArgumentNullException("exception"); } if (exception.InnerE...
Return value in Dump ext. method.
using System.ComponentModel; using System.Text; using SharpLab.Runtime.Internal; public static class SharpLabObjectExtensions { // LinqPad/etc compatibility only [EditorBrowsable(EditorBrowsableState.Never)] public static T Dump<T>(this T value) => value.Inspect(title: "Dump"); publ...
using System.ComponentModel; using System.Text; using SharpLab.Runtime.Internal; public static class SharpLabObjectExtensions { // LinqPad/etc compatibility only [EditorBrowsable(EditorBrowsableState.Never)] public static T Dump<T>(this T value) { value.Inspect(title: "Dump"); retu...
Allow overriding of locomotion implementation
using Alensia.Core.Input; using UnityEngine.Assertions; namespace Alensia.Core.Locomotion { public abstract class LocomotionControl<T> : Control.Control, ILocomotionControl<T> where T : class, ILocomotion { public T Locomotion { get; } public override bool Valid => base.Valid && Locom...
using Alensia.Core.Input; namespace Alensia.Core.Locomotion { public abstract class LocomotionControl<T> : Control.Control, ILocomotionControl<T> where T : class, ILocomotion { public abstract T Locomotion { get; } public override bool Valid => base.Valid && Locomotion != null && Loco...
Implement Map Point Tool Mouse events
using System; using System.Collections.Generic; using System.Text; using System.IO; namespace ArcMapAddinVisibility { public class MapPointTool : ESRI.ArcGIS.Desktop.AddIns.Tool { public MapPointTool() { } protected override void OnUpdate() { Enabled = ArcM...
using System; using System.Collections.Generic; using System.Text; using System.IO; using ESRI.ArcGIS.Carto; using ESRI.ArcGIS.Geometry; using ArcMapAddinVisibility.Helpers; namespace ArcMapAddinVisibility { public class MapPointTool : ESRI.ArcGIS.Desktop.AddIns.Tool { public MapPointTool() { ...
Fix for filename lowercase matches - to fix missing .PNG images
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DocFunctions.Lib.Models.Github { public abstract class AbstractAction { public string FullFilename { get; set; } public string CommitSha { get; set; } ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DocFunctions.Lib.Models.Github { public abstract class AbstractAction { public string FullFilename { get; set; } public string CommitSha { get; set; } ...
Apply fixes to duplicate file
// Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. namespace PInvoke { using System; /// <content> /// Contains the <see cref="FindF...
// Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. namespace PInvoke { using System; /// <content> /// Contains the <see cref="FindF...
Disable test failing on VS2015
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // namespace Test { using System; struct AA { static float[] m_afStatic1; static void Main1() { ulong[] param2 = new u...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // namespace Test { using System; struct AA { static float[] m_afStatic1; static void Main1() { ulong[] param2 = new u...
Add RSS Infomation for Andreas Bittner
using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; using Firehose.Web.Infrastructure; namespace Firehose.Web.Authors { public class AndreasBittner : IAmACommunityMember { public string FirstName => "Andreas"; public string ...
using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; using Firehose.Web.Infrastructure; namespace Firehose.Web.Authors { public class AndreasBittner : IAmACommunityMember { public string FirstName => "Andreas"; public string ...
Set UI exe assembly title
using System.Runtime.InteropServices; using System.Windows; // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] //In order to b...
using System.Reflection; using System.Runtime.InteropServices; using System.Windows; // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(...
Enable TLS 1.1 and 1.2 and disable SSLv3 for external calls.
using StackExchange.Elastic; namespace StackExchange.Opserver { public class OpserverCore { // Initializes various bits in OpserverCore like exception logging and such so that projects using the core need not load up all references to do so. public static void Init() { try ...
using System.Net; using StackExchange.Elastic; namespace StackExchange.Opserver { public class OpserverCore { // Initializes various bits in OpserverCore like exception logging and such so that projects using the core need not load up all references to do so. public static void Init() ...
Implement unconditional toggle of the first item when a toolstrip menu is initialized.
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace Mirage.Urbanization.WinForms { public abstract class ToolstripMenuInitializer<TOption> where TOption : IToolstripMenuOption { protected ToolstripMenuInitializer(ToolStripMenuItem targetToop...
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace Mirage.Urbanization.WinForms { public abstract class ToolstripMenuInitializer<TOption> where TOption : IToolstripMenuOption { protected ToolstripMenuInitializer(ToolStripMenuItem targetToop...
Raise store mocking project version.
using System.Reflection; [assembly: AssemblyTitle("Affecto.IdentityManagement.Store.Mocking")] [assembly: AssemblyDescription("Identity Management store layer using Effort mock database.")] [assembly: AssemblyProduct("Affecto.IdentityManagement")] [assembly: AssemblyCompany("Affecto")] [assembly: AssemblyVersion("8....
using System.Reflection; [assembly: AssemblyTitle("Affecto.IdentityManagement.Store.Mocking")] [assembly: AssemblyDescription("Identity Management store layer using Effort mock database.")] [assembly: AssemblyProduct("Affecto.IdentityManagement")] [assembly: AssemblyCompany("Affecto")] [assembly: AssemblyVersion("8....
Debug Util: Wraps log error.
using System.Diagnostics; using UnityEngine; namespace Finegamedesign.Utils { /// <summary> /// Wrapper of logging. /// Conditionally compiles if in debug mode or editor. /// </summary> public sealed class DebugUtil { [Conditional("DEBUG")] [Conditional("UNITY_EDITOR")] ...
using System.Diagnostics; using UnityEngine; namespace Finegamedesign.Utils { /// <summary> /// Wrapper of logging. /// Conditionally compiles if in debug mode or editor. /// </summary> public sealed class DebugUtil { [Conditional("DEBUG")] [Conditional("UNITY_EDITOR")] ...
Update file version to 3.0.4.0
using System; namespace Xamarin.Forms.GoogleMaps.Internals { internal class ProductInformation { public const string Author = "amay077"; public const string Name = "Xamarin.Forms.GoogleMaps"; public const string Copyright = "Copyright © amay077. 2016 - 2018"; public const string...
using System; namespace Xamarin.Forms.GoogleMaps.Internals { internal class ProductInformation { public const string Author = "amay077"; public const string Name = "Xamarin.Forms.GoogleMaps"; public const string Copyright = "Copyright © amay077. 2016 - 2018"; public const string...
Add optional Url and ShowOnCashBasisReports fields for MJs
using System; using System.Xml.Serialization; namespace XeroApi.Model { public class ManualJournal : ModelBase { [ItemUpdatedDate] public DateTime? UpdatedDateUTC { get; set; } [ItemId] public Guid ManualJournalID { get; set; } public DateTime? Date { get; set; } ...
using System; using System.Xml.Serialization; namespace XeroApi.Model { public class ManualJournal : ModelBase { [ItemUpdatedDate] public DateTime? UpdatedDateUTC { get; set; } [ItemId] public Guid ManualJournalID { get; set; } public DateTime? Date { get; set; } ...
Fix IsAppContainerProcess for Windows 7
// 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 System.ComponentModel; using System.Security; using System.Security.Principal; namespace System { interna...
// 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 System.ComponentModel; using System.Security; using System.Security.Principal; namespace System { interna...
Use standard syntax to build propfind requests
using System.Linq; using System.Xml.Linq; using WebDav.Helpers; namespace WebDav.Request { internal static class PropfindRequestBuilder { public static string BuildRequestBody(string[] customProperties) { XNamespace webDavNs = "DAV:"; var doc = new XDocument(new XDeclar...
using System.Linq; using System.Xml.Linq; using WebDav.Helpers; namespace WebDav.Request { internal static class PropfindRequestBuilder { public static string BuildRequestBody(string[] customProperties) { var doc = new XDocument(new XDeclaration("1.0", "utf-8", null)); ...
Add TilePOI to list of tile names
using MaterialColor.Common.Data; using System.Collections.Generic; using UnityEngine; namespace MaterialColor.Core { public static class State { public static Dictionary<string, Color32> TypeColorOffsets = new Dictionary<string, Color32>(); public static Dictionary<SimHashes, ElementColorInfo>...
using MaterialColor.Common.Data; using System.Collections.Generic; using UnityEngine; namespace MaterialColor.Core { public static class State { public static Dictionary<string, Color32> TypeColorOffsets = new Dictionary<string, Color32>(); public static Dictionary<SimHashes, ElementColorInfo>...
Add keywords to make finding audio offset adjustments easier in settings
// 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 osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Localisation; using osu.Game.Configuration; using osu.Game.Graphics.UserInterface; nam...
// 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.Collections.Generic; using System.Linq; using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Localisation; using osu.Game.Confi...