How can i delete blank lines in my code?
Any shortcuts?Please suggest. I don't want to allow blank spaces between code lines.
//below is my code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace nodeChains
{
public class Node
{
public int Value { get; set; }
public Node Next { get; set; }
}
class Program
{
static void Main(string[] args)
{
Node _first = new Node { Value = 3 }; //first node
Node _middle = new Node { Value = 5 }; // Second Node
_first.Next = _middle;//1st chain
Node last = new Node { Value = 7 }; //Third Node
_middle.Next = last;// 2nd chain
middle.Next = last;// 2nd chain
}
private static void PrintList(Node node)
{
while (node != null)
while (node != null)
{
Console.WriteLine(node.Value);
node = node.Next;
}
}
}
}