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

What about [Assembly]?

ad
I have study a vb codes:

Dim Asm As [Assembly] = [Assembly].GetExecutingAssembly()

How can I do in C#
Mar 15 '06 #1
4 1089
"ad" <fl****@wfes.tcc.edu.tw> wrote in message
news:uB**************@TK2MSFTNGP10.phx.gbl...
I have study a vb codes:

Dim Asm As [Assembly] = [Assembly].GetExecutingAssembly()

How can I do in C#


Assembly Asm = Assembly.GetExecutingAssembly();

--
Adam Clauss
Mar 15 '06 #2
You may have to reference to the System.Reflection though.

"Adam Clauss" <ca*****@tamu.edu> wrote in message
news:12*************@corp.supernews.com...
"ad" <fl****@wfes.tcc.edu.tw> wrote in message
news:uB**************@TK2MSFTNGP10.phx.gbl...
I have study a vb codes:

Dim Asm As [Assembly] = [Assembly].GetExecutingAssembly()

How can I do in C#


Assembly Asm = Assembly.GetExecutingAssembly();

--
Adam Clauss

Mar 16 '06 #3

"ad" <fl****@wfes.tcc.edu.tw> wrote in message
news:uB**************@TK2MSFTNGP10.phx.gbl...
I have study a vb codes:

Dim Asm As [Assembly] = [Assembly].GetExecutingAssembly()

How can I do in C#


Just to explain the reasoning behind the other posters perfectly correct
answer, the square brackets([ ]) in VB are there to mark the keyword
'Assembly' as not a keyword, to achieve the same thing(although you don't
need it with the word 'Assembly') you would prefix the identifier with @.
Mar 16 '06 #4
True, but that is also true for the VB.Net code (isn't it? Guess I don't
actually know that, I just assumed it was).

--
Adam Clauss

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:%2******************@TK2MSFTNGP14.phx.gbl...
You may have to reference to the System.Reflection though.

"Adam Clauss" <ca*****@tamu.edu> wrote in message
news:12*************@corp.supernews.com...
"ad" <fl****@wfes.tcc.edu.tw> wrote in message
news:uB**************@TK2MSFTNGP10.phx.gbl...
I have study a vb codes:

Dim Asm As [Assembly] = [Assembly].GetExecutingAssembly()

How can I do in C#


Assembly Asm = Assembly.GetExecutingAssembly();

--
Adam Clauss


Mar 16 '06 #5

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

Similar topics

5
by: Marian | last post by:
Hi, I am totaly novice in .NET and I am studying a book about this. There was mentioned "assembly". I did not understand, how function does it has . I would like to know the exact run of code...
10
by: Simon Wallis | last post by:
I know the general purpose for the GAC is to share a component among many applications. But even when you add something to the GAC, you still have to manually create a reference to the DLL in your...
26
by: Lasse Edsvik | last post by:
Hello I'm trying to build a simple COM+ app in vs.net using C# and i cant register it in component manager..... what more is needed than this: using System; using...
19
by: Charles Law | last post by:
Take a solution with a project hierarchy along the lines of an n-tier system, so that we have a data layer, business layer and presentation layer. The presentation layer is coupled to the business...
3
by: fong01 | last post by:
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.Net.Sockets.SocketException: No...
4
by: Kunle Odutola | last post by:
I'm trying to understand where the information in the META.INF directory including MANIFEST.MF etc is to be found for .NET assemblies. Also some projects such as Eclipse's OSGi kernel stores...
8
by: Umut Tezduyar | last post by:
I know that, in asp.net 2.0, the assembly for the web site is splitted into pieces and each time you build it, it generates a random name for assembly. My question is, if i create a custom web...
12
by: TC | last post by:
I'm trying to figure out what the "Friend" keyword does. I know it specifies that "elements are accessible from within the same assembly", but that doesn't help because I don't know what an...
2
by: Rod | last post by:
I've been struggling with this thing for 2 days, and after searching the 'net for help, I cannot find what is wrong. We're using Crystal Reports XI Release 2, with Visual Studio .NET 2003 in...
50
by: lovecreatesbea... | last post by:
Could you extract examples of the characteristics of C itself to demonstrate what the advantages of C are? What are its pleasant, expressive and versatile characteristics? And what are its...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.