Skip to content

Instantly share code, notes, and snippets.

View artemious7's full-sized avatar

Artem artemious7

  • London, UK
  • 01:41 (UTC)
View GitHub Profile
@artemious7
artemious7 / Serilog.LoggerStringInterpolationExtensions.cs
Last active May 26, 2024 08:56
C# Serilog: how to log with String interpolation and keep argument names in message templates
#region MIT License
//Copyright(c) 2020 Artemious
// https://gist.github.com/artemious7/c7d9856e128a8b2e9e92d096ca0e69ee/
// https://stackoverflow.com/questions/61816775/c-sharp-serilog-how-to-log-with-string-interpolation-and-keep-argument-names-in/61816776#61816776
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//copies of the Software, and to permit persons to whom the Software is
@artemious7
artemious7 / WebViewRenderer_fix.cs
Last active February 1, 2020 18:30
Xamarin.Forms UWP WebViewRenderer bug fix (issue #6679)
// for more info see https://stackoverflow.com/a/60019880/1830814
// this is a fix for Xamarin.Forms v4.4.0-sr3 and prior versions
using System;
using System.ComponentModel;
using Windows.UI.Core;
using Windows.UI.Xaml.Controls;
using Xamarin.Forms.Internals;
using static System.String;
using Xamarin.Forms.PlatformConfiguration.WindowsSpecific;
using System.Threading.Tasks;
@artemious7
artemious7 / AdaptiveCard.Cloning.cs
Last active July 11, 2019 13:35
adaptive card v1.0 cloning
using System.Linq;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace AdaptiveCards.Cloning
{
public class MemberwiseCloneFactory : ICloneFactory
{
public IClone ToClone(AdaptiveTypedElement element)