Skip to content

Instantly share code, notes, and snippets.

View af4jm's full-sized avatar

John Meyer af4jm

View GitHub Profile
@af4jm
af4jm / motorsports.circuits.md
Last active July 14, 2023 23:38
a file that consistently exhibits the new behavior I described in https://github.com/microsoft/vscode/issues/175732#issuecomment-1636558065 (this is a page copy-pasted from my PKB, so relative links will be 404s here)
@af4jm
af4jm / SmartEnumTypeConverter.cs
Last active August 1, 2018 16:04
make AutoMapper IDataReader conversion work with SmartEnum
namespace MyCompany.MyApp.Core.Enums
{
using Ardalis.SmartEnum;
using AutoMapper;
public abstract class SmartEnumTypeConverter<TValue, TEnum> : ITypeConverter<TValue, TEnum>
where TEnum : SmartEnum<TEnum, TValue>
{
protected SmartEnumTypeConverter()
{