Visual Basic 2010 автоматически меняет отступ моего кода с этого ::
public void fetchWebserviceCounters() {
csv = new StringBuilder();
try {
Category = new PerformanceCounterCategory("Web Service");
foreach (String instance in Category.GetInstanceNames()) {
counters = Category.GetCounters(instance);
foreach (PerformanceCounter counter in counters) {
if (counter.CounterName == "Total Bytes Sent" | counter.CounterName == "Total Bytes Recieved") {
csv.Append(counter.CounterName + ",");
csv.Append(counter.NextValue().ToString() + ", ");
}
}
}
}
catch (Exception e) {
Console.WriteLine(e.Message);
}
Console.Write(csv.ToString());
}
на этот
public void fetchWebserviceCounters()
{
csv = new StringBuilder();
try
{
Category = new PerformanceCounterCategory("Web Service");
foreach (String instance in Category.GetInstanceNames())
{
counters = Category.GetCounters(instance);
foreach (PerformanceCounter counter in counters)
{
if (counter.CounterName == "Total Bytes Sent" | counter.CounterName == "Total Bytes Recieved")
{
csv.Append(counter.CounterName + ",");
csv.Append(counter.NextValue().ToString() + ", ");
}
}
}
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
Console.Write(csv.ToString());
}
Как я могу предотвратитьVisual Basic от этого до моего кода