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 ShouldSerializeContractResolver : DefaultContractResolver | |
| { | |
| public static readonly ShouldSerializeContractResolver Instance = new ShouldSerializeContractResolver(); | |
| protected override JsonProperty CreateProperty(MemberInfo member, MemberSerialization memberSerialization) | |
| { | |
| JsonProperty property = base.CreateProperty(member, memberSerialization); | |
| if (property.PropertyType == typeof(string)) | |
| return property; |
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
| $id = get-random | |
| $maxSizeMB = 500 | |
| $code = @" | |
| using System; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Collections.Generic; | |
| namespace HelloWorld |
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
| [editor] | |
| true-color = true | |
| color-modes = true | |
| [keys.insert] | |
| C-s = ["normal_mode", ":w", "insert_mode"] | |
| C-q = ":quit!" | |
| C-S-up = "extend_line_up" | |
| S-up = ["extend_line_up"] | |
| C-S-down = ["extend_line_down"] |
OlderNewer