private void AddMethodToConverted(BoundTypeDefinitionWithMethodsMask_I convertedTypeWithMethods, ConvertedMethod methodEntry) { if (!convertedTypeWithMethods.Methods.ByName.TryGetValue(methodEntry.Name, out List <SemanticMethodMask_I> methodList)) { methodList = new List <SemanticMethodMask_I>(); convertedTypeWithMethods.Methods.ByName.Add(methodEntry.Name, methodList); } methodList.Add(methodEntry); }
public static void Main() { // both work fine for taking methods, lambdas, etc. Func <string, string> convertedMethod = s => s + ", Hello!"; ConvertedMethod convertedMethod2 = s => s + ", Hello!"; }