static public string OreTypeString(this OverviewEntry OverviewEntry)
		{
			var Type = OverviewEntry?.ColumnTypeValue();
			var Name = OverviewEntry?.ColumnNameValue();

			if (null == Type || null == Name)
			{
				return null;
			}

			var NameMatch = Regex.Match(Name, "Asteroid.*" + Type, RegexOptions.IgnoreCase);

			if (!NameMatch.Success)
			{
				return null;
			}

			return Type;
		}
Example #2
0
		static public string OreTypeString(this IOverviewEntry overviewEntry) =>
			(overviewEntry?.ColumnNameValue().RegexMatchSuccessIgnoreCase("Asteroid.*") ?? false) ?
			overviewEntry?.ColumnTypeValue() : null;