I have a piece of code which deals with customers stored in database. There is an object Customer
, and it has, among other, two properties of type byte[]
: one property for password salt, the second one for password hash.
Checking the code with FxCop, I see that it complains (CA1819, Performance Rules) that:
"Properties that return arrays are prone to code inefficiencies. Consider using a collection or making this a method. See the design guidelines for more information."
and suggests:
"Change 'Customer.PasswordHash' to return a collection or make it a method."
I don't really understand, what is the code inefficiency in what I'm doing?