public string FormatMessage(string res, IList<string> args) { string[] arr = new string[args.Count]; for (int i = 0; i < arr.Length; i++) arr[i] = args[i]; return XslTransformException.CreateMessage(res, arr); }