1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
7 partial class TypeLoadException
10 internal TypeLoadException (string className
, string assemblyName
)
13 _className
= className
;
14 _assemblyName
= assemblyName
;
17 void SetMessageField ()
22 if (_className
== null) {
23 _message
= SR
.Arg_TypeLoadException
;
27 _message
= SR
.Format ("Could not load type '{0}' from assembly '{1}'.", _className
, _assemblyName
?? SR
.IO_UnknownFileName
);