>> public class AClass >> { >> public static string[] Tables = { "one", "two", "three" }; >> >> public static void Main() >> { >> string[] tables = Tables; >> >> Array.Resize<string>(ref Tables, 10); >> >> Console.WriteLine("previous version contains {0} elements", tables.Length); // 3 >> Console.WriteLine("newer version contains {0} elements", Tables.Length); //10 >> Console.ReadLine(); >> } >> >> } >>>Got it (finally) :-}
in App Tables = null // here oProcess on another thread grabs a reference to Tables Tables = new TablesClass() Tables.Initilaize()(2) Then there was the story about cloning - trying to get the state of Tables at a specific moment, so that later changes would be invisible to oProcess