private bool TryParseResource(string text) { Match match = Regex.Match(text, "^<(.+)>$", RegexOptions.IgnoreCase); if (match.Success) { Value = VesselUtils.GetResource(executionContext.Vessel, match.Groups[1].Value); return(true); } return(false); }