Skip to content

Commit 07fe534

Browse files
authored
remove inner snippets (#6137)
* remove inner snippets * simplified and redirected links
1 parent dd49baa commit 07fe534

File tree

10 files changed

+142
-384
lines changed

10 files changed

+142
-384
lines changed

docs/csharp/language-reference/keywords/codesnippet/CSharp/false-literal_1.cs

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/csharp/language-reference/keywords/codesnippet/CSharp/false-operator_1.cs

Lines changed: 0 additions & 93 deletions
This file was deleted.

docs/csharp/language-reference/keywords/codesnippet/CSharp/float_1.cs

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/csharp/language-reference/keywords/codesnippet/CSharp/from-clause_1.cs

Lines changed: 0 additions & 21 deletions
This file was deleted.

docs/csharp/language-reference/keywords/codesnippet/CSharp/from-clause_2.cs

Lines changed: 0 additions & 55 deletions
This file was deleted.

docs/csharp/language-reference/keywords/codesnippet/CSharp/from-clause_3.cs

Lines changed: 0 additions & 64 deletions
This file was deleted.
Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
---
2-
title: "false Literal (C# Reference)"
2+
title: "false literal (C# Reference)"
33
ms.date: 07/20/2015
44
helpviewer_keywords:
55
- "false literal keyword [C#]"
66
ms.assetid: fcc1c1a5-0e42-4226-a128-81492a9bf719
77
---
8-
# false Literal (C# Reference)
9-
Represents the boolean value false.
10-
11-
## Example
12-
[!code-csharp[csrefKeywordsOperator#3](../../../csharp/language-reference/keywords/codesnippet/CSharp/false-literal_1.cs)]
13-
14-
## C# Language Specification
15-
[!INCLUDE[CSharplangspec](~/includes/csharplangspec-md.md)]
16-
17-
## See Also
18-
[C# Reference](../../../csharp/language-reference/index.md)
19-
[C# Programming Guide](../../../csharp/programming-guide/index.md)
20-
[C# Keywords](../../../csharp/language-reference/keywords/index.md)
21-
[true](../../../csharp/language-reference/keywords/true.md)
8+
# false literal (C# Reference)
9+
10+
Represents the boolean value false.
11+
12+
## Example
13+
14+
[!code-csharp[csrefKeywordsOperator#3](~/samples/snippets/csharp/VS_Snippets_VBCSharp/csrefKeywordsOperator/CS/csrefKeywordsOperators.cs#3)]
15+
16+
## C# language specification
17+
18+
[!INCLUDE[CSharplangspec](~/includes/csharplangspec-md.md)]
19+
20+
## See also
21+
22+
[C# Reference](../index.md)
23+
[C# Programming Guide](../../programming-guide/index.md)
24+
[C# Keywords](index.md)
25+
[true](true.md)
Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
11
---
2-
title: "false Operator (C# Reference)"
2+
title: "false operator (C# Reference)"
33
ms.date: 07/20/2015
44
helpviewer_keywords:
55
- "false operator keyword [C#]"
66
ms.assetid: 81a888fd-011e-4589-b242-6c261fea505e
77
---
8-
# false Operator (C# Reference)
9-
Returns the [bool](../../../csharp/language-reference/keywords/bool.md) value `true` to indicate that an operand is `false` and returns `false` otherwise.
10-
11-
Prior to C# 2.0, the `true` and `false` operators were used to create user-defined nullable value types that were compatible with types such as `SqlBool`. However, the language now provides built-in support for nullable value types, and whenever possible you should use those instead of overloading the `true` and `false` operators. For more information, see [Nullable Types](../../../csharp/programming-guide/nullable-types/index.md).
12-
13-
With nullable Booleans, the expression `a != b` is not necessarily equal to `!(a == b)` because one or both of the values might be null. You have to overload both the `true` and `false` operators separately to correctly handle the null values in the expression. The following example shows how to overload and use the `true` and `false` operators.
14-
15-
[!code-csharp[csrefKeywordsOperator#16](../../../csharp/language-reference/keywords/codesnippet/CSharp/false-operator_1.cs)]
16-
17-
A type that overloads the `true` and `false` operators can be used for the controlling expression in [if](../../../csharp/language-reference/keywords/if-else.md), [do](../../../csharp/language-reference/keywords/do.md), [while](../../../csharp/language-reference/keywords/while.md), and [for](../../../csharp/language-reference/keywords/for.md) statements and in [conditional expressions](../../../csharp/language-reference/operators/conditional-operator.md).
18-
19-
If a type defines operator `false`, it must also define operator [true](../../../csharp/language-reference/keywords/true.md).
20-
21-
A type cannot directly overload the conditional logical operators [&&](../../../csharp/language-reference/operators/conditional-and-operator.md) and [||](../../../csharp/language-reference/operators/conditional-or-operator.md), but an equivalent effect can be achieved by overloading the regular logical operators and operators `true` and `false`.
22-
23-
## C# Language Specification
24-
[!INCLUDE[CSharplangspec](~/includes/csharplangspec-md.md)]
25-
26-
## See Also
27-
[C# Reference](../../../csharp/language-reference/index.md)
28-
[C# Programming Guide](../../../csharp/programming-guide/index.md)
29-
[C# Keywords](../../../csharp/language-reference/keywords/index.md)
30-
[C# Operators](../../../csharp/language-reference/operators/index.md)
31-
[true](../../../csharp/language-reference/keywords/true.md)
8+
# false operator (C# Reference)
9+
10+
Returns the [bool](bool.md) value `true` to indicate that an operand is `false` and returns `false` otherwise.
11+
12+
Prior to C# 2.0, the `true` and `false` operators were used to create user-defined nullable value types that were compatible with types such as `SqlBool`. However, the language now provides built-in support for nullable value types, and whenever possible you should use those instead of overloading the `true` and `false` operators. For more information, see [Nullable Types](../../programming-guide/nullable-types/index.md).
13+
14+
With nullable Booleans, the expression `a != b` is not necessarily equal to `!(a == b)` because one or both of the values might be null. You have to overload both the `true` and `false` operators separately to correctly handle the null values in the expression. The following example shows how to overload and use the `true` and `false` operators.
15+
16+
[!code-csharp[csrefKeywordsOperator#16](~/samples/snippets/csharp/VS_Snippets_VBCSharp/csrefKeywordsOperator/CS/csrefKeywordsOperators.cs#16)]
17+
18+
A type that overloads the `true` and `false` operators can be used for the controlling expression in [if](if-else.md), [do](do.md), [while](while.md), and [for](for.md) statements and in [conditional expressions](../operators/conditional-operator.md).
19+
20+
If a type defines operator `false`, it must also define operator [true](true.md).
21+
22+
A type cannot directly overload the conditional logical operators [&&](../operators/conditional-and-operator.md) and [||](../operators/conditional-or-operator.md), but an equivalent effect can be achieved by overloading the regular logical operators and operators `true` and `false`.
23+
24+
## C# language specification
25+
26+
[!INCLUDE[CSharplangspec](~/includes/csharplangspec-md.md)]
27+
28+
## See also
29+
30+
[C# Reference](../index.md)
31+
[C# Programming Guide](../../programming-guide/index.md)
32+
[C# Keywords](index.md)
33+
[C# Operators](../operators/index.md)
34+
[true](true.md)

0 commit comments

Comments
 (0)