/// <summary>Converts the specified <see cref="T:System.String" /> into a <see cref="T:System.Runtime.Remoting.Metadata.W3cXsd2001.SoapQName" /> object.</summary> /// <returns>A <see cref="T:System.Runtime.Remoting.Metadata.W3cXsd2001.SoapQName" /> object that is obtained from <paramref name="value" />.</returns> /// <param name="value">The <see cref="T:System.String" /> to convert. </param> public static SoapQName Parse(string value) { SoapQName soapQName = new SoapQName(); int num = value.IndexOf(':'); if (num != -1) { soapQName.Key = value.Substring(0, num); soapQName.Name = value.Substring(num + 1); } else { soapQName.Name = value; } return(soapQName); }
public static SoapQName Parse(string value) { SoapQName res = new SoapQName(); int i = value.IndexOf(':'); if (i != -1) { res.Key = value.Substring(0, i); res.Name = value.Substring(i + 1); } else { res.Name = value; } return(res); }
public static SoapQName Parse (string value) { SoapQName res = new SoapQName (); int i = value.IndexOf (':'); if (i != -1) { res.Key = value.Substring (0,i); res.Name = value.Substring (i+1); } else res.Name = value; return res; }