public bool TryGet(string name, out IXBody ent) { ent = GetBodies().FirstOrDefault( b => string.Equals(b.Name, name, StringComparison.CurrentCultureIgnoreCase)); return(ent != null); }
IXBody[] IXBody.Common(IXBody other) => Common((ISwBody)other);
IXBody[] IXBody.Substract(IXBody other) => Substract((ISwBody)other);
IXBody IXBody.Add(IXBody other) => Add((ISwBody)other);
public void SerializeBody(IXBody body, Stream stream) { var comStr = new StreamWrapper(stream); ((SwBody)body).Body.Save(comStr); }