Пример #1
0
 /// <summary>
 /// Converts the instance of <see cref="!:TSource" /> type to the instance of <see cref="!:TTarget" />.
 /// </summary>
 /// <param name="source">The instance of <see cref="!:TSource" />.</param>
 /// <param name="target">The instance of <see cref="!:TTarget" />.</param>
 /// <returns>
 /// The converted instance of <see cref="!:TTarget" />.
 /// </returns>
 public Contracts.Catalog Convert(Storage source, Contracts.Catalog target)
 {
     return(this.Convert((CatalogRoot)source, target));
 }
Пример #2
0
        /// <summary>
        /// Converts the instance of <see cref="!:TSource" /> type to the instance of <see cref="!:TTarget" />.
        /// </summary>
        /// <param name="source">The instance of <see cref="!:TSource" />.</param>
        /// <param name="target">The instance of <see cref="!:TTarget" />.</param>
        /// <returns>
        /// The converted instance of <see cref="!:TTarget" />.
        /// </returns>
        public Storage Convert(Contracts.Catalog source, Storage target)
        {
            this.Convert(source, (CatalogRoot)target);

            return(target);
        }