not CLS-complaint

  • Thread starter Thread starter Oscar Thornell
  • Start date Start date
O

Oscar Thornell

Hi!

I have a strongly typed dataset based on a db (SQL Server)...

One of the tables contains a column with name: ISO-3166-A2 and data type
nchar(2)...

The generated code (xsd.exe) in the dataset looks like this:
public string _ISO_3166_A2 {
....
}

VS.NET 2003 identifies this as an error and aborts compilation stating that
the DataSet code above is not CLS-complaint...

I assume that this is due to the underscore _ used in the name of the
Property...!? Why does xsd.exe generate a name with underscore in this
case?? What can I do?

Regards

/Oscar
 
Hi Oscar,

has the typed dataset to be public?
If it's internal CLS-compliance shouldn't matter.
 
Back
Top