GetTypeLoadExceptionMessage() приватный Метод

private GetTypeLoadExceptionMessage ( int resourceId ) : String
resourceId int
Результат String
Пример #1
0
 private void SetMessageField()
 {
     if (this._message != null)
     {
         return;
     }
     if (this.ClassName == null && this.ResourceId == 0)
     {
         this._message = Environment.GetResourceString("Arg_TypeLoadException");
     }
     else
     {
         if (this.AssemblyName == null)
         {
             this.AssemblyName = Environment.GetResourceString("IO_UnknownFileName");
         }
         if (this.ClassName == null)
         {
             this.ClassName = Environment.GetResourceString("IO_UnknownFileName");
         }
         string s = (string)null;
         TypeLoadException.GetTypeLoadExceptionMessage(this.ResourceId, JitHelpers.GetStringHandleOnStack(ref s));
         this._message = string.Format((IFormatProvider)CultureInfo.CurrentCulture, s, (object)this.ClassName, (object)this.AssemblyName, (object)this.MessageArg);
     }
 }
Пример #2
0
 private void SetMessageField()
 {
     if (this._message == null)
     {
         if (this.ClassName == null && this.ResourceId == 0)
         {
             this._message = Environment.GetResourceString("Arg_TypeLoadException");
             return;
         }
         if (this.AssemblyName == null)
         {
             this.AssemblyName = Environment.GetResourceString("IO_UnknownFileName");
         }
         if (this.ClassName == null)
         {
             this.ClassName = Environment.GetResourceString("IO_UnknownFileName");
         }
         string format = null;
         TypeLoadException.GetTypeLoadExceptionMessage(this.ResourceId, JitHelpers.GetStringHandleOnStack(ref format));
         this._message = string.Format(CultureInfo.CurrentCulture, format, this.ClassName, this.AssemblyName, this.MessageArg);
     }
 }