.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
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