internal void UpdateStrings(Dictionary <string, string> stringMap) { var keys = new List <int>(this.values.Keys); foreach (var key in keys) { var value = this.values[key]; if (EtwProvider.Replace(ref value, stringMap)) { value = EtwEvent.MakeCamelCase(value); value = Regex.Replace(value, @"[^\w\d_]", ""); if (value.Length == 0) { value = "_"; } this.values[key] = value; } } }
internal void UpdateStrings(Dictionary <string, string> stringMap) { var message = this.Message; if (EtwProvider.Replace(ref message, stringMap)) { this.Message = message; } if (this.Fields != null) { foreach (var parameter in this.Fields) { if (parameter.Enumeration != null) { parameter.Enumeration.UpdateStrings(stringMap); } } } }