Example #1
0
        /// <summary>
        /// Creates a deep copy of this instance.
        /// </summary>
        /// <returns>Returns a deep copy of this instance.</returns>
        public IMediaTemplate Copy()
        {
            IMediaTemplate bp = new MediaTemplate();

            bp.MediaTemplateId = int.MinValue;
            bp.MimeType        = this.MimeType;
            bp.BrowserId       = this.BrowserId;
            bp.HtmlTemplate    = this.HtmlTemplate;
            bp.ScriptTemplate  = this.ScriptTemplate;

            return(bp);
        }
Example #2
0
        /// <summary>
        /// Creates a deep copy of this instance.
        /// </summary>
        /// <returns>Returns a deep copy of this instance.</returns>
        public IMediaTemplate Copy()
        {
            IMediaTemplate bp = new MediaTemplate();

            bp.MediaTemplateId = int.MinValue;
            bp.MimeType = this.MimeType;
            bp.BrowserId = this.BrowserId;
            bp.HtmlTemplate = this.HtmlTemplate;
            bp.ScriptTemplate = this.ScriptTemplate;

            return bp;
        }