Ejemplo n.º 1
0
        public void CollectionPaging_Manual()
        {
            AllianceCollection allianceLinks = crest.GetRoot().Query(r => r.Alliances);

            AllianceCollection.Alliance alliance = allianceLinks.Items.SingleOrDefault(f => f.Id == 99000738);
            while (alliance == null && allianceLinks.Next != null)
            {
                allianceLinks = allianceLinks.Query(f => f.Next);
                alliance      = allianceLinks.Items.SingleOrDefault(f => f.Id == 99000738);
            }
            Debug.WriteLine(allianceLinks.Query(f => alliance).Name);
        }
Ejemplo n.º 2
0
        public void CollectionPaging_Manual_NullReference()
        {
            AllianceCollection allianceLinks = crest.GetRoot().Query(r => r.Alliances);

            AllianceCollection.Alliance alliance = allianceLinks.Items.SingleOrDefault(f => f.Id == 99000738);
            alliance = null;
            allianceLinks.Query(f => alliance);
        }