NullableResponse<T>
Represents a result of Azure operation.
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace Azure
{
[System.Runtime.CompilerServices.NullableContext(2)]
[System.Runtime.CompilerServices.Nullable(0)]
public abstract class NullableResponse<T>
{
[System.Runtime.CompilerServices.Nullable(1)]
private const string NoValue = "<null>";
public abstract bool HasValue { get; }
public abstract T Value { get; }
[System.Runtime.CompilerServices.NullableContext(1)]
public abstract Response GetRawResponse();
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object obj)
{
return base.Equals(obj);
}
[EditorBrowsable(EditorBrowsableState.Never)]
public override int GetHashCode()
{
return base.GetHashCode();
}
[System.Runtime.CompilerServices.NullableContext(1)]
public override string ToString()
{
return string.Format("Status: {0}, Value: {1}", GetRawResponse()?.Status, HasValue ? ((object)Value) : "<null>");
}
}
}