消除部分warning
This commit is contained in:
@@ -111,10 +111,10 @@ public class UserAgent : IUserAgent
|
||||
private DeviceInfo _device;
|
||||
private OSInfo _os;
|
||||
|
||||
private bool? _isBot;
|
||||
//private bool? _isBot;
|
||||
private bool? _isMobileDevice;
|
||||
private bool? _isTablet;
|
||||
private bool? _isPdfConverter;
|
||||
//private bool? _isPdfConverter;
|
||||
|
||||
static UserAgent()
|
||||
{
|
||||
@@ -142,7 +142,7 @@ public class UserAgent : IUserAgent
|
||||
}
|
||||
}
|
||||
|
||||
return _rawValue;
|
||||
return _rawValue ?? "";
|
||||
}
|
||||
|
||||
set
|
||||
@@ -151,10 +151,10 @@ public class UserAgent : IUserAgent
|
||||
_userAgent = null;
|
||||
_device = null;
|
||||
_os = null;
|
||||
_isBot = null;
|
||||
//_isBot = null;
|
||||
_isMobileDevice = null;
|
||||
_isTablet = null;
|
||||
_isPdfConverter = null;
|
||||
//_isPdfConverter = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user