Ejemplo n.º 1
0
 ExtensionNodeDescription AddCustomAttributeExtension(ModuleDescription module, CustomAttribute att, string nameName)
 {
     string path;
     if (!att.TryGetValue (CustomExtensionAttribute.PathFieldKey, out path))
         path = "%" + att.TypeName;
     ExtensionNodeDescription elem = module.AddExtensionNode (path, nameName);
     foreach (KeyValuePair<string,string> prop in att) {
         if (prop.Key != CustomExtensionAttribute.PathFieldKey)
             elem.SetAttribute (prop.Key, prop.Value);
     }
     return elem;
 }