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 8159779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:02:13+00:00 2026-06-06T18:02:13+00:00

My problem is, when I want to convert (result[i].JobOrder) to int.I have a string

  • 0

My problem is, when I want to convert (result[i].JobOrder) to int.I have a string 120100 in (result[i].JobOrder). In return I get not integer but something like “0x0001d524”. And I could not understand why.

for (int i = 0; i < result.Count; i++)
{
    if (Convert.ToInt32(result[i].JobOrder) > maxJobOrder)
    {
        maxJobOrder = Convert.ToInt32(result[i].JobOrder);
    }
}
  • 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-06-06T18:02:16+00:00Added an answer on June 6, 2026 at 6:02 pm

    Your code works, but you have set your debugger to display integers in hexadecimal. The value 0x0001d524 is the hexadecimal representation of the integer 120100.

    This is not an error in the program, but a configuration option for your IDE. If you use Visual Studio, you can change this setting by pressing the “Hex” button in the “Debug” toolbar.

    Hex button


    As an aside, if you are using C# 3 or newer you can simplify your code by using the Max method to find the maximum instead of looping:

    maxJobOrder = result.Max(x => int.Parse(x.JobOrder));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have string like this 0100110011001 I want to convert it to byte array
I have a task that returns a value, but I want to convert that
I have a problem when I convert an object to XML. The result is
I have some float values I want to convert to a string, I want
Have problem with linq expressions. I want to get from db some data ordered
I want to convert a code from perl to c++, and my problem is
Problem: I want to list n number of games from each genre (order not
I have the following problem. I have an array of bytes that I want
we have a project written in Delphi that we want to convert to C#.
i have mathematical problem which I'm unable to convert to PHP or explain differently.

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.