While I try to resize an array in C# as below,
Array.Resize(ref Globals.NameList, 0);
I get the below error
A property or indexer may not be passed as an out or ref parameter
Globals is an object. NameList is a string type array declared in Globals Class.
Please help me to fix this by posting the correct code.
Thanks!
use variable, but not property