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

  • Home
  • SEARCH
  • 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 122037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:03:55+00:00 2026-05-11T04:03:55+00:00

I am doing the exact same thing in two classes, and in one the

  • 0

I am doing the exact same thing in two classes, and in one the compiler is allowing it just fine, but the other one is giving me an error. Why the double standard? There’s 15 classes using this same pattern, but only one refuses to compile, saying the following error:

‘AWWAInvoicingXML.AwwaTransmissionInfo’ does not implement interface member ‘AWWAInvoicingXML.IXmlSerializable.fromXML(System.Xml.XmlDocumentFragment)’. ‘AWWAInvoicingXML.AwwaTransmissionInfo.fromXML(System.Xml.XmlDocumentFragment)’ is either static, not public, or has the wrong return type.

Here is my source code… if I comment out the AwwaTransmissionInfo class, the rest of the file compiles just fine, so I know it’s not one of those where the compiler is just dying after the first error. And I know, I know, there’s built-in stuff for what I’m trying to do here, but just assume I actually know what I’m doing and skipped the built-in serializers for a reason 🙂

    public interface IXmlSerializable {     //if this interface is implemented, the object can be serialized to XML     string toXML();     IXmlSerializable fromXML(XmlDocumentFragment inXml); }  public class AwwaTransmissionInfo : IXmlSerializable {      public DateTime DateTime = DateTime.Now;     public int ItemCount;      public string toXML() {         throw new Exception('The method or operation is not implemented.');     }      public AwwaTransmissionInfo fromXML(XmlDocumentFragment inXml) {         throw new Exception('The method or operation is not implemented.');     }  }  public class CEmail {     public string Email = '';      public string toXML() {         throw new System.Exception('The method or operation is not implemented.');     }      public CEmail fromXML(XmlDocumentFragment inXml) {         throw new System.Exception('The method or operation is not implemented.');     } } 
  • 1 1 Answer
  • 3 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-11T04:03:56+00:00Added an answer on May 11, 2026 at 4:03 am

    The reason the CEmail class was compiling fine is because it was not marked as implementing the interface. When I marked it as such, I got the same error as the other class. The following is how it has to be… I am pretty stupid for not noticing that. We are under a lot of pressure here right now and I can’t believe I stared at this code for like an hour before I posted a question, and it was something so simple… it always is I guess 🙂

        public interface IXmlSerializable {     //if this interface is implemented, the object can be serialized to XML     string toXML();     IXmlSerializable fromXML(XmlDocumentFragment inXml); }  public class AwwaTransmissionInfo : IXmlSerializable {      public DateTime DateTime = DateTime.Now;     public int ItemCount;      public string toXML() {         throw new Exception('The method or operation is not implemented.');     }      public IXmlSerializable fromXML(XmlDocumentFragment inXml) {         throw new Exception('The method or operation is not implemented.');     }  }  public class CEmail : **IXmlSerializable** {     public string Email = '';      public string toXML() {         throw new System.Exception('The method or operation is not implemented.');     }      public IXmlSerializable fromXML(XmlDocumentFragment inXml) {         throw new System.Exception('The method or operation is not implemented.');     } } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 178k
  • Answers 178k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer you're referring to $('departments') - this won't work. You need… May 12, 2026 at 3:42 pm
  • Editorial Team
    Editorial Team added an answer Create a modelbinder, override BindModel, check the type and do… May 12, 2026 at 3:42 pm
  • Editorial Team
    Editorial Team added an answer No, it's a bug in SSMS when you tab away… May 12, 2026 at 3:42 pm

Related Questions

I have a search class that I am using to fetch results from two
I am trying to open an InfoPath 2007 file programmatically from a Windows service,
I'm a Flex rookie tasked with enhancing an existing application. One of those enhancements
I'm using linq to sql for MySql (using DbLinq) in an ASP.NET MVC website.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.