Changeset 3036 for trunk/sources/HeuristicLab.Persistence/3.3/Auxiliary
- Timestamp:
- 03/15/10 14:45:46 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Persistence/3.3/Auxiliary
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Auxiliary/TypeLoader.cs
r3004 r3036 20 20 "Cannot load type \"{0}\", falling back to partial name", typeNameString)); 21 21 try { 22 TypeName typeName = TypeNameParser.Parse(typeNameString); 23 Assembly a = Assembly.LoadWithPartialName(typeName.AssemblyName); 22 TypeName typeName = TypeNameParser.Parse(typeNameString); 23 #pragma warning disable 0618 24 Assembly a = Assembly.LoadWithPartialName(typeName.AssemblyName); 25 // the suggested Assembly.Load() method fails to load assemblies outside the GAC 26 #pragma warning restore 0618 24 27 type = a.GetType(typeName.ToString(false, false), true); 25 28 } catch (Exception) { -
trunk/sources/HeuristicLab.Persistence/3.3/Auxiliary/TypeName.cs
r3017 r3036 36 36 [Storable] 37 37 public List<TypeName> GenericArgs { get; internal set; } 38 39 /// <summary> 40 /// Gets a value indicating whether this instance is generic. 41 /// </summary> 42 /// <value> 43 /// <c>true</c> if this instance is generic; otherwise, <c>false</c>. 44 /// </value> 38 45 public bool IsGeneric { get { return GenericArgs.Count > 0; } } 39 46 … … 87 94 /// Returns a <see cref="System.String"/> that represents this instance. 88 95 /// </summary> 89 /// <param name="full">if set to <c>true</c> includes full informat oin96 /// <param name="full">if set to <c>true</c> includes full information 90 97 /// about generic parameters and assembly properties.</param> 91 98 /// <returns> … … 100 107 /// Returns a <see cref="System.String"/> that represents this instance. 101 108 /// </summary> 109 /// <param name="full">if set to <c>true</c> includes full information 110 /// about generic parameters and assembly properties.</param> 102 111 /// <param name="includeAssembly">if set to <c>true</c> include assembly properties and generic parameters.</param> 103 112 /// <returns>
Note: See TracChangeset
for help on using the changeset viewer.