/// <summary> /// 返回数组格式的描述信息; /// </summary> internal string[] Convert() { if (parameters == null) { return(null); } else { string[] array = new string[parameters.Count * 2]; for (int i = 0; i < parameters.Count; i++) { ParameterDesc desc = parameters[i]; array[2 * i] = desc.Type; array[2 * i + 1] = desc.Message; } return(array); } }
/// <summary> /// 添加描述到下一个参数; /// </summary> /// <param name="type">参数类型</param> /// <param name="message">参数描述</param> private void Add(string type, string message) { ParameterDesc desc = new ParameterDesc(type, message); parameters.Add(desc); }
/// <summary> /// 添加描述到下一个参数; /// </summary> private void Add(ParameterDesc desc) { parameters.Add(desc); }