我试图找到解决方案如何在VS2010中隐藏和取消隐藏评论.我发现的是:
# region
comments for code
#endregion
Run Code Online (Sandbox Code Playgroud)
和:
http://holyhoehle.wordpress.com/2010/01/17/hide-comments-in-visual-studio/
但是这个在VS2010中不起作用或者我不知道如何...
所以也许任何人都可以帮助并提供一些解决方案来隐藏以下评论:
string x = "...." //comment
Run Code Online (Sandbox Code Playgroud) 我正在尝试向Google电子表格添加一行。他们提供了一个来源https://developers.google.com/google-apps/spreadsheets/#adding_a_list_row,但 该来源不适合我。任何人都可以告诉我,女巫包含名称“ row”的行有什么问题。“错误11名称'行'在当前上下文中不存在”
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Google.GData.Client;
using Google.GData.Spreadsheets;
namespace Google_test3
{
class Program
{
static void Main(string[] args)
{
string USERNAME = "test";
string PASSWORD = "test";
SpreadsheetsService service = new SpreadsheetsService("MySpreadsheetIntegration-v1");
service.setUserCredentials(USERNAME, PASSWORD);
// Instantiate a SpreadsheetQuery object to retrieve spreadsheets.
SpreadsheetQuery query = new SpreadsheetQuery();
// Make a request to the API and get all spreadsheets.
SpreadsheetFeed feed = service.Query(query);
if (feed.Entries.Count == 0)
{
Console.WriteLine("None");
}
// TODO: Choose …
Run Code Online (Sandbox Code Playgroud) 简单的代码我有小问题.此代码在"x86"模式下正常工作,但在"任何CPU"模式下无法正常工作,也许可以在"x86"上运行一个类,在"任何CPU"模式下运行另一个类?码:
namespace Software_Info_v1._0
{
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Win32;
public class Adobe
{
public string GetAdobeVersion()
{
try
{
RegistryKey adobe = Registry.LocalMachine.OpenSubKey("Software").OpenSubKey("Adobe");
if (adobe != null)
{
RegistryKey acroRead = adobe.OpenSubKey("Acrobat Reader");
if (acroRead != null)
{
string[] acroReadVersions = acroRead.GetSubKeyNames();
foreach (string versionNumber in acroReadVersions)
{
Console.WriteLine("Acrobat Reader version: " + versionNumber);
}
}
}
}
catch
{
}
return null;
}
}
}
Run Code Online (Sandbox Code Playgroud)