namespace ThingsGateway.SqlSugar
{
    public class RefAsync<T>
    {
        public RefAsync() { }
        public RefAsync(T value) { Value = value; }
        public T Value { get; set; }
        public override string ToString()
        {
            T value = Value;
            return value == null ? "" : value.ToString();
        }
        public static implicit operator T(RefAsync<T> r) { return r.Value; }
        public static implicit operator RefAsync<T>(T value) { return new RefAsync<T>(value); }
    }
}
