Free cookie consent management tool by TermsFeed Policy Generator

Changeset 267


Ignore:
Timestamp:
05/17/08 15:50:39 (17 years ago)
Author:
gkronber
Message:

using string.substring(0..n) instead of string.split()[0] because it is more light-weight

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core/PersistenceManager.cs

    r150 r267  
    8888    public static string BuildTypeString(Type type) {
    8989      string assembly = type.Assembly.FullName;
    90       assembly = assembly.Split(new string[] { ", " }, StringSplitOptions.None)[0];
     90      assembly = assembly.Substring(0, assembly.IndexOf(", "));
    9191
    9292      StringBuilder builder = new StringBuilder();
Note: See TracChangeset for help on using the changeset viewer.