changed isdecompressed to a property. Changed serializerbase to internal

This commit is contained in:
nzdev
2020-12-16 19:20:24 +13:00
parent f09fcfbdd4
commit f8bb53ac03
2 changed files with 6 additions and 5 deletions

View File

@@ -33,10 +33,11 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource
throw new InvalidOperationException("The bytes have already been expanded");
return _bytes;
}
public bool IsDecompressed()
{
return _isDecompressed;
}
/// <summary>
/// Whether the bytes have been decompressed to a string. If true calling GetBytes() will throw InvalidOperationException.
/// </summary>
public bool IsDecompressed => _isDecompressed;
public override string ToString()
{

View File

@@ -4,7 +4,7 @@ using CSharpTest.Net.Serialization;
namespace Umbraco.Web.PublishedCache.NuCache.DataSource
{
public abstract class SerializerBase
internal abstract class SerializerBase
{
private const char PrefixNull = 'N';
private const char PrefixString = 'S';