LanguagePrimitives.TryConvertTo is implemented by wrapping LanguagePrimitives.ConvertTo in exception handling, and return false if it failed.
This can be improved upon by using the ConversionData return from FigureConversion by checking if the Rank is ConversionRank.None before we try to call the conversion.
By doing an early exit, return we avoid the exceptions that are always thrown when there are no available conversions.
LanguagePrimitives.TryConvertTois implemented by wrappingLanguagePrimitives.ConvertToin exception handling, and return false if it failed.This can be improved upon by using the
ConversionDatareturn fromFigureConversionby checking if theRankisConversionRank.Nonebefore we try to call the conversion.By doing an early exit, return we avoid the exceptions that are always thrown when there are no available conversions.