// Load a booster from a string. Note that I can't use a ctr as would have the same signature as above. public static Booster FromString(string model) { Check.NonNull(model, nameof(model)); var handle = IntPtr.Zero; var numIteration = 0; PInvokeException.Check(PInvoke.BoosterLoadModelFromString(model, ref numIteration, ref handle), nameof(PInvoke.BoosterLoadModelFromString)); return new Booster(handle, numIteration); }