473,761 Members | 5,578 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help needed with an assembly question

During an interview, I was asked with question 'how do you add information
to a .NET assembly as metadata' I really have no idea until now, could
someone please help? thanks in advance
Nov 22 '05 #1
2 1003
Dear Tommy Wang,

Have a look at: http://odetocode.com/Articles/288.aspx
So... I think (correct my if I am mistaken) the answer is: with attributes
Also see:
http://msdn.microsoft.com/library/de...attributes.asp

Hope I helped you,

Michel van den Berg

"Tommy Wang" <tw******@gmail .com> schreef in bericht
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
During an interview, I was asked with question 'how do you add information
to a .NET assembly as metadata' I really have no idea until now, could
someone please help? thanks in advance

Nov 22 '05 #2
Tommy Wang wrote:
During an interview, I was asked with question 'how do you add
information to a .NET assembly as metadata' I really have no idea
until now, could someone please help? thanks in advance


The question is very broad, and requires a broad answer

1) Add a type to the assembly. Information about the type is added to
the metadata tables in the assembly.

2) Use a type in another assembly. There is a metadata table that
describes the types that you use in other assemblies.

3) Add an attribute. Some attributes add *custom* metadata to the
assembly (ie your own metadata that only you know about), others change
existing types of metadata.

Personally, I think the question was poorly written by someone who
didn't know much about .NET and if I was asked it in an interview I
would say so <g>.

Richard
--
http://www.grimes.demon.co.uk/workshops/fusionWS.htm
http://www.grimes.demon.co.uk/workshops/securityWS.htm
Nov 23 '05 #3

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

Similar topics

31
2641
by: mark | last post by:
Hello- i am trying to make the function addbitwise more efficient. the code below takes an array of binary numbers (of size 5) and performs bitwise addition. it looks ugly and it is not elegant but it appears to work. using time, i measured it takes .041s to execute, which i admit isnt much. but, the problem is that this procedure will be called many, many times in my project (probably at least a few thousand times, if not more) so...
23
3282
by: Jason | last post by:
Hi, I was wondering if any could point me to an example or give me ideas on how to dynamically create a form based on a database table? So, I would have a table designed to tell my application to create certain textboxes, labels, and combo boxes? Any ideas would be appreciated. Thanks
26
4486
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 System.EnterpriseServices;
0
1067
by: MikeY | last post by:
Being a newbie with Reference/Resource is there a way of embedding the ..resource file within a folder of my application instead of having it in the main project /executing assembly area. i.e. if I have a folder pertaining to variables, I would like to have that "variables.resource" file within that folder and be able to call it from there instead of calling it from the executing assembly area. So far I am unable to figure out the complete...
0
1304
by: Henrik_the_boss | last post by:
Hello all. I have a couple of aspx pages. When something fails in them, I would like them to be able to log to either a database, a logfile, or the application log. All code is in C# I run into permissions problems straigh away though. To log to the event log, you need Administrator privileges. So followed MS example how to sandbox sensitive and secure code.
0
1516
by: Jie | last post by:
Does anyone know why I keep having the following error. I have to rebuild the solution every time I run it in design mode. thanks jie Server Error in '/ReapPortal' Application. ---------------------------------------------------------------------------- ---- Compilation Error
4
1751
by: serge calderara | last post by:
Dear all, I have read that instead of registering an assembly on the top a a page with the Register directive we can use the <assembliea> section of Web config file as follow : <assemblies> <add assembly="SharpUI.Input, Version=1.1.1.1220, Culture=neutral, PublicKeyToken=f517ee9424cd48d0"/>
1
1694
by: Rain | last post by:
AppDomain appDomain = AppDomain.CreateDomain("appDomain", null, null); try { appDomain.Load(@"FF-DeliousDateTimeRequestor.dll"); } finally { AppDomain.Unload(appDomain); }
1
8920
by: Patrick F | last post by:
I keep getting this error message and i don't know whats the problem is and how to solve it. I have a webproject with 2 components (dll) added to it. One is called PhotoGallery and one is called Photo. Any suggestions on how to solve this? i can't do much at the moment. Server Error in '/PhotoGallery' Application. -------------------------------------------------------------------------------- Cannot create/shadow copy 'Photo' when...
0
9353
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10123
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9975
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9909
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9788
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8794
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6623
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
3481
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2765
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.