Explain manifest & metadata.

Answers were Sorted based on User's Feedback



Explain manifest & metadata...

Answer / narayan sahu(netx)

manifest
Every assembly, whether static or dynamic, contains a
collection of data that describes how the elements in the
assembly relate to each other. The assembly manifest
contains this assembly metadata. An assembly manifest
contains all the metadata needed to specify the assembly's
version requirements and security identity, and all
metadata needed to define the scope of the assembly and
resolve references to resources and classes. The assembly
manifest can be stored in either a PE file (an .exe
or .dll) with Microsoft intermediate language (MSIL) code
or in a standalone PE file that contains only assembly
manifest information.
Metadata
Metadata is binary information describing your program that
is stored either in a common language runtime portable
executable (PE) file or in memory. When you compile your
code into a PE file, metadata is inserted into one portion
of the file, while your code is converted to Microsoft
intermediate language (MSIL) and inserted into another
portion of the file. Every type and member defined and
referenced in a module or assembly is described within
metadata. When code is executed, the runtime loads metadata
into memory and references it to discover information about
your code's classes, members, inheritance, and so on.

Is This Answer Correct ?    17 Yes 4 No

Explain manifest & metadata...

Answer / rajsekhar

Metadata is the complete way of describing what is in
a .NET assembly. Digging into the metadata yields the types
available in that assembly, viz. classes, interfaces,
enums, structs, etc., and their containing namespaces, the
name of each type, its visibility/scope, its base class,
the interfaces it implemented, its methods and their scope,
and each method?s parameters, type?s properties, and so on.
The assembly metada is generated by the high-level
compilers automatically from the source files. The compiler
embeds the metadata in the target output file, a dll,
an .exe or a .netmodule in the case of multi-module
assembly. In the case of a multimodule assembly ever module
that contains IL must have the metadata embeded in it to
describe the types in that module. Every compiler targeted
for the .NET CLR is required to generate and embed the
metadata in the output file, and that metadata must be in a
standard format. .NET Reflection extensively uses the
metadata information to know the type information
dynamically

Manifest:
Metadata describes the contents in an assembly, whereas the
manifest describes the assembly itself, providing the
logical attributes shared by all the modules and all
components in the assembly. The manifest contains the
assembly name, version number, locale and an optional
strong name that uniquely identifying the assembly. This
manifest information is used by the CLR. The manifest also
contains the security demands to verify this assembly

Is This Answer Correct ?    15 Yes 3 No

Explain manifest & metadata...

Answer / krupali

In asp.net 2.0 collection of file are called assembly.and
in these assembly one file(EXE or .DLL)contains a special
metadata called manifest.and these manifest is stored as
binary data and contains the detail like versioning
requirements for the assembly,the author,security
permissions,and list of files forming the assembly.while
the metadata is called data about data.

Is This Answer Correct ?    13 Yes 5 No

Explain manifest & metadata...

Answer / pankaj purohit

Manefest:- in simple way we can say complete hierarchical
information about the program.
&
Meatadata:- Basically it has two part
1. Information about the data.
2. Information about the program.

Information about the data :- When Program is ready for
execution (will create .dll or .exe)

Information about the program :- it carry by the MSIL
ex. product name, copy write, trademark, vision, Culture.

Is This Answer Correct ?    0 Yes 0 No

Explain manifest & metadata...

Answer / sunil

I hope this could also be very use full link.
http://msdn.microsoft.com/en-us/library/1w45z383.aspx

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More Dot Net General Interview Questions

Can you create instance of a class which has private constructor?

0 Answers  


Which among the following two is best and why? Abstract Class and Interface. What is the major difference in between those two except the discrete methods and methods with function definition.

4 Answers   247Customer,


What?s a Windows process?

1 Answers  


What is lambda expressions in c#?

0 Answers  


Compare & contrast rich client (smart clients or windows-based) & browser-based web application

0 Answers  






Without UDDI, is it possible to access a remote web service ?

1 Answers   RR, TCS, Tech Mahindra,


When developing a Windows service for .NET, which namespace do you typically look in for required classes?

1 Answers  


Please explain what garbage collection is and how it works. Provide a code example of how you can enforce garbage collection in .net?

0 Answers  


Give An example of a ctype and directcast.

2 Answers   Wipro,


Who is using .net core?

0 Answers  


What is gac in .net?

0 Answers  


What is the difference between a namespace and assembly name in .net?

0 Answers  


Categories