Skip to content

Commit 50139f8

Browse files
author
ArthurHub
committed
* rename Action to ActionInt to avoid ambigousity from .NET 3.5
1 parent 93abf63 commit 50139f8

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

‎Source/HtmlRenderer/Handlers/ImageLoadHandler.cs‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ internal sealed class ImageLoadHandler : IDisposable
5353
/// <summary>
5454
/// callback raised when image load process is complete with image or without
5555
/// </summary>
56-
private readonly Action<Image, Rectangle, bool> _loadCompleteCallback;
56+
// ReSharper disable RedundantNameQualifier
57+
private readonly Utils.ActionInt<Image, Rectangle, bool> _loadCompleteCallback;
58+
// ReSharper restore RedundantNameQualifier
5759

5860
/// <summary>
5961
/// the web client used to download image from URL (to cancel on dispose)
@@ -98,7 +100,7 @@ internal sealed class ImageLoadHandler : IDisposable
98100
/// </summary>
99101
/// <param name="htmlContainer">the container of the html to handle load image for</param>
100102
/// <param name="loadCompleteCallback">callback raised when image load process is complete with image or without</param>
101-
public ImageLoadHandler(HtmlContainer htmlContainer, Action<Image, Rectangle, bool> loadCompleteCallback)
103+
public ImageLoadHandler(HtmlContainer htmlContainer, ActionInt<Image, Rectangle, bool> loadCompleteCallback)
102104
{
103105
ArgChecker.AssertArgNotNull(htmlContainer, "htmlContainer");
104106
ArgChecker.AssertArgNotNull(loadCompleteCallback, "loadCompleteCallback");

‎Source/HtmlRenderer/Parse/DomParser.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ private static void ApplyTablePadding(CssBox table, string padding)
496496
/// </summary>
497497
/// <param name="table">the table element</param>
498498
/// <param name="action">the action to execute</param>
499-
private static void SetForAllCells(CssBox table, Utils.Action<CssBox> action)
499+
private static void SetForAllCells(CssBox table, ActionInt<CssBox> action)
500500
{
501501
foreach (var l1 in table.Boxes)
502502
{

‎Source/HtmlRenderer/Utils/CommonUtils.cs‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
using HtmlRenderer.Entities;
2121

2222
namespace HtmlRenderer.Utils
23-
{
24-
public delegate void Action<in T>(T obj);
25-
26-
public delegate void Action<in T1, in T2>(T1 arg1, T2 arg2);
27-
28-
public delegate void Action<in T1, in T2, in T3>(T1 arg1, T2 arg2, T3 arg3);
23+
{
24+
internal delegate void ActionInt<in T>(T obj);
25+
26+
internal delegate void ActionInt<in T1, in T2>(T1 arg1, T2 arg2);
27+
28+
internal delegate void ActionInt<in T1, in T2, in T3>(T1 arg1, T2 arg2, T3 arg3);
2929

3030
/// <summary>
3131
/// Utility methods for general stuff.

0 commit comments

Comments
 (0)