Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6755439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:24:01+00:00 2026-05-26T13:24:01+00:00

<Page> <NTrans> <Testing testsequence = 1 skew = 3 /> </Testing> </NTrans> </Page> I

  • 0
<Page>
     <NTrans>
          <Testing testsequence = 1 skew = 3 />
          </Testing>
     </NTrans>
</Page>

I want to pull the testsequence and skew using a a var in c#. How would I go about this? Right now I have:

var _img = xDoc.Element("Page").Descendants("Testing").Attributes("testsequence").ToList();

Which does not work. It says IEnumerable does not contain a definition for ToList

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:24:01+00:00Added an answer on May 26, 2026 at 1:24 pm

    The ToList() method is an Extension method of IEnumerable. Extension methods were introduced in C# 3.0, so if your tags are correct and you are using C# 3.0, this should be fine.

    You may need to import the namespace that contains the ToList extension method.

    Put this code with the rest of your using statements at the top of your code file:

    using System.Linq
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My page's URL is like this: http://www.mydomain.com/directory/thisismy_page.html Using JavaScript, I want to pull out
Page A has iframe B. In iframe B, I have a var store a
This page doesn't explains which client credentials we have to use. https://developers.facebook.com/docs/authentication/applications/ https://graph.facebook.com/oauth/access_token? client_id=YOUR_APP_ID
this page , which worked fine for the last couple of years, now displays
This page about storage quotas says to use the mscorcfg tool. BUT the mscorcfg
The page here http://www.chromium.org/developers/testing/pyauto#TOC-Running-PyAuto-using-prebuilt-binaries suggests using the files here http://commondatastorage.googleapis.com/chromium-browser-continuous/index.html?path=Win/140227/ to install it yourself,
page 1 and page 2. Now for page 1 I want to load page1.js
Page has menu items that would replace a 'div id=foo_(current menu item)' with 'div
page contents: aa<b>1;2'3</b>hh<b>aaa</b>.. .<b>bbb</b> blabla.. i want to get result: 1;2'3aaabbb match tag is
My page consists of the following code: @{ var db= Database.Open(Surgestuff); var sqlQ =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.