Send comments on this topic. |
|
Glossary Item Box
Cause
Rule Description
string s = "";
This will cause the compiler to embed an empty string into the compiled code. Rather than including a hard-coded empty string, use the static string.Empty property:
string s = string.Empty;
How to Fix Violations
© Microsoft Corporation. All Rights Reserved.