Page 1 of 1
Compiler-warning in C#-code of .cs-report
Posted: Thu Feb 01, 2007 3:45 am
by Dave Canto
After saving my report "ProductFileCD" as a cs-file (instead of the mrt-format) and using it in my VS2005 Project, I get the following warning from the compiler:
CDReports\ProductFileCD.cs(9200,35): warning CS0108: 'Reports.rptProductFileCD.tblReportValues0DataSource.Name' hides inherited member 'Stimulsoft.Report.Dictionary.StiDataSource.Name'. Use the new keyword if hiding was intended.
What can I do to avoid this warning?
Compiler-warning in C#-code of .cs-report
Posted: Thu Feb 01, 2007 5:05 am
by Dave Canto
Dave wrote:After saving my report "ProductFileCD" as a cs-file (instead of the mrt-format) and using it in my VS2005 Project, I get the following warning from the compiler:
CDReports\ProductFileCD.cs(9200,35): warning CS0108: 'Reports.rptProductFileCD.tblReportValues0DataSource.Name' hides inherited member 'Stimulsoft.Report.Dictionary.StiDataSource.Name'. Use the new keyword if hiding was intended.
What can I do to avoid this warning?
Today I did a fresh rebuild of my entire VS2005 Project and now this warning has gone. Seems that the problem fixed itself?!
Compiler-warning in C#-code of .cs-report
Posted: Thu Feb 01, 2007 12:22 pm
by Vital
This problem occurs because we create inherited from StiDataSource class for each datasource in report dictionary. If your datasource have column with name "Name" then for this column (for each column) in inherited class creates property with name "Name". But datasource alredy have property name. And compiler generate this warnings.
I latest build we add some code to avoid this problem. If you use latest build this code help.
Thank you.