In the code below, I get the error
A property, indexer or dynamic member access may not be passed as an out or ref parameter?
on the m_settings.Length
argument when compiling it. How could I solve this?
public override bool Read(GH_IO.Serialization.GH_IReader reader)
{
if (m_settings != null && m_settings.Length > 0)
{
reader.TryGetInt32("StringCount", ref m_settings.Length);
for (int i = 0; i < m_settings.Length; i++)
{
reader.TryGetString("String", i, ref m_settings[i]);
}
}
return base.Read(reader);
}