Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/08/10 16:26:35 (14 years ago)
Author:
epitzer
Message:

Incorporate changes suggested by abeham in 842#comment:28 (#842)

  • Fix persistence of selected assemblies
  • Fix problem with static initialization
  • Make parameter values (ActualValue) with parameter object
  • show (or hide) parameter namespaces as necessary
  • add icons for buttons, assemblies and namespaces
  • sort assemblies and namespaces alphabetically
  • correctly mark and unmark select assemblies
  • put assemblies and namespaces into group boxes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Auxiliary/TypeName.cs

    r3743 r3903  
    2121
    2222using System;
     23using System.Linq;
    2324using System.Text;
    2425using System.Text.RegularExpressions;
     
    157158          foreach (var property in AssemblyAttribues)
    158159            sb.Append(", ").Append(property.Key).Append('=').Append(property.Value);
     160      }
     161      return sb.ToString();
     162    }
     163
     164    public string GetTypeNameInCode(HashSet<string> omitNamespaces) {
     165      StringBuilder sb = new StringBuilder();
     166      if (!string.IsNullOrEmpty(Namespace) && omitNamespaces == null || !omitNamespaces.Contains(Namespace))
     167        sb.Append(Namespace).Append('.');
     168      sb.Append(ClassName);
     169      if (IsGeneric) {
     170        sb.Append("<");
     171        sb.Append(
     172          string.Join(", ",
     173            GenericArgs
     174              .Select(a => a.GetTypeNameInCode(omitNamespaces))
     175              .ToArray()));
     176        sb.Append(">");
    159177      }
    160178      return sb.ToString();
Note: See TracChangeset for help on using the changeset viewer.