Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conversion from C# to VB.NET
Message
From
20/04/2013 04:20:46
 
 
To
19/04/2013 09:19:05
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01571173
Message ID:
01571524
Views:
53
>Let me give an example of what is happening.
>
>Array.Resize() returns another object - the original array continues to exist for as long as it is referenced
>
>
>	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) :-}
I'd somehow got it into my head that Michel was always using oProcess.oApp.Tables rather than grabbing a reference to oApp.Tables itself.....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform