Hi,
im moving a project from vs2005 to vs 2008.
is doing so i have come across a compiler error regarding partial
classes that i dont understand if anyone can explain it to me please
the orig defintion that compiles and runs fine in vs2005 is
bellow......
However in porting this to vs2008 the compiler throws up errors
indicating the need for a missing partial keyword reference in
FrameMessage.cs. Do this clears that error but then throws up heaps of
warnings about duplicate declerations in both classes.
I dont understand why this compiles cleanly in 2005 and throws up
errors in 2008. I would have expected the 2005 compiler to also
produce errors becasue at first glance it seems the 2008 way is
correct
I dont know why the orig coder has the duplication in definition or
how this even worked ok in 2005
It realy bugging me if anyone can explain this to me or point in the
direction of whats hapening it would be appreciated
thanks
Peted
FrameMessage.cs
namespace BillingCommon {
using System;
using System.Data;
using System.Xml;
using System.Runtime.Serialization;
[Serializable()]
[System.ComponentModel.DesignerCategoryAttribute("c ode")]
[System.Diagnostics.DebuggerStepThrough()]
[System.ComponentModel.ToolboxItem(true)]
public class FrameMessage : DataSet {
private MessageDataTable tableMessage;
public FrameMessage() {
this.InitClass();
FrameMessage.Designer.cs
#pragma warning disable 1591
namespace BillingCommon.Globals {
using System;
[System.CodeDom.Compiler.GeneratedCodeAttribute("Sy stem.Data.Design.TypedDataSetGenerator",
"2.0.0.0")]
[Serializable()]
[System.ComponentModel.DesignerCategoryAttribute("c ode")]
[System.ComponentModel.ToolboxItem(true)]
[System.Xml.Serialization.XmlSchemaProviderAttribut e("GetTypedDataSetSchema")]
[System.Xml.Serialization.XmlRootAttribute("FrameMe ssage")]
[System.ComponentModel.Design.HelpKeywordAttribute( "vs.data.DataSet")]
public partial class FrameMessage : System.Data.DataSet {
private MessageDataTable tableMessage;