Clone() 개인적인 메소드

private Clone ( ) : AutoSaveSettings
리턴 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);
        }