상속: ISoapXsd
예제 #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);
        }
예제 #2
0
파일: SoapQName.cs 프로젝트: raj581/Marvin
        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);
        }
예제 #3
0
파일: SoapQName.cs 프로젝트: runefs/Marvin
		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;
		}