public static bool Parse(SeekableReader r, out NearCompanion near) { Unit u; if (Unit.Parse(r, out u)) { near = new NearCompanion(); near.Companion = u; return(true); } near = null; return(false); }
public static bool Parse(SeekableReader r, out NearCompanion?near) { if (Unit.Parse(r, out Unit? u)) { near = new NearCompanion() { Companion = u }; return(true); } near = null; return(false); }
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); }
public static bool Parse(TextReader r, out NearCompanion near) { Unit u; if (Unit.Parse(r, out u)) { near = new NearCompanion(); near.Companion = u; return true; } near = null; return false; }