does the next version of C# (.Net Framework 2.0) have equilvlant "My" class as in VB.Net

  • Thread starter Thread starter babylon
  • Start date Start date
B

babylon

e.g. in VB.Net NOW
Const GreetingName As String = "Greeting"
Dim sDisplay As Object
Dim ResMgr As ResourceManager
ResMgr = New ResourceManager("ResourcesSample.MyStrings",_
Me.GetType.Assembly)
sDisplay = ResMgr.GetString(GreetingName)

VB.Net in .Net Framework 2.0
sDisplay = My.Resources.MyStrings.Greeting;
 
I would assume that the My classes are simply framework classes in the
Microsoft.VisualBasic assembly, meaning any language can use them, they will
just be there by default in VB.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top