ソースコード
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 ) { /*$ if ( self.TryGetValue( key, out var value ) ) { $END$ }*/ } }