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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:06:58+00:00 2026-05-11T10:06:58+00:00

As discussed in Does the order of fields in C# matter? , the order

  • 0

As discussed in Does the order of fields in C# matter?, the order of serializable properties affects, among other things, XmlSerializer output.

But if fields are in 2 files (using partial classes), does anyone know what in fact controls the resulting order? That is, which file’s properties comes first?

(Background: I ask this because I’ve run into a scenario where one of the 2 files is auto-generated from xsd, and the other is manually edited. The test output is different on developer boxes vs. our scripted build box. Presumably this is a side effect of the several differences in the timing and history of the xsd->C# step in the 2 environments. Various ways to fix, but I’d like to understand the compilation process a little better if possible.)

  • 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. 2026-05-11T10:06:59+00:00Added an answer on May 11, 2026 at 10:06 am

    Nothing is guaranteed per C# spec.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

as discussed in an other thread How to avoid cmd.exe interpreting shell special characters
Sorry if this has been discussed before, but could nt find a suitable answer
I found something similar discussed, but it was while .NET 4.0 RC. As for
I know this has been discussed ad-nauseum but I just don't get some of
What search order does the Java compiler use to resolve Foo in the following
Does Grails know anything about sub-domains (i.e. subdomain.domain.com) ? I don't see it discussed
I understand this has been discussed before but since this post in late 2010
I know that this is discussed a lot but I don't find solution of
As discussed elsewhere, NSTabView does not have a setBackgroundColor method and subclassing NSTabView and
I'm sorry if that question was already discussed, but I didn't find exactely what

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.