DevTreks.Data/Helpers/LinqHelpers.cs
/// <summary>
/// Filters the linkedViews list by the isselectedaddin property = true
/// </summary>
Filters the linkedViews list by the isselectedaddin property = true
Filters the linkedViews list by the isselectedaddin property = true
public static ContentURI GetLinkedViewIsSelectedAddIn(ContentURI uri)
        {
            ContentURI oLinkedView = null;
            if (uri.URIDataManager.LinkedView != null)
            {
                foreach (var linkedviewparent in uri.URIDataManager.LinkedView)
                {
                    foreach (ContentURI linkedview in linkedviewparent)
                    {
                        if (linkedview.URIDataManager.IsSelectedLinkedAddIn == true)
                        {
                            return linkedview;
                        }
                    }
                }
            }
            return oLinkedView;
        }
public static ContentURI GetLinkedViewIsSelectedAddIn ( ContentURI uri ) { ContentURI oLinkedView = null ; if ( uri . URIDataManager . LinkedView != null ) { foreach ( var linkedviewparent in uri . URIDataManager . LinkedView ) { foreach ( ContentURI linkedview in linkedviewparent ) { if ( linkedview . URIDataManager . IsSelectedLinkedAddIn == true ) { return linkedview ; } } } } return oLinkedView ; }
Filters the linkedViews list by the isselectedaddin property = true
Filters the linkedViews list by the isselectedaddin property = true
//refactor with query syntax
uri
ContentURI