Catel.MVVM.Views.ViewManager.GetFirstOrDefaultInstance C# (CSharp) Method

GetFirstOrDefaultInstance() public method

Gets the first or default instance of the specified view type.
The is not of type .
public GetFirstOrDefaultInstance ( Type viewType ) : IView
viewType System.Type Type of the view.
return IView
        public IView GetFirstOrDefaultInstance(Type viewType)
        {
            Argument.IsOfType("viewType", viewType, typeof (IView));

            return ActiveViews.FirstOrDefault(view => ObjectHelper.AreEqual(view.GetType(), viewType));
        }
        #endregion