Skip to content

Commit 2549e8f

Browse files
authored
Remove %2A from properties - various System.* namespaces (#12393)
1 parent fed8ae7 commit 2549e8f

1,660 files changed

Lines changed: 45206 additions & 45206 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

xml/System.Activities.Expressions/IndexerReference`2.xml

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -31,66 +31,66 @@
3131
<typeparam name="TItem">The type of the indexer array.</typeparam>
3232
<summary>Represents an element referenced by an object indexer that can be used as an l-value in an expression.</summary>
3333
<remarks>
34-
<format type="text/markdown"><![CDATA[
35-
36-
## Examples
37-
The following code example uses <xref:System.Activities.Expressions.IndexerReference%602> in an `Assign` activity to assign an integer value to the object item at index [1,2] and prints the item value to the console. The `Assign` activity is equivalent to the following statement when using an object that implements an indexer. `myObj[1,2] = 4;` .
38-
34+
<format type="text/markdown"><![CDATA[
35+
36+
## Examples
37+
The following code example uses <xref:System.Activities.Expressions.IndexerReference%602> in an `Assign` activity to assign an integer value to the object item at index [1,2] and prints the item value to the console. The `Assign` activity is equivalent to the following statement when using an object that implements an indexer. `myObj[1,2] = 4;` .
38+
3939
> [!NOTE]
40-
> Instead of instantiating the <xref:System.Activities.Expressions.IndexerReference%602> l-value expression activity directly, it is strongly recommended that you call <xref:System.Activities.Expressions.ExpressionServices.ConvertReference%2A>, which provides a higher level of abstraction and enables you to implement your workflow more intuitively.
41-
42-
```csharp
43-
44-
// Define a class with a multi-dimensional indexer.
45-
public class ObjectWithIndexer
46-
{
47-
private int[,] array = new int[10,10];
48-
public int this[int i, int j]
49-
{
50-
get { return array[i,j]; }
51-
set { array[i,j] = value; }
52-
}
53-
}
54-
55-
public static void IndexerReferenceSample()
56-
{
57-
// Create a variable of type ObjectWithIndexer to store the object item.
58-
var oivar = new Variable<ObjectWithIndexer>("oivar", new ObjectWithIndexer());
59-
60-
Activity myActivity = new Sequence
61-
{
62-
Variables = { oivar },
63-
Activities =
64-
{
65-
// Create an Assign activity with a reference for the object at index [1,2].
66-
new Assign<int>
67-
{
68-
To = new IndexerReference<ObjectWithIndexer, int>
69-
{
70-
Operand = oivar,
71-
Indices =
72-
{
73-
new InArgument<int>(1),
74-
new InArgument<int>(2)
75-
}
76-
},
77-
// Assign an integer value to the object at index [1,2].
78-
Value = 4,
79-
},
80-
// Print the new item value to the console.
81-
new WriteLine()
82-
{
83-
Text = ExpressionServices.Convert<string>(ctx => oivar.Get(ctx)[1, 2].ToString()),
84-
}
85-
}
86-
};
87-
88-
// Invoke the Sequence activity.
89-
WorkflowInvoker.Invoke(myActivity);
90-
}
91-
92-
```
93-
40+
> Instead of instantiating the <xref:System.Activities.Expressions.IndexerReference%602> l-value expression activity directly, it is strongly recommended that you call <xref:System.Activities.Expressions.ExpressionServices.ConvertReference%2A>, which provides a higher level of abstraction and enables you to implement your workflow more intuitively.
41+
42+
```csharp
43+
44+
// Define a class with a multi-dimensional indexer.
45+
public class ObjectWithIndexer
46+
{
47+
private int[,] array = new int[10,10];
48+
public int this[int i, int j]
49+
{
50+
get { return array[i,j]; }
51+
set { array[i,j] = value; }
52+
}
53+
}
54+
55+
public static void IndexerReferenceSample()
56+
{
57+
// Create a variable of type ObjectWithIndexer to store the object item.
58+
var oivar = new Variable<ObjectWithIndexer>("oivar", new ObjectWithIndexer());
59+
60+
Activity myActivity = new Sequence
61+
{
62+
Variables = { oivar },
63+
Activities =
64+
{
65+
// Create an Assign activity with a reference for the object at index [1,2].
66+
new Assign<int>
67+
{
68+
To = new IndexerReference<ObjectWithIndexer, int>
69+
{
70+
Operand = oivar,
71+
Indices =
72+
{
73+
new InArgument<int>(1),
74+
new InArgument<int>(2)
75+
}
76+
},
77+
// Assign an integer value to the object at index [1,2].
78+
Value = 4,
79+
},
80+
// Print the new item value to the console.
81+
new WriteLine()
82+
{
83+
Text = ExpressionServices.Convert<string>(ctx => oivar.Get(ctx)[1, 2].ToString()),
84+
}
85+
}
86+
};
87+
88+
// Invoke the Sequence activity.
89+
WorkflowInvoker.Invoke(myActivity);
90+
}
91+
92+
```
93+
9494
]]></format>
9595
</remarks>
9696
</Docs>
@@ -196,11 +196,11 @@ public static void IndexerReferenceSample()
196196
<summary>Gets a collection of arguments that represent the indices of the element in the indexer array.</summary>
197197
<value>The indices of the element in the indexer array.</value>
198198
<remarks>
199-
<format type="text/markdown"><![CDATA[
200-
201-
## Remarks
202-
The <xref:System.Activities.Expressions.IndexerReference%602.Indices%2A> property is read-only, but the items in the collection can be modified and the indices can be changed.
203-
199+
<format type="text/markdown"><![CDATA[
200+
201+
## Remarks
202+
The <xref:System.Activities.Expressions.IndexerReference%602.Indices> property is read-only, but the items in the collection can be modified and the indices can be changed.
203+
204204
]]></format>
205205
</remarks>
206206
</Docs>

xml/System.Activities.Expressions/MultidimensionalArrayItemReference`1.xml

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -29,51 +29,51 @@
2929
<typeparam name="TItem">The type of elements in the array.</typeparam>
3030
<summary>Represents an element in a multidimensional array that can be used as an l-value in an expression.</summary>
3131
<remarks>
32-
<format type="text/markdown"><![CDATA[
33-
34-
## Examples
35-
The following code example uses <xref:System.Activities.Expressions.MultidimensionalArrayItemReference%601> in an `Assign` activity to assign an integer value to the array element at row 1 and column 2 and prints the value of the array element to the console. The `Assign` activity is equivalent to the following statement when using arrays: `array[1, 2] = 1;`.
36-
32+
<format type="text/markdown"><![CDATA[
33+
34+
## Examples
35+
The following code example uses <xref:System.Activities.Expressions.MultidimensionalArrayItemReference%601> in an `Assign` activity to assign an integer value to the array element at row 1 and column 2 and prints the value of the array element to the console. The `Assign` activity is equivalent to the following statement when using arrays: `array[1, 2] = 1;`.
36+
3737
> [!NOTE]
38-
> Instead of instantiating the <xref:System.Activities.Expressions.MultidimensionalArrayItemReference%601> l-value expression activity directly, it is strongly recommended that you call <xref:System.Activities.Expressions.ExpressionServices.ConvertReference%2A>, which provides a higher level of abstraction and enables you to implement your workflow more intuitively.
39-
40-
```csharp
41-
42-
public static void MultidimensionalArrayItemReferenceSample()
43-
{
44-
// Create a variable to store a multidimensional array.
45-
var arrayvar = new Variable<int[,]>("arrayvar", new int[4, 5]);
46-
47-
Activity myActivity = new Sequence
48-
{
49-
Variables = { arrayvar },
50-
Activities =
51-
{
52-
// Create an Assign activity to assign a value to the array item at index [1,2].
53-
new Assign<int>
54-
{
55-
To = new MultidimensionalArrayItemReference<int>
56-
{
57-
Array = arrayvar,
58-
Indices = {1, 2}
59-
},
60-
// Assign an integer value to the array item at row 1 column 2.
61-
Value = 1,
62-
},
63-
// Print the array item value to the console.
64-
new WriteLine()
65-
{
66-
Text = ExpressionServices.Convert<string>(ctx => arrayvar.Get(ctx)[1, 2].ToString()),
67-
}
68-
}
69-
};
70-
71-
// Invoke the Sequence activity.
72-
WorkflowInvoker.Invoke(myActivity);
73-
}
74-
75-
```
76-
38+
> Instead of instantiating the <xref:System.Activities.Expressions.MultidimensionalArrayItemReference%601> l-value expression activity directly, it is strongly recommended that you call <xref:System.Activities.Expressions.ExpressionServices.ConvertReference%2A>, which provides a higher level of abstraction and enables you to implement your workflow more intuitively.
39+
40+
```csharp
41+
42+
public static void MultidimensionalArrayItemReferenceSample()
43+
{
44+
// Create a variable to store a multidimensional array.
45+
var arrayvar = new Variable<int[,]>("arrayvar", new int[4, 5]);
46+
47+
Activity myActivity = new Sequence
48+
{
49+
Variables = { arrayvar },
50+
Activities =
51+
{
52+
// Create an Assign activity to assign a value to the array item at index [1,2].
53+
new Assign<int>
54+
{
55+
To = new MultidimensionalArrayItemReference<int>
56+
{
57+
Array = arrayvar,
58+
Indices = {1, 2}
59+
},
60+
// Assign an integer value to the array item at row 1 column 2.
61+
Value = 1,
62+
},
63+
// Print the array item value to the console.
64+
new WriteLine()
65+
{
66+
Text = ExpressionServices.Convert<string>(ctx => arrayvar.Get(ctx)[1, 2].ToString()),
67+
}
68+
}
69+
};
70+
71+
// Invoke the Sequence activity.
72+
WorkflowInvoker.Invoke(myActivity);
73+
}
74+
75+
```
76+
7777
]]></format>
7878
</remarks>
7979
</Docs>
@@ -214,11 +214,11 @@ public static void MultidimensionalArrayItemReferenceSample()
214214
<summary>Gets a collection of arguments that represent the indices of the element in the array.</summary>
215215
<value>The indices of the element in the array.</value>
216216
<remarks>
217-
<format type="text/markdown"><![CDATA[
218-
219-
## Remarks
220-
The <xref:System.Activities.Expressions.MultidimensionalArrayItemReference%601.Indices%2A> property is read-only, but the items in the collection can be modified and the indices can be changed.
221-
217+
<format type="text/markdown"><![CDATA[
218+
219+
## Remarks
220+
The <xref:System.Activities.Expressions.MultidimensionalArrayItemReference%601.Indices> property is read-only, but the items in the collection can be modified and the indices can be changed.
221+
222222
]]></format>
223223
</remarks>
224224
</Docs>

xml/System.Activities.Expressions/PropertyReference`2.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
<typeparam name="TResult">The type of the result.</typeparam>
2626
<summary>A reference to a property.</summary>
2727
<remarks>
28-
<format type="text/markdown"><![CDATA[
29-
30-
## Remarks
31-
If a reference is created that refers to properties on the root activity of the activity that contains this property, the activity will not be able to be deserialized into an <xref:System.Activities.ActivityBuilder> unless that activity is compatible with its <xref:System.Activities.ActivityBuilder.Properties%2A> property.
32-
28+
<format type="text/markdown"><![CDATA[
29+
30+
## Remarks
31+
If a reference is created that refers to properties on the root activity of the activity that contains this property, the activity will not be able to be deserialized into an <xref:System.Activities.ActivityBuilder> unless that activity is compatible with its <xref:System.Activities.ActivityBuilder.Properties> property.
32+
3333
]]></format>
3434
</remarks>
3535
</Docs>

0 commit comments

Comments
 (0)