public void SetFromXElement(XElement xe) { InputFile = xe.Element("InputFile").Value; TimeOut = xe.TryGetAttributeInt32Value("TimeOut").Value; Platform = xe.TryGetAttributeEnum<ePlatform>("Platform"); Architecture = xe.TryGetAttributeEnum<eArchitecture>("Architecture"); }