예제 #1
0
        /// <summary>
        /// Constructs a <b>DirectConversion</b> that will transform between
        /// the specified releases.
        /// </summary>
        /// <param name="sourceRelease">The <see cref="Release"/> to convert from.</param>
        /// <param name="targetRelease">The <see cerf="Release"/> to convert to.</param>
        protected DirectConversion(Release sourceRelease, Release targetRelease)
        {
            this.sourceRelease = sourceRelease;
            this.targetRelease = targetRelease;

            if ((sourceRelease != null) && (targetRelease != null))
            {
                sourceRelease.AddSourceConversion(this);
                targetRelease.AddTargetConversion(this);
            }
        }