Make TypeNameParser consistently use tabs
[mono-project.git] / netcore / System.Private.CoreLib / src / System / TypeLoadException.cs
blobe8f8f13c7298185143d8c7b86d32b2033dc57da2
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.
5 namespace System
7 partial class TypeLoadException
9 // Called by runtime
10 internal TypeLoadException (string className, string assemblyName)
11 : this (null)
13 _className = className;
14 _assemblyName = assemblyName;
17 void SetMessageField ()
19 if (_message != null)
20 return;
22 if (_className == null) {
23 _message = SR.Arg_TypeLoadException;
24 return;
27 _message = SR.Format ("Could not load type '{0}' from assembly '{1}'.", _className, _assemblyName ?? SR.IO_UnknownFileName);