Skip to content

Commit

Permalink
Commit translated content
Browse files Browse the repository at this point in the history
  • Loading branch information
olprod committed May 22, 2018
1 parent 03eebe6 commit a3904a7
Show file tree
Hide file tree
Showing 273 changed files with 5,048 additions and 3,545 deletions.
96 changes: 69 additions & 27 deletions docs/core/linux-prerequisites.md

Large diffs are not rendered by default.

10 changes: 3 additions & 7 deletions docs/core/windows-prerequisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,11 @@ description: Windows コンピューターで .NET Core アプリケーション
author: JRAlexander
ms.author: johalex
ms.date: 04/24/2018
ms.topic: conceptual
ms.prod: dotnet-core
ms.workload:
- dotnetcore
ms.openlocfilehash: 6f2ba8540a38f8e30d3d968f5e2c891c850053aa
ms.sourcegitcommit: 03ee570f6f528a7d23a4221dcb26a9498edbdf8c
ms.openlocfilehash: 7c6f39f004ebc39ca714ce419a38d842fcf8f0cb
ms.sourcegitcommit: ff1d40507b3eb6e2185478e37c66c66be6de46f1
ms.translationtype: HT
ms.contentlocale: ja-JP
ms.lasthandoff: 04/28/2018
ms.lasthandoff: 05/11/2018
---
# <a name="prerequisites-for-net-core-on-windows"></a>Windows における .NET Core の前提条件

Expand Down
8 changes: 4 additions & 4 deletions docs/csharp/async.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ description: .NET Core で提供される、C# 言語レベルの非同期プロ
author: cartermp
ms.date: 06/20/2016
ms.assetid: b878c34c-a78f-419e-a594-a2b44fa521a4
ms.openlocfilehash: 22a63ab55ba7f7888973f08ebdb3cbc149d6ac57
ms.sourcegitcommit: 3d5d33f384eeba41b2dff79d096f47ccc8d8f03d
ms.openlocfilehash: b753b887da6f8836e0f4363a479c12c7364ea770
ms.sourcegitcommit: 895c7602386a6dfe7ca4facce3d965b27e5c6e87
ms.translationtype: HT
ms.contentlocale: ja-JP
ms.lasthandoff: 05/04/2018
ms.lasthandoff: 05/19/2018
---
# <a name="asynchronous-programming"></a>非同期プログラミング

Expand Down Expand Up @@ -131,7 +131,7 @@ public async Task<int> GetDotNetCountAsync()
{
// Suspends GetDotNetCountAsync() to allow the caller (the web server)
// to accept another request, rather than blocking on this one.
var html = await _httpClient.DownloadStringAsync("http://dotnetfoundation.org");
var html = await _httpClient.GetStringAsync("http://dotnetfoundation.org");

return Regex.Matches(html, @"\.NET").Count;
}
Expand Down
8 changes: 4 additions & 4 deletions docs/csharp/delegates-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ title: デリゲートの一般的なパターン
description: コンポーネント間の密接な結合を避けるための、コードでのデリゲートの一般的な使用パターンについて説明します。
ms.date: 06/20/2016
ms.assetid: 0ff8fdfd-6a11-4327-b061-0f2526f35b43
ms.openlocfilehash: fceab2b9c6bbd1d687566820366459ec57ae7a2d
ms.sourcegitcommit: 3d5d33f384eeba41b2dff79d096f47ccc8d8f03d
ms.openlocfilehash: b9762841656aa362589d01ed011407aeedfe4a20
ms.sourcegitcommit: 22c3c8f74eaa138dbbbb02eb7d720fce87fc30a9
ms.translationtype: HT
ms.contentlocale: ja-JP
ms.lasthandoff: 05/04/2018
ms.lasthandoff: 05/17/2018
---
# <a name="common-patterns-for-delegates"></a>デリゲートの一般的なパターン

Expand All @@ -27,7 +27,7 @@ var smallNumbers = numbers.Where(n => n < 10);
Where メソッドのプロトタイプは次のとおりです。

```csharp
public static IEnumerable<TSource> Where<in TSource> (IEnumerable<TSource> source, Func<TSource, bool> predicate);
public static IEnumerable<TSource> Where<TSource> (this IEnumerable<TSource> source, Func<TSource, bool> predicate);
```

