Skip to content

Commit b73ca7f

Browse files
authored
Remove superfluous empty lines (dotnet#9653)
* Remove superfluous empty lines * Remove some changes * Remove CFX and WebNet snippet changes
1 parent ff7f398 commit b73ca7f

File tree

55 files changed

+8
-111
lines changed

Some content is hidden

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

55 files changed

+8
-111
lines changed

snippets/csharp/System.Diagnostics/CounterCreationData/Overview/averagecount32.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
//<snippet1>
2-
32
using System;
43
using System.Collections;
54
using System.Collections.Specialized;
65
using System.Diagnostics;
76

8-
public class App {
9-
7+
public class App
8+
{
109
private static PerformanceCounter avgCounter64Sample;
1110
private static PerformanceCounter avgCounter64SampleBase;
1211

1312
public static void Main()
1413
{
15-
1614
ArrayList samplesList = new ArrayList();
1715

1816
// If the category does not exist, create the category and exit.

snippets/csharp/System.Diagnostics/EventLog/GetEventLogs/source1.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//<Snippet1>
2-
32
using System;
43
using System.Diagnostics;
54
using System.Globalization;

snippets/csharp/System.Diagnostics/PerformanceCounter/NextValue/elapsedtime.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public class App
1616
{
1717
private static PerformanceCounter PC;
1818

19-
2019
public static void Main()
2120
{
2221
ArrayList samplesList = new ArrayList();
@@ -26,12 +25,10 @@ public static void Main()
2625
CollectSamples(samplesList);
2726
}
2827

29-
3028
private static bool SetupCategory()
3129
{
3230
if ( !PerformanceCounterCategory.Exists("ElapsedTimeSampleCategory") )
3331
{
34-
3532
CounterCreationDataCollection CCDC = new CounterCreationDataCollection();
3633

3734
// Add the counter.
@@ -60,12 +57,10 @@ private static void CreateCounters()
6057
PC = new PerformanceCounter("ElapsedTimeSampleCategory",
6158
"ElapsedTimeSample",
6259
false);
63-
6460
}
6561

6662
private static void CollectSamples(ArrayList samplesList)
6763
{
68-
6964
long pcValue;
7065
DateTime Start;
7166

@@ -98,7 +93,6 @@ private static void CollectSamples(ArrayList samplesList)
9893

9994
Console.WriteLine("Elapsed time = " + DateTime.Now.Subtract(Start).ToString());
10095
}
101-
10296

10397
private static void OutputSample(CounterSample s)
10498
{
@@ -115,7 +109,6 @@ private static void OutputSample(CounterSample s)
115109
Console.WriteLine("++++++++++++++++++++++");
116110
}
117111

118-
119112
// Reads the counter information to enable setting the RawValue.
120113
[DllImport("Kernel32.dll")]
121114
public static extern bool QueryPerformanceCounter(out long value);
@@ -126,7 +119,6 @@ private static void OutputSample(CounterSample s)
126119
// Build sample for Whidbey or higher.
127120

128121
//<Snippet2>
129-
130122
using System;
131123
using System.Collections;
132124
using System.Collections.Specialized;
@@ -135,7 +127,6 @@ private static void OutputSample(CounterSample s)
135127

136128
public class App
137129
{
138-
139130
public static void Main()
140131
{
141132
CollectSamples();

snippets/csharp/System.Diagnostics/Process/StandardInput/process_standardinput.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// The sort command results are displayed to the user on the console.
99

1010
// <Snippet1>
11-
1211
using System;
1312
using System.IO;
1413
using System.Diagnostics;

snippets/csharp/System.Drawing/Graphics/CopyFromScreen/Form1.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//<snippet1>
2-
32
using System;
43
using System.Windows.Forms;
54
using System.Drawing;

snippets/csharp/System.IO/FileInfo/MoveTo/Program.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//<SNIPPET1>
2-
32
using System;
43
using System.Runtime.CompilerServices;
54
using System.Runtime.InteropServices;
@@ -12,7 +11,6 @@
1211

1312
namespace Microsoft.Samples.MoveTo.CS
1413
{
15-
1614
class Program
1715
{
1816
private static string sourcePath = Environment.GetFolderPath

snippets/csharp/System.Messaging/MessageQueue/.ctor/class11.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// <snippet0>
2-
32
using System;
43
using System.Messaging;
54

@@ -38,5 +37,4 @@ public static void UseQueue()
3837
// </snippet1>
3938
}
4039
}
41-
4240
// </snippet0>

snippets/csharp/System.Messaging/MessageQueue/BeginPeek/class1.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// <snippet0>
2-
32
using System;
43
using System.Messaging;
54

snippets/csharp/System.Messaging/MessageQueuePermissionAccess/Overview/class1.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// <snippet0>
2-
32
using System;
43
using System.Messaging;
54

snippets/csharp/System.Messaging/MessageQueuePermissionEntry/Overview/class1.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// <snippet0>
2-
32
using System;
43
using System.Messaging;
54

snippets/csharp/System.Net.Sockets/IPv6MulticastOption/Overview/joinmulticastgroup.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// available.
99

1010
// <Snippet1>
11-
1211
using System;
1312
using System.Net;
1413
using System.Net.Sockets;

snippets/csharp/System.Net/IPAddress/IsLoopback/isloopback.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,14 @@ input string into the correct internal format.
77
*/
88

99
// <Snippet1>
10-
1110
using System;
1211
using System.Net;
1312
using System.Net.Sockets;
1413

1514
class IsLoopbackTest
1615
{
17-
1816
private static void Main(string[] args)
1917
{
20-
2118
if (args.Length == 0)
2219
{
2320
// No parameters entered. Display program usage.

snippets/csharp/System.Net/WebRequest/BeginGetResponse/webrequest_begingetresponse.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010
// <Snippet1>
1111
// <Snippet2>
12-
1312
using System;
1413
using System.Net;
1514
using System.IO;

snippets/csharp/System.Reflection.Emit/AssemblyBuilder/Save/source.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// <Snippet1>
2-
32
using System;
43
using System.Text;
54
using System.Threading;
@@ -296,7 +295,4 @@ public static void Main() {
296295
new object[0]);
297296
}
298297
}
299-
300-
301-
302298
// </Snippet1>

snippets/csharp/System.Reflection.Emit/EnumBuilder/Assembly/enumbuilder_properties_5.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ in the main method. */
1717
// <Snippet3>
1818
// <Snippet4>
1919
// <Snippet5>
20-
2120
using System;
2221
using System.Collections;
2322
using System.Threading;

snippets/csharp/System.Reflection.Emit/EnumBuilder/GetCustomAttributes/enumbuilder_setcustomattribute1.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ custom attributes of the Enum type and displays its contents on the console.
1313
*/
1414

1515
// <Snippet1>
16-
1716
using System;
1817
using System.Threading;
1918
using System.Reflection;

snippets/csharp/System.Reflection.Emit/ILGenerator/Emit/source.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
// <Snippet1>
2-
32
using System;
43
using System.Threading;
54
using System.Reflection;
65
using System.Reflection.Emit;
76

87
class DynamicJumpTableDemo
9-
108
{
11-
129
public static Type BuildMyType()
1310
{
1411
AppDomain myDomain = Thread.GetDomain();
@@ -110,5 +107,4 @@ public static void Main()
110107
new object[] {theValue}));
111108
}
112109
}
113-
114110
// </Snippet1>

snippets/csharp/System.Reflection.Emit/ILGenerator/EmitCalli/source.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33
using System.Reflection.Emit;
44

55
class MyDynamicAssembly
6-
76
{
8-
97
public static void BuildDynamicMethod(TypeBuilder myTypeBuilder,
108
Type[] mthdParamTypes,
119
Type returnType,
1210
int addrOfLegacyNumberObject)
13-
1411
{
1512
// <Snippet1>
1613
MethodBuilder myMthdBuilder = myTypeBuilder.DefineMethod("MyMethod",

snippets/csharp/System.Reflection.Emit/MethodBuilder/GetILGenerator/source.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
// <Snippet1>
2-
32
using System;
43
using System.Threading;
54
using System.Reflection;
65
using System.Reflection.Emit;
76

8-
class TestILGenerator {
9-
10-
public static Type DynamicDotProductGen() {
11-
7+
class TestILGenerator
8+
{
9+
public static Type DynamicDotProductGen()
10+
{
1211
Type ivType = null;
1312
Type[] ctorParams = new Type[] { typeof(int),
1413
typeof(int),
@@ -179,5 +178,4 @@ public static void Main() {
179178
// (10, 10, 10) . (20, 20, 20) = 600
180179
}
181180
}
182-
183181
// </Snippet1>

snippets/csharp/System.Reflection.Emit/PropertyBuilder/Overview/source.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
// <Snippet1>
2-
32
using System;
43
using System.Threading;
54
using System.Reflection;
65
using System.Reflection.Emit;
76

87
class PropertyBuilderDemo
9-
108
{
11-
129
public static Type BuildDynamicTypeWithProperties()
1310
{
1411
AppDomain myDomain = Thread.GetDomain();

snippets/csharp/System.Reflection.Emit/TypeBuilder/CreateType/nestedenum.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// <Snippet1>
2-
32
using System;
43
using System.Reflection;
54
using System.Reflection.Emit;
@@ -96,5 +95,4 @@ public Assembly ResolveEvent(Object sender, ResolveEventArgs args)
9695
return m_Module.Assembly;
9796
}
9897
}
99-
10098
// </Snippet1>

snippets/csharp/System.Reflection/AssemblyName/.ctor/assemblyname_constructor.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ assembly is also saved to a file named 'MyAssembly.exe'.
2020
// <Snippet1>
2121
// <Snippet2>
2222
// <Snippet3>
23-
2423
using System;
2524
using System.Reflection;
2625
using System.Threading;
@@ -54,7 +53,6 @@ public static void MakeAssembly(AssemblyName myAssemblyName, string fileName)
5453

5554
public static void Main()
5655
{
57-
5856
// Create a dynamic assembly with name 'MyAssembly' and build version '1.0.0.2001'.
5957
AssemblyName myAssemblyName = new AssemblyName();
6058
myAssemblyName.Name = "MyAssembly";

snippets/csharp/System.Reflection/FieldInfo/IsInitOnly/source.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// <Snippet1>
2-
32
using System;
43
using System.Reflection;
54

6-
//Make two fields, one public and one read-only.
5+
//Make two fields, one public and one read-only.
76
public class Myfielda
87
{
98
public string field = "A - public modifiable field";

snippets/csharp/System.Reflection/MemberInfo/IsDefined/memberinfo_getcustomattribute_isdefined.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// <Snippet1>
2-
32
using System;
43
using System.Reflection;
54

snippets/csharp/System.Reflection/ParameterInfo/IsIn/parameterinfo_isin_isout_isoptional.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ then the attributes of all the parameters of the method named 'MyMethod' is
1414
// <Snippet1>
1515
// <Snippet2>
1616
// <Snippet3>
17-
1817
using System;
1918
using System.Reflection;
2019
using System.Threading;

snippets/csharp/System.Runtime.InteropServices/Marshal/GetActiveObject/marshal.getactiveobject.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//<snippet1>
2-
32
using System;
43
using System.Runtime.InteropServices;
54

snippets/csharp/System.Runtime.InteropServices/TypeLibVarAttribute/Overview/codefile6.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// System.Runtime.InteropServices.TypeLibVarAttribute
22
// System.Runtime.InteropServices.TypeLibVarFlags
33
// <Snippet1>
4-
54
using System;
65
using System.Reflection;
76
using System.Runtime.InteropServices;

snippets/csharp/System.Runtime.Remoting.Channels/ITransportHeaders/Overview/itransportheaders_3_server.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ interface. It then adds a few headers to the header list and displays them.
99
*/
1010

1111
// <Snippet1>
12-
1312
using System;
1413
using System.Collections;
1514
using System.Runtime.Remoting;
@@ -88,5 +87,4 @@ public static void Main()
8887
// </Snippet3>
8988
// </Snippet2>
9089
}
91-
9290
// </Snippet1>

snippets/csharp/System.Runtime.Remoting/RemotingServices/GetLifetimeService/timerserver.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// <Snippet2>
2-
32
using System;
43
using System.Collections;
54
using System.Runtime.Remoting;
@@ -31,5 +30,4 @@ public static void Main() {
3130
}
3231
}
3332
}
34-
3533
// </Snippet2>

snippets/csharp/System.Runtime.Remoting/RemotingServices/GetLifetimeService/timerservice.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// <Snippet3>
2-
32
using System;
43
using System.Runtime.Remoting;
54
using System.Runtime.Remoting.Channels;

snippets/csharp/System.Security.Claims/AuthorizationContext/Overview/resourceaction.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//
1111
//-----------------------------------------------------------------------------
1212
//<Snippet1>
13-
1413
using System;
1514

1615
namespace ClaimsAuthorizationLibrary

0 commit comments

Comments
 (0)