Severity Code Description Project File Line Suppression State
Error CS1002 ; expected DotSpatial.Controls D:\Visual Studio 2017\DotSpatial-master\Source\DotSpatial.Controls\LayoutLegend.cs 294 Active
Error CS1026 ) expected DotSpatial.Controls D:\Visual Studio 2017\DotSpatial-master\Source\DotSpatial.Controls\LayoutLegend.cs 181 Active
Error CS1026 ) expected DotSpatial.Controls D:\Visual Studio 2017\DotSpatial-master\Source\DotSpatial.Controls\LayoutLegend.cs 294 Active
Error CS1002 ; expected DotSpatial.Controls D:\Visual Studio 2017\DotSpatial-master\Source\DotSpatial.Controls\LayoutLegend.cs 181 Active

should it be this?
foreach (var lyr in Map.MapControl.GetAllLayers())
{
if ((lyr is IMapLayer) && lyr.Checked)
{
_layers.Add(lyr as IMapLayer);
}
}
Severity Code Description Project File Line Suppression State

Error CS1002 ; expected DotSpatial.Controls D:\Visual Studio 2017\DotSpatial-master\Source\DotSpatial.Controls\LayoutLegend.cs 294 Active
Error CS1026 ) expected DotSpatial.Controls D:\Visual Studio 2017\DotSpatial-master\Source\DotSpatial.Controls\LayoutLegend.cs 181 Active
Error CS1026 ) expected DotSpatial.Controls D:\Visual Studio 2017\DotSpatial-master\Source\DotSpatial.Controls\LayoutLegend.cs 294 Active
Error CS1002 ; expected DotSpatial.Controls D:\Visual Studio 2017\DotSpatial-master\Source\DotSpatial.Controls\LayoutLegend.cs 181 Active
should it be this?
foreach (var lyr in Map.MapControl.GetAllLayers())
{
if ((lyr is IMapLayer) && lyr.Checked)
{
_layers.Add(lyr as IMapLayer);
}
}