Added fixes for CLS Compliance (VB.NET support)

Metadata.cs was modified for full CLS compliance.