public static void FindReplace(this IBaseMessage pInMsg, string xPath, string replacement, string find) { var replacementMap = new Dictionary <string, KeyValuePair <string, string> > { [xPath] = new KeyValuePair <string, string>(find, replacement) }; pInMsg.FindReplaceMultiple(replacementMap); }