private TargetDependency ConvertTargetDependency(AssemblyName assembly)
        {
            var result = new TargetDependency()
            {
                ProjectName = assembly.Name,
                Version     = assembly.Version
            };

            return(result);
        }
Example #2
0
    /// <summary>
    /// Disposes the underlying bindings.
    /// </summary>
    public override void Dispose()
    {
      //deregister event listeners
      SourceDependency.DependencyChanged -= OnSourceChanged;
      if (IsTwoWayBinding) TargetDependency.DependencyChanged -= OnTargetChanged;

      //clear dependencies and references
      SourceDependency.Dispose();
      TargetDependency.Dispose();
      SourceDependency = null;
      TargetDependency = null;
    }
Example #3
0
 public void Visit(TargetDependency targetDependency)
 {
     if (currentTarget.Resource == targetDependency.Target.Resource)
     {
         sb.AppendFormat("{0}{1}{2};", prefix, targetDependency.Type, targetDependency.Target.Name);
     }
     else
     {
         sb.AppendFormat("{0}{1}{2}:{3};", prefix, targetDependency.Target.Resource, targetDependency.Type, targetDependency.Target.Name);
     }
     prefix = string.Empty;
 }
 public Target(TargetDependency targetDependency)
 {
     Assert.IsNotNull(targetDependency);
     Dependency = targetDependency;
 }