Beispiel #1
0
 static string P_ConstructMessage(IMetadataReference reference, IMetadata @base, string message, Exception innerException)
 {
     if (!(string.IsNullOrEmpty(message) && reference == null && @base == null))
     {
         if (innerException == null)
         {
             return(FormatXResource(typeof(MetadataReferenceException), "Detailed", message, reference.FmtStr().G(), @base.FmtStr().G()));
         }
         return(FormatXResource(typeof(MetadataReferenceException), "Detailed/InnerException", message, reference.FmtStr().G(), @base.FmtStr().G()));
     }
     else if (innerException == null)
     {
         return(FormatXResource(typeof(MetadataReferenceException), subpath: null));
     }
     return(FormatXResource(typeof(MetadataReferenceException), "InnerException"));
 }