Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Delete the new lines(blank rows) in the code

$
0
0

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;
}
}
}

}


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>