Last change
on this file since 1779 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
|
Rev | Line | |
---|
[1703] | 1 | using System;
|
---|
| 2 | using System.Text;
|
---|
| 3 |
|
---|
| 4 | namespace HeuristicLab.Persistence.Auxiliary {
|
---|
| 5 |
|
---|
| 6 | public static class TypeExtensions {
|
---|
| 7 |
|
---|
| 8 | public static string VersionInvariantName(this Type type) {
|
---|
[1779] | 9 | return TypeNameParser.Parse(type.AssemblyQualifiedName).ToString(false);
|
---|
[1703] | 10 | }
|
---|
| 11 |
|
---|
| 12 | }
|
---|
| 13 |
|
---|
| 14 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.