StreamExtensions
using System;
using System.IO;
namespace Azure.Storage.Shared
{
internal static class StreamExtensions
{
public static long? (this Stream content)
{
if (content == null)
return 0;
try {
if (content.CanSeek)
return content.Position;
} catch (NotSupportedException) {
}
return null;
}
}
}