private void HandleItem(AssemblyDefinition adef) { _adef = adef; AssemblyNameDefinition.Bind(adef == null ? null : adef.Name); AssemblyDefinition.Bind(adef); AssemblyCustomAttributes.Bind(adef); var module = adef == null ? null : adef.MainModule; ModuleDefinition.Bind(module); ModuleCustomAttributes.Bind(module); }
public XCodeCompileUnit(CodeCompileUnit source) : base() { if (source != null) { Namespaces.AddRange(source.Namespaces); EndDirectives.AddRange(source.EndDirectives); StartDirectives.AddRange(source.StartDirectives); AssemblyCustomAttributes.AddRange(source.AssemblyCustomAttributes); foreach (string name in source.ReferencedAssemblies) { ReferencedAssemblies.Add(name); } foreach (DictionaryEntry item in source.UserData) { UserData.Add(item.Key, item.Value); } } }
private void ModuleCustomAttributes_GridUpdated(object sender, EventArgs e) { AssemblyCustomAttributes.Rehash(); ModuleCustomAttributes.Rehash(); }
void IHandler.OnConfigurationChanged(object sender, EventArgs e) { AssemblyCustomAttributes.Rehash(); ModuleCustomAttributes.Rehash(); }