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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:05:26+00:00 2026-06-02T03:05:26+00:00

In one section of my application, I use type generated from xsd scheme –

  • 0

In one section of my application, I use type generated from xsd scheme – I have 2 version of schemas 2008 and 2009 – type I use is DatumType – in every scheme this type contain the same properties – they are exact, except namespaces.
Is there any way how to cast DatumType (2008) to DatumType (2009) so I can work in my application only with one type, instead of two?

I am working with c# and win forms, thanks!

  • 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-02T03:05:27+00:00Added an answer on June 2, 2026 at 3:05 am

    No, there is no way to cast one to the other, because these are two unrelated types, as far as the compiler knows.

    If the fields of the target type are assignable, you can write a short method that uses reflection to copy the fields.

    You could also build code that saves objects of the source type to XML, and reads that XML into the objects of the target type. This is slightly more fragile, because it relies on the presence of identical fields and the fact that they are converted to XML in the same way.

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

Sidebar

Related Questions

I want to use one or many script languages in my Java application. From
I have a tabBar in my application. In one of the section i have
I have been trying to get this one section of my UI to immediatly
I have 2 sections within a table view and I have loaded one section
Does any one have tried to customize default section index displayed in UITableView. I
I'm converting a small PHP application to Django. One section has a long query
I have an application with one main thread and N worker threads. At some
Is it possible to have a ViewController use one nib, while my ViewController's subclass
For my cross-platform application I have started to use Boost, but I can't understand
In one of my web application in php there is a contest section .

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.