この例は、LINQ のすべてのメソッドに当てはまります。 具体的なクエリを扱うコードには、すべてデリゲートが使われているのです。 きわめて強力な API デザイン パターンなので、しっかり覚えて自分のものにしてください。
Expand Down
11 changes: 3 additions & 8 deletions docs/csharp/how-to/search-strings.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
---
title: '方法: 文字列を検索する (C# ガイド)'
ms.date: 02/21/2018
ms.prod: .net
ms.technology:
- devlang-csharp
ms.topic: article
helpviewer_keywords:
- searching strings [C#]
- strings [C#], searching with String methods
- strings [C#], searching with regular expressions
ms.assetid: fb1d9a6d-598d-4a35-bd5f-b86012edcb2b
ms.author: wiwagn
ms.openlocfilehash: cb381ee811846ae8ff0589d918be4f43b3e9ddc3
ms.sourcegitcommit: b750a8e3979749b214e7e10c82efb0a0524dfcb1
ms.openlocfilehash: d1e132093cc59c7b41a3f7d5b522fca2e224f779
ms.sourcegitcommit: 3d5d33f384eeba41b2dff79d096f47ccc8d8f03d
ms.translationtype: HT
ms.contentlocale: ja-JP
ms.lasthandoff: 04/09/2018
ms.lasthandoff: 05/04/2018
---
# <a name="how-to-search-strings"></a>方法: 文字列を検索する

Expand Down
8 changes: 4 additions & 4 deletions docs/csharp/language-reference/compiler-messages/cs0731.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ f1_keywords:
helpviewer_keywords:
- CS0731
ms.assetid: b2df5d5c-b1cd-4620-881f-f5a492669784
ms.openlocfilehash: 7666881fecb5ac5beec97abd3c255de9baf997a9
ms.sourcegitcommit: 3d5d33f384eeba41b2dff79d096f47ccc8d8f03d
ms.openlocfilehash: be5c8696c9eb96f8d038dddac14663f2186176bc
ms.sourcegitcommit: 89c93d05c2281b4c834f48f6c8df1047e1410980
ms.translationtype: HT
ms.contentlocale: ja-JP
ms.lasthandoff: 05/04/2018
ms.lasthandoff: 05/15/2018
---
# <a name="compiler-error-cs0731"></a>コンパイラ エラー CS0731
アセンブリ 'assembly' にある 'type' の型フォワーダーで循環が発生します
Expand Down Expand Up @@ -108,7 +108,7 @@ ms.lasthandoff: 05/04/2018
// Image base: 0x04E40000
```

```
```csharp
// CS0731.cs
// compile with: /reference:circular.dll /reference:circular2.dll
// CS0731 expected
Expand Down
12 changes: 6 additions & 6 deletions docs/csharp/language-reference/compiler-messages/cs1026.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ f1_keywords:
helpviewer_keywords:
- CS1026
ms.assetid: 782c0570-19c2-425d-aa41-565d33aa9bc0
ms.openlocfilehash: f00c9c92f2c32dec32531cb255992f241c41d3e7
ms.sourcegitcommit: 3d5d33f384eeba41b2dff79d096f47ccc8d8f03d
ms.openlocfilehash: 642592d2aef12c087d5302a35047864c64e9f3fd
ms.sourcegitcommit: 89c93d05c2281b4c834f48f6c8df1047e1410980
ms.translationtype: HT
ms.contentlocale: ja-JP
ms.lasthandoff: 05/04/2018
ms.lasthandoff: 05/15/2018
---
# <a name="compiler-error-cs1026"></a>コンパイラ エラー CS1026
) が必要です。
Expand All @@ -19,19 +19,19 @@ ms.lasthandoff: 05/04/2018

このエラーに共通するのは、ASP.NET ページのインライン式の中で、式ではなくステートメントを使っていることです。 たとえば、次の式は間違っています。

```
```aspx-csharp
<%=new TimeSpan(DateTime.Now.Ticks - new DateTime(2001, 1, 1).Ticks).Days;%>
```

次の式は正しい式です。

```
```aspx-csharp
<%=new TimeSpan(DateTime.Now.Ticks - new DateTime(2001, 1, 1).Ticks).Days %>
```

この式は、次のように解釈されます。

```
```aspx-csharp
<% Response.Write(new TimeSpan(DateTime.Now.Ticks - new DateTime(2001, 1, 1).Ticks).Days); %>
```

Expand Down
15 changes: 4 additions & 11 deletions docs/csharp/language-reference/keywords/abstract.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
---
title: "abstract (C# リファレンス)"
title: abstract (C# リファレンス)
ms.date: 07/20/2015
ms.prod: .net
ms.technology:
- devlang-csharp
ms.topic: article
f1_keywords:
- abstract
- abstract_CSharpKeyword
helpviewer_keywords:
- abstract keyword [C#]
ms.assetid: b0797770-c1f3-4b4d-9441-b9122602a6bb
caps.latest.revision:
author: BillWagner
ms.author: wiwagn
ms.openlocfilehash: 9c6dbb03a05ff1c86752983d130691ce23e341d7
ms.sourcegitcommit: be1fb5d9447ad459bef22b91a91c72e3e0b2d916
ms.openlocfilehash: 78212365c4183d31bcd5f1b1628c3443d48909a8
ms.sourcegitcommit: 88f251b08bf0718ce119f3d7302f514b74895038
ms.translationtype: HT
ms.contentlocale: ja-JP
ms.lasthandoff: 02/09/2018
ms.lasthandoff: 05/10/2018
---
# <a name="abstract-c-reference"></a>abstract (C# リファレンス)
`abstract` 修飾子は、その修飾対象の実装が不足しているか、不完全であることを示します。 クラスやメソッド、プロパティ、インデクサー、イベントと組み合わせて abstract 修飾子を使用することができます。 クラスの宣言では、他のクラスの基底クラスとしての使用のみを意図したクラスであることを示すために `abstract` 修飾子を使います。 abstract としてマークされた (つまり抽象クラスに含まれている) メンバーは、その抽象クラスから派生したクラスで実装する必要があります。
Expand Down
10 changes: 5 additions & 5 deletions docs/csharp/language-reference/keywords/as.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ helpviewer_keywords:
- type conversion [C#], as keyword
- as keyword [C#]
ms.assetid: a9be126b-cbf4-4990-a70d-d0e1983cad0e
ms.openlocfilehash: 6ea5346119259d70ac1a42f3f72a8b2746b8f536
ms.sourcegitcommit: 3d5d33f384eeba41b2dff79d096f47ccc8d8f03d
ms.openlocfilehash: 092c30a858df7baeb35bdf28bae53802fb0916d4
ms.sourcegitcommit: 89c93d05c2281b4c834f48f6c8df1047e1410980
ms.translationtype: HT
ms.contentlocale: ja-JP
ms.lasthandoff: 05/04/2018
ms.lasthandoff: 05/15/2018
---
# <a name="as-c-reference"></a>as (C# リファレンス)
`as` 演算子を使用して、互換性のある参照型または [null 許容型](../../../csharp/programming-guide/nullable-types/index.md)間で特定の型変換を実行できます。 次のコードは一例を示しています。
Expand All @@ -22,13 +22,13 @@ ms.lasthandoff: 05/04/2018
## <a name="remarks"></a>コメント
`as` 演算子はキャスト演算と似ています。 ただし、変換が可能でない場合、`as` は例外を発生させる代わりに `null` を返します。 次に例を示します。

```
```csharp
expression as type
```

このコードは次の式と同等ですが、`expression` 変数は 1 回しか評価されません。

```
```csharp
expression is type ? (type)expression : (type)null
```

Expand Down
10 changes: 5 additions & 5 deletions docs/csharp/language-reference/keywords/built-in-types-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ helpviewer_keywords:
- types [C#], built-in
- built-in C# types
ms.assetid: 54f901f2-bf2f-472c-ae8d-73e8ecfc57fe
ms.openlocfilehash: 7407d18c58dd3d12337c6845627d83f02eaf7fa0
ms.sourcegitcommit: 3d5d33f384eeba41b2dff79d096f47ccc8d8f03d
ms.openlocfilehash: 120347e5bff7f0d6c7120af0cb250936ca39ea16
ms.sourcegitcommit: 89c93d05c2281b4c834f48f6c8df1047e1410980
ms.translationtype: HT
ms.contentlocale: ja-JP
ms.lasthandoff: 05/04/2018
ms.lasthandoff: 05/15/2018
---
# <a name="built-in-types-table-c-reference"></a>組み込み型の一覧表 (C# リファレンス)
次の表は、C# の組み込み型のキーワードを示しています。これは、<xref:System> 名前空間の定義済み型の別名です。
Expand Down Expand Up @@ -37,14 +37,14 @@ ms.lasthandoff: 05/04/2018

C# 型のキーワードと別名は相互に交換できます。 たとえば、整数の変数を宣言するには、次のいずれかの宣言を使用します。

```
```csharp
int x = 123;
System.Int32 x = 123;
```

C# 型の実際の型を表示するには、`GetType()` システム メソッドを使用します。 たとえば、次のステートメントは、`myVariable` の型を表すシステムの別名を表示します。

```
```csharp
Console.WriteLine(myVariable.GetType());
```

Expand Down
20 changes: 10 additions & 10 deletions docs/csharp/language-reference/keywords/byte.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ f1_keywords:
helpviewer_keywords:
- byte keyword [C#]
ms.assetid: 111f1db9-ca32-4f0e-b497-4783517eda47
ms.openlocfilehash: 71af48f1cbfa82bafdd4888f0985cd88d44976b2
ms.sourcegitcommit: 3d5d33f384eeba41b2dff79d096f47ccc8d8f03d
ms.openlocfilehash: 4ac913bd0d1bd178211ad26a720a80e22877c961
ms.sourcegitcommit: 89c93d05c2281b4c834f48f6c8df1047e1410980
ms.translationtype: HT
ms.contentlocale: ja-JP
ms.lasthandoff: 05/04/2018
ms.lasthandoff: 05/15/2018
---
# <a name="byte-c-reference"></a>byte (C# リファレンス)

Expand Down Expand Up @@ -45,35 +45,35 @@ C# 7.0 以降では、読みやすさを強化するためにいくつかの機

より大きな記憶領域のサイズを持つ、リテラル以外の数値型を暗黙的に `byte` に変換することはできません。 整数型の記憶域サイズの詳細については、「[整数型の一覧表](../../../csharp/language-reference/keywords/integral-types-table.md)」を参照してください。 たとえば、2 つの `byte` 変数 `x``y` があるとします。

```
```csharp
byte x = 10, y = 20;
```

次の代入ステートメントは、代入演算子の右側にある算術式が既定で `int` に評価されるため、コンパイル エラーになります。

```
```csharp
// Error: conversion from int to byte:
byte z = x + y;
```

この問題を解決するには、キャストを使用します。

```
```csharp
// OK: explicit conversion:
byte z = (byte)(x + y);
```

ただし、次のステートメントは使用できます。このステートメントでは、変換先の変数の記憶領域サイズは元のサイズ以上になります。

```
```csharp
int x = 10, y = 20;
int m = x + y;
long n = x + y;
```

浮動小数点型から `byte` への暗黙の型変換はありません。 たとえば、次のステートメントは、明示的なキャストを使用しない場合、コンパイラ エラーになります。

```
```csharp
// Error: no implicit conversion from double:
byte x = 3.0;
// OK: explicit conversion:
Expand All @@ -82,14 +82,14 @@ byte y = (byte)3.0;

オーバーロードされたメソッドを呼び出すときは、キャストを使用する必要があります。 たとえば、`byte` パラメーターと [int](../../../csharp/language-reference/keywords/int.md) パラメーターを使用したオーバーロードされたメソッドがあるとします。

```
```csharp
public static void SampleMethod(int i) {}
public static void SampleMethod(byte b) {}
```

`byte` キャストを使用すると、正しい型が呼び出されます。次に例を示します。

```
```csharp
// Calling the method with the int parameter:
SampleMethod(5);
// Calling the method with the byte parameter:
Expand Down
17 changes: 5 additions & 12 deletions docs/csharp/language-reference/keywords/class.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
---
title: class (C# リファレンス)
ms.date: 07/18/2017
ms.prod: .net
ms.technology:
- devlang-csharp
ms.topic: article
f1_keywords:
- class_CSharpKeyword
- class
helpviewer_keywords:
- class keyword [C#]
ms.assetid: b95d8815-de18-4c3f-a8cc-a0a53bdf8690
caps.latest.revision: 30
author: BillWagner
ms.author: wiwagn
ms.openlocfilehash: ae4b019ee88b6f331a76c750ab94fc76a3343adb
ms.sourcegitcommit: 4f3fef493080a43e70e951223894768d36ce430a
ms.openlocfilehash: 20968d2f72195db6d16de1b726c6e946b91ffcd5
ms.sourcegitcommit: 3d5d33f384eeba41b2dff79d096f47ccc8d8f03d
ms.translationtype: HT
ms.contentlocale: ja-JP
ms.lasthandoff: 11/21/2017
ms.lasthandoff: 05/04/2018
---
# <a name="class-c-reference"></a>class (C# リファレンス)

Expand All @@ -44,7 +37,7 @@ C# では、単一継承のみを使用できます。 つまり、クラスは

名前空間内で直接宣言され、他のクラスに入れ子にされていないクラスは、[public](../../../csharp/language-reference/keywords/public.md) または [internal](../../../csharp/language-reference/keywords/internal.md) のいずれかです。 クラスは既定で `internal` です。

入れ子になったクラスを含め、クラス メンバーは、[パブリック](../../../csharp/language-reference/keywords/public.md) `protected internal`[保護](../../../csharp/language-reference/keywords/protected.md)[内部](../../../csharp/language-reference/keywords/internal.md)[プライベート](../../../csharp/language-reference/keywords/private.md)または`private protected`. メンバーは既定で [private](../../../csharp/language-reference/keywords/private.md) です。
クラスのメンバー (入れ子にされているクラスも含む) は、[public](../../../csharp/language-reference/keywords/public.md)`protected internal`[protected](../../../csharp/language-reference/keywords/protected.md)[internal](../../../csharp/language-reference/keywords/internal.md)[private](../../../csharp/language-reference/keywords/private.md)`private protected` のいずれかとして宣言できます。 メンバーは既定で [private](../../../csharp/language-reference/keywords/private.md) です。

詳細については、「[アクセス修飾子](../../../csharp/programming-guide/classes-and-structs/access-modifiers.md)」を参照してください。

Expand Down Expand Up @@ -99,7 +92,7 @@ Console.Write(child1.name); // Error
## <a name="c-language-specification"></a>C# 言語仕様
[!INCLUDE[CSharplangspec](~/includes/csharplangspec-md.md)]

## <a name="see-also"></a>関連項目
## <a name="see-also"></a>参照
[C# リファレンス](../../../csharp/language-reference/index.md)
[C# プログラミング ガイド](../../../csharp/programming-guide/index.md)
[C# のキーワード](../../../csharp/language-reference/keywords/index.md)
Expand Down
8 changes: 4 additions & 4 deletions docs/csharp/language-reference/keywords/delegate.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ helpviewer_keywords:
- delegate keyword [C#]
- function pointers [C#]
ms.assetid: 0bb8cb6d-2f87-47c7-9d1f-d65c1cd01e9f
ms.openlocfilehash: 923d746927063490236a721e8d2600889084dac0
ms.sourcegitcommit: 3d5d33f384eeba41b2dff79d096f47ccc8d8f03d
ms.openlocfilehash: 4eafd0ffb6da191db80fd69f1980a167dbfc742b
ms.sourcegitcommit: 89c93d05c2281b4c834f48f6c8df1047e1410980
ms.translationtype: HT
ms.contentlocale: ja-JP
ms.lasthandoff: 05/04/2018
ms.lasthandoff: 05/15/2018
---
# <a name="delegate-c-reference"></a>delegate (C# リファレンス)
デリゲート型の宣言は、メソッド シグネチャに似ています。 戻り値 1 つのほか、任意の型のパラメーターをいくつでも指定することができます。

```
```csharp
public delegate void TestDelegate(string message);
public delegate int TestDelegate(MyType m, long num);
```
Expand Down
Loading

0 comments on commit a3904a7

Please sign in to comment.