private void SetImpementationLevel(string implementationLevel) { var version = ImplementationLevel.Remove(ImplementationLevel.IndexOf(';')); var mappingLevel = ImplementationLevel.Substring(ImplementationLevel.IndexOf(';') + 1); int vInt; int mInt; if (int.TryParse(version, out vInt) && int.TryParse(mappingLevel, out mInt)) { _fileDescription.IMPLEMTATION_LEVEL = string.Format("{0};{1}", vInt, mInt); } else { throw new FormatException(); } }
private int GetImplementationMappingLevel() { var version = ImplementationLevel.Substring(ImplementationLevel.IndexOf(';') + 1); return(int.Parse(version)); }