mirror of
https://github.com/quamotion/dotnet-packaging.git
synced 2026-02-16 21:36:51 +00:00
15 lines
313 B
C#
15 lines
313 B
C#
using System.IO;
|
|
|
|
namespace Packaging.Targets.IO
|
|
{
|
|
internal static class Extensions
|
|
{
|
|
public static string ReadAsUtf8String(this TarFile file)
|
|
{
|
|
using (var r = new StreamReader(file.Open()))
|
|
{
|
|
return r.ReadToEnd();
|
|
}
|
|
}
|
|
}
|
|
} |