Clone() private method

private Clone ( ) : AutoSaveSettings
return AutoSaveSettings
示例#1
0
文件: ScanProfile.cs 项目: gas3/twain
        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);
        }