Monday, 9 October 2017

Write a note on metadata?

Write a note on metadata?
Metadata: - In earlier days, it was not possible that s/w component/module (.exe or .dll) written in one language could be used in another module, which is written in another language. The solution came in the form of COM components are the .NET framework makes language interoperation even easier by allowing compilers to put additional information into all compilers modules and assemblies. This information is called metadata. Metadata is binary information describing the program. When we compile our code into PE file. Every type, member, which are defined or referenced in a module, is described within metadata. When code is executed, the runtime loads metadata into memory and refers it to get information about codes class, members, and inheritance and so on. Metadata allows .NET languages to describe themselves in a language neutral manner. It gives required information to CLR to perform much of its functionalities. The present of metadata managed the assembly self- describing file. The CLR modules or components or other assemblies, which want to communicate with easily other users, these information stored in metadata to perform their tasks. It stores information like:-  

(a) Description of assembly’s operation.
(b) Assembly identity.
(c) Exported types.
(d) Other dependent assemblies.
(e) Security permissions.
(f) Description of types.
(g) Members like methods, fields, properties, events, nested types, etc.

0 comments

Post a Comment