Changeset 3935 for trunk/sources/HeuristicLab.Persistence/3.3/Auxiliary
- Timestamp:
- 06/21/10 15:58:31 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Auxiliary/TypeName.cs
r3903 r3935 176 176 sb.Append(">"); 177 177 } 178 sb.Append(MemoryMagic); 179 return sb.ToString(); 180 } 181 182 public string GetTypeNameInCode(bool includeAllNamespaces) { 183 StringBuilder sb = new StringBuilder(); 184 if (includeAllNamespaces) 185 sb.Append(Namespace).Append('.'); 186 sb.Append(ClassName); 187 if (IsGeneric) { 188 sb.Append("<"); 189 sb.Append( 190 string.Join(", ", 191 GenericArgs 192 .Select(a => a.GetTypeNameInCode(includeAllNamespaces)) 193 .ToArray())); 194 sb.Append(">"); 195 } 196 sb.Append(MemoryMagic); 178 197 return sb.ToString(); 179 198 }
Note: See TracChangeset
for help on using the changeset viewer.