Quantcast
Channel: SQL Server Compact & SQLite Toolbox
Viewing all articles
Browse latest Browse all 2796

Commented Feature: Add DebugWriter to wp datacontext [9615]

$
0
0
.LogDebug method on DataContext class

bool LogDebug
{ set; this.log = new DebugWriter() }

http://blogs.msdn.com/b/jgalla/archive/2011/05/27/datacontext-log-and-windows-phone.aspx
(looks better than implementation below)

class DebugWriter : TextWriter
{
public override void Write(char[] buffer, int index, int count)
{
Debug.WriteLine(new String(buffer, index, count));
}

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

public override Encoding Encoding
{
get { return Encoding.UTF8; }
}
}
Comments: Fixed on changeset 72591

Viewing all articles
Browse latest Browse all 2796

Latest Images

Trending Articles



Latest Images

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