Ewl » Canonical The canonical version of EWL Read More
Clone URL:  
Pushed to 2 repositories · View In Graph Contained in tip and canonical

Removed Append method, which is built into .NET 4.7.2.

Changeset 41740c5ef4c7

Parent 9eb5b1afbe71

by Profile picture of William GrossWilliam Gross

Changes to 5 files · Browse files at 41740c5ef4c7 Showing diff from parent 9eb5b1afbe71 Diff from another changeset...

 
1
 
2
3
4
 
1
2
3
4
5
@@ -1,4 +1,5 @@
 using System.Collections.Generic; +using System.Linq;  using Humanizer;  using MoreLinq;  
 
9
10
11
12
13
14
15
 
420
421
422
423
424
425
426
427
428
429
430
 
9
10
11
 
12
13
14
 
419
420
421
 
 
 
 
 
422
423
424
@@ -9,7 +9,6 @@
 using System.Text.RegularExpressions;  using System.Threading;  using ImageResizer; -using MoreLinq;    namespace EnterpriseWebLibrary {   /// <summary> @@ -420,11 +419,6 @@
  return chrono.Elapsed;   }   - // Remove this when we update to .NET 4.7.1. - public static IEnumerable<T> Append<T>( this IEnumerable<T> items, T item ) { - return items.Concat( item ); - } -   /// <summary>   /// Transforms the underlying value of this nullable object using the specified selector, if an underlying value exists.   /// </summary>
 
 
1
2
3
 
11
12
13
14
 
 
 
 
 
15
16
17
 
1
2
3
4
 
12
13
14
 
15
16
17
18
19
20
21
22
@@ -1,3 +1,4 @@
+using System.Linq;  using EnterpriseWebLibrary.EnterpriseWebFramework;    namespace EnterpriseWebLibrary.WebSite.TestPages { @@ -11,7 +12,11 @@
  new Section( new Paragraph( "This is a basic box.".ToComponents() ).ToCollection(), style: SectionStyle.Box ).ToCollection()   .Append( new Section( "Heading Box", new Paragraph( "This is a box with heading.".ToComponents() ).ToCollection(), style: SectionStyle.Box ) )   .Append( - new Section( "Expandable Box", new Paragraph( "This is an expandable box.".ToComponents() ).ToCollection(), style: SectionStyle.Box, expanded: false ) ) + new Section( + "Expandable Box", + new Paragraph( "This is an expandable box.".ToComponents() ).ToCollection(), + style: SectionStyle.Box, + expanded: false ) )   .GetControls() );   }   }
 
1
2
 
3
4
5
 
1
2
3
4
5
6
@@ -1,5 +1,6 @@
 using System;  using System.Collections.Generic; +using System.Linq;  using System.Web.UI;  using EnterpriseWebLibrary.EnterpriseWebFramework;  using EnterpriseWebLibrary.EnterpriseWebFramework.Controls;
 
 
1
2
3
 
1
2
3
4
@@ -1,3 +1,4 @@
+using System.Linq;  using System.Web.UI.WebControls;  using EnterpriseWebLibrary.EnterpriseWebFramework;