Skip to content

Commit dd22df7

Browse files
Names -> Keywords batch 7 (#6931)
* Names -> Keywords Replacing full type names with keywords when appropriate Files affected: Anon.cs, Delegate.cs, Lambda.cs, createinstance2.cs, CreateInstance5.cs, Example4.cs, Example6.cs, Example8.cs, ForConsumers1.cs, GetSwitches3.cs. See #6920 * An example reverted * An example reverted Co-authored-by: Bill Wagner <[email protected]>
1 parent f6abd08 commit dd22df7

File tree

10 files changed

+30
-30
lines changed

10 files changed

+30
-30
lines changed

samples/snippets/csharp/VS_Snippets_CLR_System/System.AppContext.Class/cs/Example4.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <Snippet4>
1+
// <Snippet4>
22
using System;
33
using System.Reflection;
44

samples/snippets/csharp/VS_Snippets_CLR_System/System.AppContext.Class/cs/Example6.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <Snippet6>
1+
// <Snippet6>
22
using System;
33
using System.Reflection;
44

samples/snippets/csharp/VS_Snippets_CLR_System/System.AppContext.Class/cs/Example8.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <Snippet8>
1+
// <Snippet8>
22
using System;
33
using System.Reflection;
44

samples/snippets/csharp/VS_Snippets_CLR_System/System.AppContext.Class/cs/ForConsumers1.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <Snippet10>
1+
// <Snippet10>
22
using System;
33
using System.IO;
44
using System.Runtime.Versioning;

samples/snippets/csharp/VS_Snippets_CLR_System/System.AppContext.Class/cs/GetSwitches3.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <Snippet3>
1+
// <Snippet3>
22
using System;
33
using System.Configuration;
44
using System.Globalization;

samples/snippets/csharp/VS_Snippets_CLR_System/system.Action~4/cs/Anon.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <Snippet3>
1+
// <Snippet3>
22
using System;
33

44
public class TestAnonymousMethod

samples/snippets/csharp/VS_Snippets_CLR_System/system.Action~4/cs/Delegate.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <Snippet1>
1+
// <Snippet1>
22
using System;
33

44
delegate void StringCopy(string[] stringArray1,

samples/snippets/csharp/VS_Snippets_CLR_System/system.Action~4/cs/Lambda.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <Snippet4>
1+
// <Snippet4>
22
using System;
33

44
public class TestLambdaExpression
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
// <Snippet5>
2-
using System;
3-
4-
public class Example
5-
{
6-
public static void Main()
7-
{
8-
// Initialize array of characters from a to z.
9-
char[] chars = new char[26];
10-
for (int ctr = 0; ctr < 26; ctr++)
11-
chars[ctr] = (char) (ctr + 0x0061);
12-
13-
object obj = Activator.CreateInstance(typeof(string),
14-
new object[] { chars, 13, 10 } );
15-
Console.WriteLine(obj);
16-
}
17-
}
18-
// The example displays the following output:
19-
// nopqrstuvw
20-
// </Snippet5>
1+
// <Snippet5>
2+
using System;
3+
4+
public class Example
5+
{
6+
public static void Main()
7+
{
8+
// Initialize array of characters from a to z.
9+
char[] chars = new char[26];
10+
for (int ctr = 0; ctr < 26; ctr++)
11+
chars[ctr] = (char) (ctr + 0x0061);
12+
13+
object obj = Activator.CreateInstance(typeof(string),
14+
new object[] { chars, 13, 10 } );
15+
Console.WriteLine(obj);
16+
}
17+
}
18+
// The example displays the following output:
19+
// nopqrstuvw
20+
// </Snippet5>

samples/snippets/csharp/VS_Snippets_CLR_System/system.activator.createinstance/cs/createinstance2.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <Snippet4>
1+
// <Snippet4>
22
using System;
33

44
public class Example
@@ -21,4 +21,4 @@ public static void Main()
2121
// String: abcdef
2222
// String: bcde
2323
// String: bbbbbbbbbbbbbbbbbbbb
24-
// </Snippet4>
24+
// </Snippet4>

0 commit comments

Comments
 (0)