System.TypeLoadException.GetTypeLoadExceptionMessage C# (CSharp) Method

GetTypeLoadExceptionMessage() private method

private GetTypeLoadExceptionMessage ( int resourceId ) : String
resourceId int
return String
        private static extern String GetTypeLoadExceptionMessage(int resourceId);
    

Usage Example

Esempio n. 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);
     }
 }
All Usage Examples Of System.TypeLoadException::GetTypeLoadExceptionMessage