Property | Value |
---|---|
Id | RCS1171 |
Category | Simplification |
Severity | Info |
public object Foo()
{
if (_foo == null) // RCS1171
{
_foo = Initialize();
}
return _foo;
}
public object Foo()
{
return _foo ?? (_foo = Initialize());
}
(Generated with DotMarkdown)