My favorites | Sign in
Project Home Source
Checkout   Browse   Changes  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
´╗┐using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
using System.IO;

namespace CarHelpDesk.Web.Utils
{
public class DebugTextWriter : TextWriter
{
public override void Write(char[] buffer, int index, int count)
{
System.Diagnostics.Debug.Write(new String(buffer, index, count));
}

public override void Write(string value)
{
System.Diagnostics.Debug.Write(value);
}

public override Encoding Encoding
{
get { return System.Text.Encoding.Default; }
}

private DebugTextWriter()
{

}

public static DebugTextWriter Instance = new DebugTextWriter();

}
}

Change log

r93 by ohoboho2002 on May 2, 2010   Diff
Linq2SQL debug output
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 795 bytes, 35 lines
Powered by Google Project Hosting