private string GetXmlAttribute(IntegrationServiceMethodParameterDefinition parameter) { if (parameter.AllowMultiple && !parameter.SerializeAsSequence) return string.Format("[System.Xml.Serialization.XmlArrayAttribute(Namespace = {0}, IsNullable = {1})]", parameter.Namespace.ToLiteral(), parameter.IsNullable.ToLiteral()); return string.Format("[System.Xml.Serialization.XmlElementAttribute(Namespace = {0}, IsNullable = {1})]", parameter.Namespace.ToLiteral(), parameter.IsNullable.ToLiteral()); }
/// <summary> /// Gets the type of the c sharp. /// </summary> /// <param name="parameter">The parameter.</param> /// <returns>System.String.</returns> private string GetCSharpType(IntegrationServiceMethodParameterDefinition parameter) { var fullName = parameter.Type.FullName; if (parameter.Type.IsValueType && parameter.IsNullable) fullName = fullName + "?"; if (parameter.AllowMultiple) fullName = fullName + "[]"; return fullName; }