Changeset 2681
- Timestamp:
- 01/25/10 13:01:09 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators.Programmable/3.2/ProgrammableOperator.cs
r2679 r2681 124 124 foreach (var t in a.Key.GetTypes()) { 125 125 if (t.IsPublic) { 126 namespaces.Add(t.Namespace); 126 foreach (string ns in GetNamespaceHierachy(t.Namespace)) { 127 namespaces.Add(ns); 128 } 127 129 } 128 130 } … … 131 133 return namespaces; 132 134 } 135 136 private IEnumerable<string> GetNamespaceHierachy(string ns) { 137 for (int i = ns.Length; i != -1; i = ns.LastIndexOf('.', i - 1)) { 138 yield return ns.Substring(0, i); 139 } 140 } 141 133 142 #endregion 134 143 135 144 #region Construction & Initialization 136 145 137 146 public ProgrammableOperator() { 138 147 code = "";
Note: See TracChangeset
for help on using the changeset viewer.