Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Hive_Milestone3/sources/HeuristicLab.Persistence/3.3/Auxiliary/TypeExtensions.cs @ 4539

Last change on this file since 4539 was 1779, checked in by epitzer, 15 years ago

Better type name parser. Replace reflection based type name generation, better exceptions during deserialization. (#613)

File size: 294 bytes
Line 
1using System;
2using System.Text;
3
4namespace HeuristicLab.Persistence.Auxiliary {
5
6  public static class TypeExtensions {
7
8    public static string VersionInvariantName(this Type type) {
9      return TypeNameParser.Parse(type.AssemblyQualifiedName).ToString(false);
10    }
11
12  }
13
14}
Note: See TracBrowser for help on using the repository browser.