Windows Live Writer Beta 2, VS Paste and WordPress

Here’s an example I pasted from LinqToRdf.

private void GenerateBinaryExpression(Expression e, string op)
{
    if (e == null)
        throw new ArgumentNullException("e was null");
    if (op == null)
        throw new ArgumentNullException("op was null");
    if (op.Length == 0)
        throw new ArgumentNullException("op.Length was empty");
    BinaryExpression be = e as BinaryExpression;
    if (be != null)
    {
        QueryAppend("(");
        Dispatch(be.Left);
        QueryAppend(")"+op+"(");
        Dispatch(be.Right);
        QueryAppend(")");
        Log("+ :{0} Handled", e.NodeType);
    }
}

If this displays properly for you, then I am a happy man.

Advertisement