Code: Select all
System.Collections.ObjectModel.Collection<Cypher1.FormField> FieldList = SelectedForm.FieldList as System.Collections.ObjectModel.Collection<Cypher1.FormField>;
foreach(Cypher1.FormField F in FieldList)
{
...... process data here ....
}
But this throws the error :
The error of compilation
The error of compilation is found in the 'Report' report:
Cannot convert type 'Reports.Report.SelectedFormBusinessObject.FieldListBusinessObject' to 'System.Collections.ObjectModel.Collection<Cypher1.FormField>' via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion, or null type conversion
What am I doing wrong?