public bool TryGet(string name, out IXDrawingView ent) { ent = GetDrawingViews().FirstOrDefault( x => string.Equals(x.Name, name, StringComparison.CurrentCultureIgnoreCase)); return(ent != null); }
public bool TryGet(string name, out IXDrawingView ent) { var view = GetSwViews().FirstOrDefault( x => string.Equals(x.Name, name, StringComparison.CurrentCultureIgnoreCase)); if (view != null) { ent = m_Draw.CreateObjectFromDispatch <SwDrawingView>(view); } else { ent = null; } return(ent != null); }