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
-
- Posts: 18
- Joined: Mon Jan 22, 2007 11:51 am
- Location: Belgium
-
- Posts: 18
- Joined: Mon Jan 22, 2007 11:51 am
- Location: Belgium
Compiler-warning in C#-code of .cs-report
Today I did a fresh rebuild of my entire VS2005 Project and now this warning has gone. Seems that the problem fixed itself?!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?
Compiler-warning in C#-code of .cs-report
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.
I latest build we add some code to avoid this problem. If you use latest build this code help.
Thank you.