Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ExpressionBuilder/Configuration/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ public static void LoadSettings(Settings settings)
}
}
#else
settings.SupportedTypes = new List<SupportedType>();
var configSection = ConfigurationManager.GetSection(ExpressionBuilderConfig.SectionName) as ExpressionBuilderConfig;
if (configSection == null)
{
return;
}

settings.SupportedTypes = new List<SupportedType>();
foreach (ExpressionBuilderConfig.SupportedTypeElement supportedType in configSection.SupportedTypes)
{
Type type = Type.GetType(supportedType.Type, false, true);
Expand All @@ -53,4 +53,4 @@ public static void LoadSettings(Settings settings)
#endif
}
}
}
}