Changeset 9018 for trunk/sources/HeuristicLab.Persistence
- Timestamp:
- 12/10/12 14:32:49 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Auxiliary/TypeNameParser.cs
r9005 r9018 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 using System.Linq; 24 using System.Collections.Generic;25 25 using System.Text; 26 26 using System.Text.RegularExpressions; … … 89 89 90 90 private class Token { 91 public enum Symbol { None, Dash, Ampersand, Dot, Plus, Comma, OpenBracket, CloseBracket, Asterisk, Space, Equals, Backtick}91 public enum Symbol { None, Dash, Ampersand, Dot, Plus, Comma, OpenBracket, CloseBracket, Asterisk, Space, Equals, Backtick } 92 92 private static readonly Dictionary<string, Symbol> TOKENS = 93 93 new Dictionary<string, Symbol> { … … 157 157 /// <summary> 158 158 /// Parses the specified typename string as obtained by 159 /// <c>System.Object.GetType().FullName"</c>. 159 /// <c>System.Object.GetType().FullName</c> or 160 /// <c>System.Object.GetType().AssemblyQualifiedName</c>. 160 161 /// </summary> 161 162 /// <param name="s">The typename string.</param> … … 189 190 190 191 private TypeName TransformSimpleTypeSpec() { 191 var nameSpace = new List<string> { ConsumeIdentifier()};192 var nameSpace = new List<string> { ConsumeIdentifier() }; 192 193 while (ConsumeToken(Token.Symbol.Dot)) 193 194 nameSpace.Add(ConsumeIdentifier()); … … 200 201 ConsumeToken(Token.Symbol.Backtick) ? ConsumeNumber() : 0 201 202 }; 202 while (ConsumeToken(Token.Symbol.Plus)) {203 while (ConsumeToken(Token.Symbol.Plus)) { 203 204 className.Add(ConsumeIdentifier()); 204 205 genericArgCounts.Add(ConsumeToken(Token.Symbol.Backtick) ? ConsumeNumber() : 0);
Note: See TracChangeset
for help on using the changeset viewer.