473,402 Members | 2,046 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,402 software developers and data experts.

Identifying Class Name

Hi

How can I know the name of the class (at runtime) from within the class in
..NET ? I think using Reflection we can get the name but I am not able to
exactly crack it.

Thanks in advance.
Prasad P
Feb 2 '06 #1
1 945
myClass.GetType();

"Prasad Peesapati" <Prasad Pe*******@discussions.microsoft.com> wrote in
message news:9D**********************************@microsof t.com...
Hi

How can I know the name of the class (at runtime) from within the class in
.NET ? I think using Reflection we can get the name but I am not able to
exactly crack it.

Thanks in advance.
Prasad P

Feb 2 '06 #2

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

Similar topics

4
by: Armando | last post by:
Hey again - I have a bunch of similar controls on a form (A2000), and I'm calling the same code (with an argument as to what was clicked) when any one of them is clicked. I'd like to generalize...
3
by: AdamM | last post by:
At runtime, how do you take a user-supplied string, and then match that up with a class property name? For example, I have a User class with the property User.Name. At runtime, I want the user...
3
by: 63q2o4i02 | last post by:
Hi, I was wondering how I may get a python function to know what its name is without me having to write it manually? For example: def func1(): <do some stuff1> print 'func1' return True ...
2
by: chrisp | last post by:
Is there anyway I can get the Type of the class that owns the currently executing code? I'm trying to get this information for logging purposes. I have a number of tracing messages throughout a...
13
by: malkarouri | last post by:
Hi, I am writing a library in which I need to find the names of methods which are implemented in a class, rather than inherited from another class. To explain more, and to find if there is...
3
by: User1013 | last post by:
I have the Javascript definitive guide book but I'm hoping someone can tell me what "language concepts" are being employed by the following code, so that I can look up the right parts in the book:...
7
by: david.jobet | last post by:
Hello, I'm trying to decrease the memory consumption of a large c++ application. I'd like to identify the object which at a given t=T has the greatest sizeof(object) *...
10
by: Frankie | last post by:
It appears that System.Random would provide an acceptable means through which to generate a unique value used to identify multiple/concurrent asynchronous tasks. The usage of the value under...
6
by: Generic Usenet Account | last post by:
I ran a small experiment involving RTTI and dynamic casting. Basically what I did was to cast a base class pointer to a derived type (yes, I know that is not kosher). I then performed...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.