SenseNet.ContentRepository.Storage.VersionNumber.Parse C# (CSharp) 메소드

Parse() 공개 정적인 메소드

Parses the specified version string. Valid format is the following: Optional prefix: "V" or "v", major number, ".", minor number. For example: V1.0, 2.3, v12.3456
public static Parse ( string versionStr ) : VersionNumber
versionStr string The version string.
리턴 VersionNumber
		public static VersionNumber Parse(string versionStr)
		{
			if (versionStr == null)
				throw new ArgumentNullException("versionStr");
			string[] sa = versionStr.ToLower(CultureInfo.CurrentCulture).Replace("version", "").Replace("v", "").Split('.');
			if (sa.Length != 3)
				throw new ArgumentException(SR.Exceptions.VersionNumber.Msg_InvalidVersionFormat, "versionStr");
			return new VersionNumber(Convert.ToInt32(sa[0], CultureInfo.CurrentCulture), Convert.ToInt32(sa[1], CultureInfo.CurrentCulture), GetVersionStatus(sa[2]));
		}
        /// <summary>