AddDependency() публичный Метод

public AddDependency ( DependencyData newItem ) : void
newItem DependencyData
Результат void
Пример #1
0
 /// <summary>
 /// Get Dependency For RuntimeData
 /// </summary>
 /// <returns></returns>
 private static void GetDependencyForRuntimeData(RuntimeData runtimeData, ComponentMetadata metadata)
 {
     if (null != metadata.Runtime.Items1 && metadata.Runtime.Items1.Length > 0)
     {
         foreach (Dependency de in metadata.Runtime.Items1)
         {
             DependencyData dd = new DependencyData();
             dd.AssemblyName = de.AssemblyName;
             dd.BundleSymbolicName = de.BundleSymbolicName;
             runtimeData.AddDependency(dd);
         }
     }
 }