public static bool Parse(SeekableReader r, out Companion companion) { if (NearCompanion.Parse(r, out NearCompanion nc)) { companion = nc; return(true); } #if EXTENDED_SYSTEM_PARSING if (FarCompanion.Parse(r, out FarCompanion fc)) { companion = fc; return(true); } #endif companion = null; return(false); }
public static bool Parse(TextReader r, out Companion companion) { NearCompanion nc; if (NearCompanion.Parse(r, out nc)) { companion = nc; return(true); } #if EXTENDED_SYSTEM_PARSING FarCompanion fc; if (FarCompanion.Parse(r, out fc)) { companion = fc; return(true); } #endif companion = null; return(false); }