Как я могу квалифицировать тип.NET с именем сборки для отладчика Visual Studio для устранения неоднозначности при использовании неоднозначного типа?

MATLAB, 56 символов

на основе решения @gnovice , улучшено с помощью функции MATLAB spiral :))

disp(char(isprime(flipud(spiral(2*input('')-1)))*10+32))

Тестовые случаи:

>> disp(char(isprime(flipud(spiral(2*input('')-1)))*10+32))
2
* *
  *
*  
>> disp(char(isprime(flipud(spiral(2*input('')-1)))*10+32))
3
*   *
 * * 
*  **
 *   
  *  
>> disp(char(isprime(flipud(spiral(2*input('')-1)))*10+32))
5
    * *  
 *     * 
* *   *  
   * * * 
  *  ** *
 * *     
*   *    
 *   *   
*     *  

11
задан Maslow 29 September 2014 в 20:21
поделиться

1 ответ

It sounds like you have two types which have the same name and namespace but live in different assemblies? If that is the case, unfortunately there is no way to disambiguate this call in the immediate window. The immediate window considers both of these types to be in scope and since assembly name cannot be a part of the cast syntax in C# or VB.Net there is no way to disambiguate these types.

The only option you have is to create an alternate debug only API which binds to one or the other. Then call this during the debugging session.

7
ответ дан 3 December 2019 в 10:44
поделиться
Другие вопросы по тегам:

Похожие вопросы: