Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/30/10 00:03:39 (14 years ago)
Author:
epitzer
Message:

Move parent tracing to operator trace class (#47)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.DebugEngine/Utils.cs

    r4909 r4996  
    33using System.Text.RegularExpressions;
    44using HeuristicLab.Persistence.Auxiliary;
     5using HeuristicLab.Core;
    56
    67namespace HeuristicLab.DebugEngine {
    78  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
    814    public static string TypeName(object obj) {
    915      if (obj == null)
     
    1117      return TypeNameParser.Parse(obj.GetType().ToString()).GetTypeNameInCode(true);
    1218    }
     19
    1320    public static string Wrap(string text, int columns) {
    1421      StringBuilder sb = new StringBuilder();
Note: See TracChangeset for help on using the changeset viewer.