Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 807 Bytes

RR0185.md

File metadata and controls

43 lines (28 loc) · 807 Bytes

Replace object creation with default value

Property Value
Id RR0185
Title Replace object creation with default value
Syntax object creation expression
Enabled by Default

Usage

Before

var x = new object();

After

object x = null;

Before

var arr = new object[0];

After

object[] arr = null;

See Also

(Generated with DotMarkdown)