コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

2020-06-25から1日間の記事一覧

【ReSharper】Dictionary.TryGetValue の if 文を簡単に記述できる Source Template

ソースコード using JetBrains.Annotations; using System.Collections.Generic; public static class SourceTemplates { [SourceTemplate] [Macro( Target = "key" )] [Macro( Target = "value" )] public static void tryGetValue<TKey, TValue>( this Dictionary<TKey, TValue> self )</tkey,></tkey,>…