This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "test": "test" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class CompositeContractResolver : IContractResolver, IEnumerable<IContractResolver> | |
| { | |
| private readonly IList<IContractResolver> _contractResolvers = new List<IContractResolver>(); | |
| public JsonContract ResolveContract(Type type) | |
| { | |
| return | |
| _contractResolvers | |
| .Select(x => x.ResolveContract(type)) | |
| .FirstOrDefault(Conditional.IsNotNull); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Benchmark] | |
| public static void SetPropertiesOnClassic() | |
| { | |
| var myClassic = new ClassicClass(); | |
| myClassic.Meme = 42; | |
| myClassic.Name = "Memetic"; | |
| } | |
| [Benchmark] | |
| public static void GetPropertiesOnClassic() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function search() { | |
| if (location.href.indexOf("downloadmixcloud") != -1) { | |
| location.href = "http://www.download-mixcloud.com#" + $("#track").val(); | |
| return | |
| } | |
| var seachUrl = $("#track").val(); | |
| var UI = $("#result").empty(); | |
| if (seachUrl == "") { | |
| $("<div>Please enter the mixcloud song link</div>").appendTo(UI); | |
| return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Threading.Tasks; | |
| using Newtonsoft.Json; | |
| using Newtonsoft.Json.Serialization; | |
| using TuneDesktop.Models; | |
| namespace TuneDesktop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class NoteManager | |
| { | |
| public string CreateNoteFileExtension(NoteColor color) | |
| => $".xesignnote_/*{color.ToString()}*/"; | |
| /// <summary> | |
| /// AppDirectory\Configuration\... | |
| /// </summary> | |
| public string GetPathForNoteFile(string file) | |
| { |