Clone() приватный Метод

private Clone ( ) : AutoSaveSettings
Результат AutoSaveSettings
Пример #1
0
        public ScanProfile Clone()
        {
            var profile = (ScanProfile)MemberwiseClone();

            if (profile.AutoSaveSettings != null)
            {
                profile.AutoSaveSettings = AutoSaveSettings.Clone();
            }
            return(profile);
        }
Пример #2
0
        public ScanProfile Clone()
        {
            var profile = (ScanProfile)MemberwiseClone();

            if (profile.AutoSaveSettings != null)
            {
                profile.AutoSaveSettings = AutoSaveSettings.Clone();
            }
            if (profile.HistogramStretchConfig != null)
            {
                profile.HistogramStretchConfig = HistogramStretchConfig.Clone();
            }
            return(profile);
        }