<value>The specified arrays must have the same number of dimensions.</value>
</data>
<data name="ReflectionTypeLoad_LoadFailed" xml:space="preserve">
- <value>Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.</value>
+ <value>Unable to load one or more of the requested types.</value>
</data>
<data name="Remoting_AppDomainUnloaded_ThreadUnwound" xml:space="preserve">
<value>The application domain in which the thread was running has been unloaded.</value>
// See the LICENSE file in the project root for more information.
using System.Runtime.Serialization;
+using System.Text;
namespace System.Reflection
{
info.AddValue("Exceptions", LoaderExceptions, typeof(Exception[]));
}
+ public override string Message
+ {
+ get
+ {
+ if (LoaderExceptions.Length == 0)
+ {
+ return base.Message;
+ }
+
+ StringBuilder text = new StringBuilder();
+ text.AppendLine(base.Message);
+ foreach (Exception e in LoaderExceptions)
+ {
+ text.AppendLine(e.Message);
+ }
+ return text.ToString();
+ }
+ }
+
+ public override string ToString()
+ {
+ StringBuilder text = new StringBuilder();
+ text.AppendLine(SR.ReflectionTypeLoad_LoadFailed);
+
+ foreach (Exception e in LoaderExceptions)
+ {
+ text.AppendLine(e.ToString());
+ }
+
+ return text.ToString();
+ }
+
public Type[] Types { get; }
public Exception[] LoaderExceptions { get; }