473,385 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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;
Nov 15 '05 #1
1 1265
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.
"babylon" <am***@hotmail.com> wrote in message
news:O5**************@TK2MSFTNGP09.phx.gbl...
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;

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: Chris Krasnichuk | last post by:
hello, Does anyone know how I make php work on "my" computer? I made a mistake in my last post so I fixed it here. Chris
4
by: Charles | last post by:
Hello, I have created a class file: Admin.cs with a namespace of cs101.Code.nsAdmin. From my ASP page: Login.aspx.cs how do I reference Admin and then execute one of its methods "public...
0
by: Ghislain Tanguay | last post by:
Hi everyone, I add some new functionality in one of my component like new methods and properties. If I install it in the GAC without changing my version number in my assemblyinfo, does my old...
23
by: patang | last post by:
When I create my own class, to use the functions of that class I have to create an object of that class and then I can access the functions of that class, for example: dim obj1 as myclass...
0
by: mailforpr | last post by:
Hi. Let me introduce an iterator to you, the so-called "Abstract Iterator" I developed the other day. I actually have no idea if there's another "Abstract Iterator" out there, as I have never...
3
by: Rich | last post by:
I put together a simple test class libary (VB2005) with one class and one function that takes an integer argument and adds 10 the argument and returns that number. Then I created a simple VB2005...
7
by: Sin Jeong-hun | last post by:
I have created a class library assembly (.dll) file. At the main GUI application, this assembly is referenced and used. But the problem is, if I redistribute these files with my application,...
7
by: Ben | last post by:
The signal() is the one in signal.h (csignal), in my class I defined a SIGALRM handler and then in my constructor I wrote signal(SIGALRM, myHandler), but the compiler gave me the error: error:...
15
by: jmDesktop | last post by:
Consider: <?php echo "start"; class myClass { public $connection;
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.