22 lines
510 B
C#
22 lines
510 B
C#
|
#if !NET472
|
|||
|
using System.Runtime.Versioning;
|
|||
|
#endif
|
|||
|
|
|||
|
namespace RhSolutions.Tools;
|
|||
|
|
|||
|
#if !NET472
|
|||
|
[SupportedOSPlatform("windows")]
|
|||
|
#endif
|
|||
|
internal abstract class ToolBase
|
|||
|
{
|
|||
|
protected readonly IExcelReader _reader;
|
|||
|
protected readonly IExcelWriter _writer;
|
|||
|
|
|||
|
public ToolBase()
|
|||
|
{
|
|||
|
_reader = RhSolutionsAddIn.ServiceProvider.GetRequiredService<IExcelReader>();
|
|||
|
_writer = RhSolutionsAddIn.ServiceProvider.GetRequiredService<IExcelWriter>();
|
|||
|
}
|
|||
|
|
|||
|
public abstract void Execute();
|
|||
|
}
|