Monday, May 9, 2011

Benfits of Metadata

Metadata allows .net languages to describes themselves automatically in a language natural manner, unseen by both the developer and the user. Metadata provides the following major benefits:
Self-describing type:- Comman language run-time modules and assemblies are self describing. The matadata contains everything needed to intract with another modules. Run-time modules and assemblies do not even require registration with the operating System.
Language interoperability and Easier component based design:- Metadata provides all the information required about compiled code for you to inherit a class from a PE filewritten in different language. We can create an instanse of any class written in any managed language(any language that target the CLR) without worrying about explicit marshaling or using custom interoperability code
attributes:- The .netframework allows you to declare a specific kinds of metadata, called attributes, in your compiled file. Attributes can be found throughout the .netframwork and are used to control in more detail how your programe behaves at run-time. Additinally you can emit your own custom metadata into .net framework files user defined custom attributes.

No comments:

Post a Comment