diff --git a/docs/csharp/language-reference/compiler-messages/cs0234.md b/docs/csharp/language-reference/compiler-messages/cs0234.md index 6585f4ab323..1138e1583d5 100644 --- a/docs/csharp/language-reference/compiler-messages/cs0234.md +++ b/docs/csharp/language-reference/compiler-messages/cs0234.md @@ -29,9 +29,10 @@ translation.priority.ht: - tr-tr - zh-cn - zh-tw -translationtype: Human Translation +ms.translationtype: Human Translation ms.sourcegitcommit: a06bd2a17f1d6c7308fa6337c866c1ca2e7281c0 ms.openlocfilehash: 651a00b8ab2174ba3a22e05c49e843ff4a74bb41 +ms.contentlocale: ja-jp ms.lasthandoff: 03/13/2017 --- @@ -50,7 +51,7 @@ ms.lasthandoff: 03/13/2017 次の例では CS0234 が生成されます。 -``` +```csharp // CS0234.cs public class C { diff --git a/docs/csharp/language-reference/compiler-messages/cs0311.md b/docs/csharp/language-reference/compiler-messages/cs0311.md index 356bf06ee46..edd19d4d037 100644 --- a/docs/csharp/language-reference/compiler-messages/cs0311.md +++ b/docs/csharp/language-reference/compiler-messages/cs0311.md @@ -49,7 +49,7 @@ ms.lasthandoff: 05/22/2017 ## 例 -``` +```csharp // cs0311.cs class B{} class C{} diff --git a/docs/csharp/language-reference/compiler-messages/cs1919.md b/docs/csharp/language-reference/compiler-messages/cs1919.md index 9268f4f2715..dc81f65a868 100644 --- a/docs/csharp/language-reference/compiler-messages/cs1919.md +++ b/docs/csharp/language-reference/compiler-messages/cs1919.md @@ -29,9 +29,10 @@ translation.priority.ht: - tr-tr - zh-cn - zh-tw -translationtype: Human Translation +ms.translationtype: Human Translation ms.sourcegitcommit: a06bd2a17f1d6c7308fa6337c866c1ca2e7281c0 ms.openlocfilehash: ea3718e91a7ae42c4548fde8d4a8654acf0080d3 +ms.contentlocale: ja-jp ms.lasthandoff: 03/13/2017 --- @@ -49,7 +50,7 @@ ms.lasthandoff: 03/13/2017 ## 例 次の例では、ポインター型が安全でないため、CS1919 エラーが発生します。 -``` +```csharp // cs1919.cs // Compile with: /unsafe unsafe public class C diff --git a/docs/csharp/language-reference/compiler-messages/cs1936.md b/docs/csharp/language-reference/compiler-messages/cs1936.md index f11850bd3cf..02fdd8027bd 100644 --- a/docs/csharp/language-reference/compiler-messages/cs1936.md +++ b/docs/csharp/language-reference/compiler-messages/cs1936.md @@ -50,7 +50,7 @@ ms.lasthandoff: 05/22/2017 ## 例 次の例では CS1936 が生成されます。 -``` +```csharp // cs1936.cs using System.Collections; using System.Linq; diff --git a/docs/csharp/language-reference/compiler-messages/cs4014.md b/docs/csharp/language-reference/compiler-messages/cs4014.md index 3cfcd28c653..0435352f7aa 100644 --- a/docs/csharp/language-reference/compiler-messages/cs4014.md +++ b/docs/csharp/language-reference/compiler-messages/cs4014.md @@ -104,7 +104,7 @@ async Task CalledMethodAsync(int howLong) この例では、呼び出し 1 または呼び出し 2 を選択した場合、完了が待機されない非同期メソッド (`CalledMethodAsync`) は、呼び出し元 (`CallingMethodAsync`) と呼び出し元の呼び出し元 (`startButton_Click`) の両方が完了した後に完了します。 次の出力の最後の行に、呼び出されたメソッドがいつ完了したかが示されています。 この出力には、完全な例の `CallingMethodAsync` を呼び出すイベント ハンドラーへのエントリとその終了が示されています。 -``` +```console Entering the Click event handler. Entering calling method. Entering called method, starting and awaiting Task.Delay. diff --git a/docs/csharp/language-reference/compiler-options/addmodule-compiler-option.md b/docs/csharp/language-reference/compiler-options/addmodule-compiler-option.md index 14634a51d8e..fe11cdeb350 100644 --- a/docs/csharp/language-reference/compiler-options/addmodule-compiler-option.md +++ b/docs/csharp/language-reference/compiler-options/addmodule-compiler-option.md @@ -43,7 +43,7 @@ ms.lasthandoff: 05/10/2017 ## 構文 -``` +```console /addmodule:file[;file2] ``` @@ -63,7 +63,7 @@ ms.lasthandoff: 05/10/2017 ## 例 ソース ファイル `input.cs` をコンパイルし、`metad1.netmodule` と `metad2.netmodule` からメタデータを追加し、`out.exe` を生成します。 -``` +```console csc /addmodule:metad1.netmodule;metad2.netmodule /out:out.exe input.cs ``` diff --git a/docs/csharp/language-reference/compiler-options/appconfig-compiler-option.md b/docs/csharp/language-reference/compiler-options/appconfig-compiler-option.md index 8555b483ebe..86420b4554e 100644 --- a/docs/csharp/language-reference/compiler-options/appconfig-compiler-option.md +++ b/docs/csharp/language-reference/compiler-options/appconfig-compiler-option.md @@ -41,7 +41,7 @@ ms.lasthandoff: 05/10/2017 ## 構文 -``` +```console /appconfig:file ``` @@ -64,7 +64,7 @@ ms.lasthandoff: 05/10/2017 ## 例 .NET Framework と .NET Framework for Silverlight の両方の実装に存在する .NET Framework アセンブリについて、その両方の実装をアプリケーションで参照できるようにする app.config ファイルの例を次に示します。 **/appconfig** コンパイラ オプションにより、この app.config ファイルの場所が指定されます。 -``` +```xml diff --git a/docs/csharp/language-reference/compiler-options/checked-compiler-option.md b/docs/csharp/language-reference/compiler-options/checked-compiler-option.md index fffacced895..42102131755 100644 --- a/docs/csharp/language-reference/compiler-options/checked-compiler-option.md +++ b/docs/csharp/language-reference/compiler-options/checked-compiler-option.md @@ -43,7 +43,7 @@ ms.lasthandoff: 05/22/2017 ## 構文 -``` +```console /checked[+ | -] ``` @@ -69,7 +69,7 @@ ms.lasthandoff: 05/22/2017 ## 例 次のコマンドは `t2.cs` をコンパイルします。 コマンドで使用されている `/checked` は、ファイル内の整数の算術ステートメントのうち、`checked` または `unchecked` キーワードのスコープ内に含まれず、データ型の範囲外の値になるステートメントで、ランタイム例外が発生することを指定します。 -``` +```console csc t2.cs /checked ``` diff --git a/docs/csharp/language-reference/compiler-options/debug-compiler-option.md b/docs/csharp/language-reference/compiler-options/debug-compiler-option.md index a3a3a29f84e..71e37a3368d 100644 --- a/docs/csharp/language-reference/compiler-options/debug-compiler-option.md +++ b/docs/csharp/language-reference/compiler-options/debug-compiler-option.md @@ -43,7 +43,7 @@ ms.lasthandoff: 05/10/2017 ## 構文 -``` +```console /debug[+ | -] /debug:{full | pdbonly} ``` @@ -82,7 +82,7 @@ ms.lasthandoff: 05/10/2017 ## 例 デバッグ情報を出力ファイル `app.pdb` に出力します。 -``` +```console csc /debug /pdb:app.pdb test.cs ``` diff --git a/docs/csharp/language-reference/compiler-options/delaysign-compiler-option.md b/docs/csharp/language-reference/compiler-options/delaysign-compiler-option.md index d7af0a735d5..a60b5564c03 100644 --- a/docs/csharp/language-reference/compiler-options/delaysign-compiler-option.md +++ b/docs/csharp/language-reference/compiler-options/delaysign-compiler-option.md @@ -43,7 +43,7 @@ ms.lasthandoff: 05/10/2017 ## 構文 -``` +```console /delaysign[ + | - ] ``` diff --git a/docs/csharp/language-reference/compiler-options/doc-compiler-option.md b/docs/csharp/language-reference/compiler-options/doc-compiler-option.md index d0a2aa64c2e..838550fb105 100644 --- a/docs/csharp/language-reference/compiler-options/doc-compiler-option.md +++ b/docs/csharp/language-reference/compiler-options/doc-compiler-option.md @@ -35,9 +35,10 @@ translation.priority.ht: - tr-tr - zh-cn - zh-tw -translationtype: Human Translation +ms.translationtype: Human Translation ms.sourcegitcommit: a06bd2a17f1d6c7308fa6337c866c1ca2e7281c0 ms.openlocfilehash: 8addbbfe1e854feee560192292b713da4fc67e6c +ms.contentlocale: ja-jp ms.lasthandoff: 03/13/2017 --- @@ -46,7 +47,7 @@ ms.lasthandoff: 03/13/2017 ## 構文 -``` +```console /doc:file ``` diff --git a/docs/csharp/language-reference/compiler-options/errorreport-compiler-option.md b/docs/csharp/language-reference/compiler-options/errorreport-compiler-option.md index 475d380e762..e54a5148c59 100644 --- a/docs/csharp/language-reference/compiler-options/errorreport-compiler-option.md +++ b/docs/csharp/language-reference/compiler-options/errorreport-compiler-option.md @@ -46,7 +46,7 @@ ms.lasthandoff: 05/22/2017 ## 構文 -``` +```console /errorreport:{ none | prompt | queue | send } ``` diff --git a/docs/csharp/language-reference/compiler-options/filealign-compiler-option.md b/docs/csharp/language-reference/compiler-options/filealign-compiler-option.md index eb6446cffe8..0f527707206 100644 --- a/docs/csharp/language-reference/compiler-options/filealign-compiler-option.md +++ b/docs/csharp/language-reference/compiler-options/filealign-compiler-option.md @@ -51,7 +51,7 @@ ms.lasthandoff: 05/22/2017 ## 構文 -``` +```console /filealign:number ``` diff --git a/docs/csharp/language-reference/compiler-options/highentropyva-compiler-option.md b/docs/csharp/language-reference/compiler-options/highentropyva-compiler-option.md index 88e427c5c57..b0be8ad3595 100644 --- a/docs/csharp/language-reference/compiler-options/highentropyva-compiler-option.md +++ b/docs/csharp/language-reference/compiler-options/highentropyva-compiler-option.md @@ -31,9 +31,10 @@ translation.priority.ht: - tr-tr - zh-cn - zh-tw -translationtype: Human Translation +ms.translationtype: Human Translation ms.sourcegitcommit: a06bd2a17f1d6c7308fa6337c866c1ca2e7281c0 ms.openlocfilehash: c1b49faa2fb388b330c24bdff28d00872828b110 +ms.contentlocale: ja-jp ms.lasthandoff: 03/13/2017 --- @@ -42,7 +43,7 @@ ms.lasthandoff: 03/13/2017 ## 構文 -``` +```console /highentropyva[+ | -] ``` diff --git a/docs/csharp/language-reference/compiler-options/keycontainer-compiler-option.md b/docs/csharp/language-reference/compiler-options/keycontainer-compiler-option.md index cd20bd06ee0..9135eb31a78 100644 --- a/docs/csharp/language-reference/compiler-options/keycontainer-compiler-option.md +++ b/docs/csharp/language-reference/compiler-options/keycontainer-compiler-option.md @@ -43,7 +43,7 @@ ms.lasthandoff: 05/10/2017 ## 構文 -``` +```console /keycontainer:string ``` diff --git a/docs/csharp/language-reference/compiler-options/keyfile-compiler-option.md b/docs/csharp/language-reference/compiler-options/keyfile-compiler-option.md index d6cdb535c37..baa680187c6 100644 --- a/docs/csharp/language-reference/compiler-options/keyfile-compiler-option.md +++ b/docs/csharp/language-reference/compiler-options/keyfile-compiler-option.md @@ -43,7 +43,7 @@ ms.lasthandoff: 05/10/2017 ## 構文 -``` +```console /keyfile:file ``` diff --git a/docs/csharp/language-reference/compiler-options/lib-compiler-option.md b/docs/csharp/language-reference/compiler-options/lib-compiler-option.md index 29eb228448b..c91b2f73c5c 100644 --- a/docs/csharp/language-reference/compiler-options/lib-compiler-option.md +++ b/docs/csharp/language-reference/compiler-options/lib-compiler-option.md @@ -43,7 +43,7 @@ ms.lasthandoff: 05/10/2017 ## 構文 -``` +```console /lib:dir1[,dir2] ``` @@ -86,7 +86,7 @@ ms.lasthandoff: 05/10/2017 ## 例 t2.cs をコンパイルして .exe ファイルを作成します。 コンパイラは、作業ディレクトリと C ドライブのルート ディレクトリで、アセンブリ参照を探します。 -``` +```console csc /lib:c:\ /reference:t2.dll t2.cs ``` diff --git a/docs/csharp/language-reference/compiler-options/linkresource-compiler-option.md b/docs/csharp/language-reference/compiler-options/linkresource-compiler-option.md index 255aa3120a9..a80d5263c6a 100644 --- a/docs/csharp/language-reference/compiler-options/linkresource-compiler-option.md +++ b/docs/csharp/language-reference/compiler-options/linkresource-compiler-option.md @@ -46,7 +46,7 @@ ms.lasthandoff: 05/10/2017 ## 構文 -``` +```console /linkresource:filename[,identifier[,accessibility-modifier]] ``` @@ -76,14 +76,14 @@ ms.lasthandoff: 05/10/2017 ## 例 `in.cs` をコンパイルして、リソース ファイル `rf.resource` にリンクします。 -``` +```console csc /linkresource:rf.resource in.cs ``` ## 例 `A.cs` をコンパイルして DLL を作成し、ネイティブ DLL N.dll にリンクして、出力をグローバル アセンブリ キャッシュ (GAC) に配置します。 この例では、A.dll と N.dll の両方を GAC に置きます。 -``` +```console csc /linkresource:N.dll /t:library A.cs gacutil -i A.dll ``` @@ -91,7 +91,7 @@ gacutil -i A.dll ## 例 この例では、前の例と同じことを行いますが、アセンブリ リンカー オプションを使います。 -``` +```console csc /t:module A.cs al /out:A.dll A.netmodule /link:N.dll gacutil -i A.dll diff --git a/docs/csharp/language-reference/compiler-options/main-compiler-option.md b/docs/csharp/language-reference/compiler-options/main-compiler-option.md index 5e9ac723ff4..aac639f7cb1 100644 --- a/docs/csharp/language-reference/compiler-options/main-compiler-option.md +++ b/docs/csharp/language-reference/compiler-options/main-compiler-option.md @@ -31,9 +31,10 @@ translation.priority.ht: - tr-tr - zh-cn - zh-tw -translationtype: Human Translation +ms.translationtype: Human Translation ms.sourcegitcommit: a06bd2a17f1d6c7308fa6337c866c1ca2e7281c0 ms.openlocfilehash: fa8c02a6521b65e2cc4f7c8d779c1091ce399fba +ms.contentlocale: ja-jp ms.lasthandoff: 03/13/2017 --- @@ -42,7 +43,7 @@ ms.lasthandoff: 03/13/2017 ## 構文 -``` +```console /main:class ``` @@ -68,7 +69,7 @@ ms.lasthandoff: 03/13/2017 ## 例 **Main** メソッドが`Test2` にあることを指定して、`t2.cs` と `t3.cs` をコンパイルします。 -``` +```console csc t2.cs t3.cs /main:Test2 ``` diff --git a/docs/csharp/language-reference/compiler-options/nowarn-compiler-option.md b/docs/csharp/language-reference/compiler-options/nowarn-compiler-option.md index fa56ea043ab..a345bb9b8ed 100644 --- a/docs/csharp/language-reference/compiler-options/nowarn-compiler-option.md +++ b/docs/csharp/language-reference/compiler-options/nowarn-compiler-option.md @@ -31,9 +31,10 @@ translation.priority.ht: - tr-tr - zh-cn - zh-tw -translationtype: Human Translation +ms.translationtype: Human Translation ms.sourcegitcommit: a06bd2a17f1d6c7308fa6337c866c1ca2e7281c0 ms.openlocfilehash: 34152b6e7247ac112bcc9c725402b8c9a5d631ed +ms.contentlocale: ja-jp ms.lasthandoff: 03/13/2017 --- @@ -42,7 +43,7 @@ ms.lasthandoff: 03/13/2017 ## 構文 -``` +```console /nowarn:number1[,number2,...] ``` diff --git a/docs/csharp/language-reference/compiler-options/nowin32manifest-compiler-option.md b/docs/csharp/language-reference/compiler-options/nowin32manifest-compiler-option.md index 99513a38368..eee41b33d32 100644 --- a/docs/csharp/language-reference/compiler-options/nowin32manifest-compiler-option.md +++ b/docs/csharp/language-reference/compiler-options/nowin32manifest-compiler-option.md @@ -31,9 +31,10 @@ translation.priority.ht: - tr-tr - zh-cn - zh-tw -translationtype: Human Translation +ms.translationtype: Human Translation ms.sourcegitcommit: a06bd2a17f1d6c7308fa6337c866c1ca2e7281c0 ms.openlocfilehash: ce96938ee00df7bfae742369673f75f8d39abd12 +ms.contentlocale: ja-jp ms.lasthandoff: 03/13/2017 --- @@ -42,7 +43,7 @@ ms.lasthandoff: 03/13/2017 ## 構文 -``` +```console /nowin32manifest ``` diff --git a/docs/csharp/language-reference/compiler-options/preferreduilang-compiler-option.md b/docs/csharp/language-reference/compiler-options/preferreduilang-compiler-option.md index 0765906492e..11b1c50e0d3 100644 --- a/docs/csharp/language-reference/compiler-options/preferreduilang-compiler-option.md +++ b/docs/csharp/language-reference/compiler-options/preferreduilang-compiler-option.md @@ -43,7 +43,7 @@ ms.lasthandoff: 03/24/2017 ## 構文 -``` +```console /preferreduilang: language ``` diff --git a/docs/csharp/language-reference/compiler-options/reference-compiler-option.md b/docs/csharp/language-reference/compiler-options/reference-compiler-option.md index fdcdcdd09cd..4f276e0c5d4 100644 --- a/docs/csharp/language-reference/compiler-options/reference-compiler-option.md +++ b/docs/csharp/language-reference/compiler-options/reference-compiler-option.md @@ -48,7 +48,7 @@ ms.lasthandoff: 03/31/2017 ## 構文 -``` +```console /reference:[alias=]filename /reference:filename ``` @@ -95,7 +95,7 @@ ms.lasthandoff: 03/31/2017 これは、外部別名 "GridV1" と "GridV2" を設定します。プログラムではこれらを extern ステートメントで使います。 -``` +```csharp extern alias GridV1; extern alias GridV2; // Using statements go here. @@ -103,13 +103,13 @@ extern alias GridV2; このようにすると、コントロール名にプレフィックス GridV1 を付けることで、grid.dll のグリッド コントロールを参照できます。次に示すのはその例です。 -``` +```csharp GridV1::Grid ``` さらに、コントロール名にプレフィックス GridV2 を付けると、grid20.dll のグリッド コントロールを参照できます。次に示すのはその例です。 -``` +```csharp GridV2::Grid ``` diff --git a/docs/csharp/language-reference/compiler-options/target-exe-compiler-option.md b/docs/csharp/language-reference/compiler-options/target-exe-compiler-option.md index 3eb2e3dde21..e5243023fac 100644 --- a/docs/csharp/language-reference/compiler-options/target-exe-compiler-option.md +++ b/docs/csharp/language-reference/compiler-options/target-exe-compiler-option.md @@ -31,9 +31,10 @@ translation.priority.ht: - tr-tr - zh-cn - zh-tw -translationtype: Human Translation +ms.translationtype: Human Translation ms.sourcegitcommit: a06bd2a17f1d6c7308fa6337c866c1ca2e7281c0 ms.openlocfilehash: 9d5784186f564241c896333d518e297c3c094f28 +ms.contentlocale: ja-jp ms.lasthandoff: 03/13/2017 --- @@ -42,7 +43,7 @@ ms.lasthandoff: 03/13/2017 ## 構文 -``` +```console /target:exe ``` @@ -70,7 +71,7 @@ ms.lasthandoff: 03/13/2017 ## 例 次のコマンド ラインのいずれかで `in.cs` がコンパイルされ、`in.exe` が作成されます。 -``` +```console csc /target:exe in.cs csc in.cs ``` diff --git a/docs/csharp/language-reference/compiler-options/target-library-compiler-option.md b/docs/csharp/language-reference/compiler-options/target-library-compiler-option.md index 2738a052d3c..18569a5d151 100644 --- a/docs/csharp/language-reference/compiler-options/target-library-compiler-option.md +++ b/docs/csharp/language-reference/compiler-options/target-library-compiler-option.md @@ -31,9 +31,10 @@ translation.priority.ht: - tr-tr - zh-cn - zh-tw -translationtype: Human Translation +ms.translationtype: Human Translation ms.sourcegitcommit: a06bd2a17f1d6c7308fa6337c866c1ca2e7281c0 ms.openlocfilehash: f739d778e7bada7f34e42ecfd05364e8cae5d453 +ms.contentlocale: ja-jp ms.lasthandoff: 03/13/2017 --- @@ -42,7 +43,7 @@ ms.lasthandoff: 03/13/2017 ## 構文 -``` +```console /target:library ``` @@ -68,7 +69,7 @@ ms.lasthandoff: 03/13/2017 ## 例 `in.cs` をコンパイルし、`in.dll` を作成するには、次のコードを使用します。 -``` +```console csc /target:library in.cs ``` diff --git a/docs/csharp/language-reference/compiler-options/target-winexe-compiler-option.md b/docs/csharp/language-reference/compiler-options/target-winexe-compiler-option.md index defd474906b..fd945512f85 100644 --- a/docs/csharp/language-reference/compiler-options/target-winexe-compiler-option.md +++ b/docs/csharp/language-reference/compiler-options/target-winexe-compiler-option.md @@ -31,9 +31,10 @@ translation.priority.ht: - tr-tr - zh-cn - zh-tw -translationtype: Human Translation +ms.translationtype: Human Translation ms.sourcegitcommit: a06bd2a17f1d6c7308fa6337c866c1ca2e7281c0 ms.openlocfilehash: e9a640c0cfa1d0494457f8ffe94bf15877b24919 +ms.contentlocale: ja-jp ms.lasthandoff: 03/13/2017 --- @@ -42,7 +43,7 @@ ms.lasthandoff: 03/13/2017 ## 構文 -``` +```console /target:winexe ``` @@ -70,7 +71,7 @@ ms.lasthandoff: 03/13/2017 ## 例 `in.cs` をコンパイルし、Windows プログラムを生成する例を次に示します。 -``` +```console csc /target:winexe in.cs ```