Property | Value |
---|---|
Id | RCS1210 |
Category | Usage |
Severity | Warning |
Task<object> GetAsync()
{
return null; // RCS1210
}
Task<object> GetAsync()
{
return Task.FromResult<object>(null);
}
Task<object> GetAsync()
{
return _foo?.GetAsync(); // RCS1210
}
Task<object> GetAsync()
{
Foo x = _foo;
if (x != null)
{
return _foo.GetAsync();
}
else
{
return Task.FromResult<object>(null);
}
}
(Generated with DotMarkdown)