Skip to content

Instantly share code, notes, and snippets.

public class DynamicJsonConverter : JsonConverter<object>
{
public override object Read(ref Utf8JsonReader reader,
Type typeToConvert,
JsonSerializerOptions options)
{
if (reader.TokenType == JsonTokenType.StartObject)
{
using JsonDocument documentV = JsonDocument.ParseValue(ref reader);
return ReadObject(documentV.RootElement);
@Orbittman
Orbittman / .bash_profile
Last active January 12, 2021 09:06
My bash profile
__linux_git_complete_file=/usr/share/bash-completion/completions/git
__windows_git_complete_file=/etc/bash_completion.git
__host_os_type=$(uname -sm)
case ${__host_os_type:0:5} in
Linux)
__current_git_complete_file=$__linux_git_complete_file
;;
MINGW)
__current_git_complete_file=$__windows_git_complete_file

Keybase proof

I hereby claim:

  • I am orbittman on github.
  • I am timbarton (https://keybase.io/timbarton) on keybase.
  • I have a public key whose fingerprint is B946 7D41 5C8B C525 E1AE 1860 D752 BE1C 0C81 5093

To claim this, I am signing this object: