- Timestamp:
- 02/17/17 13:01:00 (8 years ago)
- Location:
- branches/MemPRAlgorithm/HeuristicLab.Data
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/MemPRAlgorithm/HeuristicLab.Data
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/branches/crossvalidation-2434/HeuristicLab.Data merged eligible /stable/HeuristicLab.Data merged eligible /trunk/sources/HeuristicLab.Data merged eligible /branches/1721-RandomForestPersistence/HeuristicLab.Data 10321-10322 /branches/Algorithms.GradientDescent/HeuristicLab.Data 5516-5520 /branches/Benchmarking/sources/HeuristicLab.Data 6917-7005 /branches/CloningRefactoring/HeuristicLab.Data 4656-4721 /branches/CodeEditor/HeuristicLab.Data 11700-11806 /branches/DataAnalysis Refactoring/HeuristicLab.Data 5471-5808 /branches/DataAnalysis SolutionEnsembles/HeuristicLab.Data 5815-6180 /branches/DataAnalysis/HeuristicLab.Data 4458-4459,4462,4464 /branches/DataPreprocessing/HeuristicLab.Data 10085-11101 /branches/GP.Grammar.Editor/HeuristicLab.Data 6284-6795 /branches/GP.Symbols (TimeLag, Diff, Integral)/HeuristicLab.Data 5060 /branches/HLScript/HeuristicLab.Data 10331-10358 /branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.Data 11570-12508 /branches/HeuristicLab.Problems.DataAnalysis.Trading/HeuristicLab.Data 6123-9799 /branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Data 11130-12721 /branches/HiveStatistics/sources/HeuristicLab.Data 12440-12877 /branches/LogResidualEvaluator/HeuristicLab.Data 10202-10483 /branches/NET40/sources/HeuristicLab.Data 5138-5162 /branches/NSGA-II Changes/HeuristicLab.Data 12033-12122 /branches/ParallelEngine/HeuristicLab.Data 5175-5192 /branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Data 7568-7810 /branches/QAPAlgorithms/HeuristicLab.Data 6350-6627 /branches/Restructure trunk solution/HeuristicLab.Data 6828 /branches/RuntimeOptimizer/HeuristicLab.Data 8943-9078 /branches/ScatterSearch (trunk integration)/HeuristicLab.Data 7787-8333 /branches/SlaveShutdown/HeuristicLab.Data 8944-8956 /branches/SpectralKernelForGaussianProcesses/HeuristicLab.Data 10204-10479 /branches/SuccessProgressAnalysis/HeuristicLab.Data 5370-5682 /branches/Trunk/HeuristicLab.Data 6829-6865 /branches/UnloadJobs/HeuristicLab.Data 9168-9215 /branches/VNS/HeuristicLab.Data 5594-5752 /branches/histogram/HeuristicLab.Data 5959-6341
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
branches/MemPRAlgorithm/HeuristicLab.Data/3.3
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Data/3.3 (added) merged: 14597,14672
- Property svn:mergeinfo changed
-
branches/MemPRAlgorithm/HeuristicLab.Data/3.3/EnumValue.cs
r14185 r14680 52 52 private EnumValue(EnumValue<T> original, Cloner cloner) 53 53 : base(original, cloner) { 54 this.value = original.value;55 this.readOnly = original.readOnly;56 54 } 57 55 … … 64 62 } 65 63 } 64 65 public static class EnumHelper { 66 public static T SetFlag<T>(this Enum value, T flag, bool set) { 67 var baseType = Enum.GetUnderlyingType(value.GetType()); 68 dynamic valueAsBase = Convert.ChangeType(value, baseType); 69 dynamic flagAsBase = Convert.ChangeType(flag, baseType); 70 if (set) 71 valueAsBase |= flagAsBase; 72 else 73 valueAsBase &= ~flagAsBase; 74 return (T)valueAsBase; 75 } 76 } 66 77 }
Note: See TracChangeset
for help on using the changeset viewer.