Changeset 4996 for branches/HeuristicLab.DebugEngine/Utils.cs
- Timestamp:
- 11/30/10 00:03:39 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.DebugEngine/Utils.cs
r4909 r4996 3 3 using System.Text.RegularExpressions; 4 4 using HeuristicLab.Persistence.Auxiliary; 5 using HeuristicLab.Core; 5 6 6 7 namespace HeuristicLab.DebugEngine { 7 8 public static class Utils { 9 10 public static string Name(IAtomicOperation operation) { 11 return string.IsNullOrEmpty(operation.Operator.Name) ? operation.Operator.ItemName : operation.Operator.Name; 12 } 13 8 14 public static string TypeName(object obj) { 9 15 if (obj == null) … … 11 17 return TypeNameParser.Parse(obj.GetType().ToString()).GetTypeNameInCode(true); 12 18 } 19 13 20 public static string Wrap(string text, int columns) { 14 21 StringBuilder sb = new StringBuilder();
Note: See TracChangeset
for help on using the changeset viewer.