コード例 #1
0
        public static void AddDependency(this IOutputTarget outputTarget, IOutputTarget dependency)
        {
            if (outputTarget.Equals(dependency))
            {
                throw new Exception($"OutputTarget [{outputTarget}] cannot add a dependency to itself");
            }
            var collection = outputTarget.Dependencies();

            if (!collection.Contains(dependency))
            {
                collection.Add(dependency);
            }
        }
コード例 #2
0
 public bool Equals(IOutputTarget other)
 {
     return(_outputTarget.Equals(other));
 }