Inheritance: ISoapXsd
Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
		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;
		}