Beispiel #1
0
        /// <summary>
        /// Создать копию объекта <see cref="HydraTaskSettings"/>.
        /// </summary>
        /// <returns>Копия объекта.</returns>
        public override HydraTaskSettings Clone()
        {
            var clone = GetType() == typeof(HydraTaskSettings)
                                ? new HydraTaskSettings()
                                : GetType().CreateInstance <HydraTaskSettings>(this);

            clone.Id                    = Id;
            clone.TaskType              = TaskType;
            clone.ExtensionInfo         = ExtensionInfo.ToDictionary();
            clone.Securities            = Securities;
            clone.SupportedLevel1Fields = SupportedLevel1Fields.ToArray();

            return(clone);
        }