CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of console
C#
//Writes colored text to the console and allows to clear previously written lines
//as long a not line break is present
 
//Sample - screenshot at http://img299.imageshack.us/img299/3931/consolex.png
 
C.InfoLine("Non-colored text...");
            
C.Error("Outch, an error.");
Thread.CurrentThread.Join(1000);
C.ClearLine();
by Philipp Sumi   July 25, 2010 @ 8:37am
335 Views
no comments
 
C#
public class ConsoleSpinner
{
    const int MaxSegmentIndex = 3;
 
    readonly char[] _segments = new [] {  '\\', '|', '/', '-'};
    readonly int _left;
    readonly int _top;
 
    int _curIndex;
by Al Gonzalez   May 18, 2010 @ 6:43am
523 Views
no comments
 
Module Module1
 
    Sub Main()
        Dim InputXml = <?xml version="1.0" encoding="utf-8"?>
                       <users>
                           <user id="1" name="Eduardo"/>
                           <user id="2" name="Luciano"/>
                           <user id="3" name="Ricardo"/>
                       </users>
378 Views
no comments
 
Imports System.Text.RegularExpressions
 
Module Module1
 
    'http://learn.open.ac.uk/mod/oublog/viewpost.php?post=23031
    'www.ForkandBeard.co.uk
 
    Sub Main()
        Dim strUserNumbers As String()
        strUserNumbers = New String() { _
by Mitchell William Cooper   November 26, 2009 @ 5:28am
441 Views
no comments
 
Imports System.Text.RegularExpressions
 
Module Module1
 
    Sub Main()
        Dim strUserNumbers As String()
        strUserNumbers = New String() { _
              "H0W_BOvThemy84kies" _
              , "01543 MWC66" _
              , "8" _
by Mitchell William Cooper   November 26, 2009 @ 5:27am
307 Views
no comments
 
C#
namespace SignAndEncryptXmlDocumentConsoleApplication
{
    using System;
    using System.IO;
    using System.Security.Cryptography;
    using System.Security.Cryptography.Xml;
    using System.Xml;
 
    class Program
    {
669 Views
no comments
 
C#
namespace Guerche.Evaristo.Luciano.Utils.ComputerInfo
{
    using System;
    using System.Linq;
    using System.Net.NetworkInformation;
 
    class Program
    {
        static void Main(string[] args)
        {
356 Views
no comments
 
C#
#region Helpers
 
        static void LoopWork(Action work, int count)
        {
            if (count < 0) return;
            for (int i = 0; i < count; i++) work();
        }
 
        static void TimeWork(Action work, string workTitle)
        {
by Orktane   July 31, 2009 @ 12:27am
262 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate