|
57 | 57 | <Docs> |
58 | 58 | <summary>Represents an expression that has a unary operator.</summary> |
59 | 59 | <remarks> |
60 | | - <format type="text/markdown"><![CDATA[ |
61 | | - |
62 | | -## Remarks |
63 | | - The following table summarizes the factory methods that can be used to create a <xref:System.Linq.Expressions.UnaryExpression> that has a specific node type. |
64 | | - |
65 | | -|<xref:System.Linq.Expressions.Expression.NodeType%2A>|Factory Method| |
66 | | -|----------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------| |
67 | | -|<xref:System.Linq.Expressions.ExpressionType.ArrayLength>|<xref:System.Linq.Expressions.Expression.ArrayLength%2A>| |
68 | | -|<xref:System.Linq.Expressions.ExpressionType.Convert>|<xref:System.Linq.Expressions.Expression.Convert%2A>| |
69 | | -|<xref:System.Linq.Expressions.ExpressionType.ConvertChecked>|<xref:System.Linq.Expressions.Expression.ConvertChecked%2A>| |
70 | | -|<xref:System.Linq.Expressions.ExpressionType.Negate>|<xref:System.Linq.Expressions.Expression.Negate%2A>| |
71 | | -|<xref:System.Linq.Expressions.ExpressionType.NegateChecked>|<xref:System.Linq.Expressions.Expression.NegateChecked%2A>| |
72 | | -|<xref:System.Linq.Expressions.ExpressionType.Not>|<xref:System.Linq.Expressions.Expression.Not%2A>| |
73 | | -|<xref:System.Linq.Expressions.ExpressionType.Quote>|<xref:System.Linq.Expressions.Expression.Quote%2A>| |
74 | | -|<xref:System.Linq.Expressions.ExpressionType.TypeAs>|<xref:System.Linq.Expressions.Expression.TypeAs%2A>| |
75 | | -|<xref:System.Linq.Expressions.ExpressionType.UnaryPlus>|<xref:System.Linq.Expressions.Expression.UnaryPlus%2A>| |
76 | | - |
77 | | - In addition, the <xref:System.Linq.Expressions.Expression.MakeUnary%2A> methods can also be used to create a <xref:System.Linq.Expressions.UnaryExpression>. These factory methods can be used to create a <xref:System.Linq.Expressions.UnaryExpression> of any node type that represents a unary operation. The parameter of these methods that is of type <xref:System.Linq.Expressions.Expression.NodeType%2A> specifies the desired node type. |
78 | | - |
79 | | - |
80 | | - |
81 | | -## Examples |
82 | | - The following example creates a <xref:System.Linq.Expressions.UnaryExpression> object that represents the reference conversion of a non-nullable integer expression to the nullable integer type. |
83 | | - |
| 60 | + <format type="text/markdown"><![CDATA[ |
| 61 | +
|
| 62 | +## Remarks |
| 63 | + The following table summarizes the factory methods that can be used to create a <xref:System.Linq.Expressions.UnaryExpression> that has a specific node type. |
| 64 | +
|
| 65 | +|<xref:System.Linq.Expressions.Expression.NodeType%2A>|Factory Method| |
| 66 | +|----------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------| |
| 67 | +|<xref:System.Linq.Expressions.ExpressionType.ArrayLength>|<xref:System.Linq.Expressions.Expression.ArrayLength%2A>| |
| 68 | +|<xref:System.Linq.Expressions.ExpressionType.Convert>|<xref:System.Linq.Expressions.Expression.Convert%2A>| |
| 69 | +|<xref:System.Linq.Expressions.ExpressionType.ConvertChecked>|<xref:System.Linq.Expressions.Expression.ConvertChecked%2A>| |
| 70 | +|<xref:System.Linq.Expressions.ExpressionType.Negate>|<xref:System.Linq.Expressions.Expression.Negate%2A>| |
| 71 | +|<xref:System.Linq.Expressions.ExpressionType.NegateChecked>|<xref:System.Linq.Expressions.Expression.NegateChecked%2A>| |
| 72 | +|<xref:System.Linq.Expressions.ExpressionType.Not>|<xref:System.Linq.Expressions.Expression.Not%2A>| |
| 73 | +|<xref:System.Linq.Expressions.ExpressionType.Quote>|<xref:System.Linq.Expressions.Expression.Quote%2A>| |
| 74 | +|<xref:System.Linq.Expressions.ExpressionType.TypeAs>|<xref:System.Linq.Expressions.Expression.TypeAs%2A>| |
| 75 | +|<xref:System.Linq.Expressions.ExpressionType.UnaryPlus>|<xref:System.Linq.Expressions.Expression.UnaryPlus%2A>| |
| 76 | +
|
| 77 | + In addition, the <xref:System.Linq.Expressions.Expression.MakeUnary%2A> methods can also be used to create a <xref:System.Linq.Expressions.UnaryExpression>. These factory methods can be used to create a <xref:System.Linq.Expressions.UnaryExpression> of any node type that represents a unary operation. The parameter of these methods that is of type <xref:System.Linq.Expressions.Expression.NodeType%2A> specifies the desired node type. |
| 78 | +
|
| 79 | +
|
| 80 | +
|
| 81 | +## Examples |
| 82 | + The following example creates a <xref:System.Linq.Expressions.UnaryExpression> object that represents the reference conversion of a non-nullable integer expression to the nullable integer type. |
| 83 | +
|
84 | 84 | :::code language="csharp" source="~/snippets/csharp/System.Linq.Expressions/BinaryExpression/Overview/Expression.cs" id="Snippet11"::: |
85 | | - :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Expressions.Expression/VB/Expression.vb" id="Snippet11"::: |
86 | | - |
| 85 | + :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Expressions.Expression/VB/Expression.vb" id="Snippet11"::: |
| 86 | +
|
87 | 87 | ]]></format> |
88 | 88 | </remarks> |
89 | 89 | </Docs> |
|
219 | 219 | <value> |
220 | 220 | <see langword="true" /> if the node represents a lifted call; otherwise, <see langword="false" />.</value> |
221 | 221 | <remarks> |
222 | | - <format type="text/markdown"><![CDATA[ |
223 | | - |
224 | | -## Remarks |
225 | | - An operator call is *lifted* if the operator expects a non-nullable operand but a nullable operand is passed to it. |
226 | | - |
| 222 | + <format type="text/markdown"><![CDATA[ |
| 223 | +
|
| 224 | +## Remarks |
| 225 | + An operator call is *lifted* if the operator expects a non-nullable operand but a nullable operand is passed to it. |
| 226 | +
|
227 | 227 | ]]></format> |
228 | 228 | </remarks> |
229 | 229 | </Docs> |
|
270 | 270 | <value> |
271 | 271 | <see langword="true" /> if the operator's return type is lifted to a nullable type; otherwise, <see langword="false" />.</value> |
272 | 272 | <remarks> |
273 | | - <format type="text/markdown"><![CDATA[ |
274 | | - |
275 | | -## Remarks |
276 | | - An operator call is *lifted* if the operator expects a non-nullable operand but a nullable operand is passed to it. If the value of <xref:System.Linq.Expressions.UnaryExpression.IsLiftedToNull%2A> is `true`, the operator returns a nullable type and if the nullable operand evaluates to `null`, the operator returns `null`. |
277 | | - |
| 273 | + <format type="text/markdown"><![CDATA[ |
| 274 | +
|
| 275 | +## Remarks |
| 276 | + An operator call is *lifted* if the operator expects a non-nullable operand but a nullable operand is passed to it. If the value of <xref:System.Linq.Expressions.UnaryExpression.IsLiftedToNull%2A> is `true`, the operator returns a nullable type and if the nullable operand evaluates to `null`, the operator returns `null`. |
| 277 | +
|
278 | 278 | ]]></format> |
279 | 279 | </remarks> |
280 | 280 | </Docs> |
|
471 | 471 | <summary>Reduces the expression node to a simpler expression.</summary> |
472 | 472 | <returns>The reduced expression.</returns> |
473 | 473 | <remarks> |
474 | | - <format type="text/markdown"><![CDATA[ |
475 | | - |
476 | | -## Remarks |
477 | | - If the `CanReduce` method returns true, this should return a valid expression. |
478 | | - |
479 | | - This method can return another node which itself must be reduced. |
480 | | - |
| 474 | + <format type="text/markdown"><![CDATA[ |
| 475 | +
|
| 476 | +## Remarks |
| 477 | + If the `CanReduce` method returns true, this should return a valid expression. |
| 478 | +
|
| 479 | + This method can return another node that itself must be reduced. |
| 480 | +
|
481 | 481 | ]]></format> |
482 | 482 | </remarks> |
483 | 483 | </Docs> |
|
0 commit comments