Skip to content

Commit

Permalink
fixes cast in net35
Browse files Browse the repository at this point in the history
  • Loading branch information
Shazwazza committed Sep 20, 2018
1 parent 9ce1652 commit d353cc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ClientDependency.Core/Controls/ClientDependencyLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ protected override void OnPreRender(EventArgs e)
#if !Net35
_base.Paths.UnionWith(Paths);
#else
_base.Paths.UnionWith((IEnumerable<IClientDependencyPath>)Paths);
IEnumerable<IClientDependencyPath> paths = Paths.Cast<IClientDependencyPath>();
_base.Paths.UnionWith(paths);
#endif

RegisterClientDependencies((WebFormsFileRegistrationProvider)_base.Provider, Page, _base.Paths);
Expand Down

0 comments on commit d353cc1

Please sign in to comment.