Bilbro Bloggins

Musings of Brian Bilbro

Test Code Post From Windows Live Writer

This is a test post from Windows Live Writer to see how code will display pasted from various sources.

 

Sample pasted from Visual Studio:

public object GetValueByIndex(int index)

{

object returnData = null;

if(index<this.EntityProperties.Length)

{

returnData = this.EntityProperties[index].GetValue(this,null);

}

return returnData;

}

 

 

Sample pasted from Visual Studio to Word 2007 and into Live Writer:

            public object GetValueByIndex(int index)

            {

                  object returnData = null;

 

                  if(index<this.EntityProperties.Length)

                  {

                        returnData = this.EntityProperties[index].GetValue(this,null);

                  }

 

                  return returnData;

            }

 

 

Sample pasted from Visual Studio to Notepad and into Live Writer:

  public object GetValueByIndex(int index)
  {
   object returnData = null;

   if(index<this.EntityProperties.Length)
   {
    returnData = this.EntityProperties[index].GetValue(this,null);
   }

   return returnData;
  }

 

 

Sample pasted from Visual Studio and then added a <code> block:

public object GetValueByIndex(int index)

{

object returnData = null;

if(index<this.EntityProperties.Length)

{

returnData = this.EntityProperties[index].GetValue(this,null);

}

return returnData;

}

 

 

Sample pasted from Visual Studio to Word 2007 and into Live Writer and then added a <code> block:

            public object GetValueByIndex(int index)

            {

                  object returnData = null;

 

                  if(index<this.EntityProperties.Length)

                  {

                        returnData = this.EntityProperties[index].GetValue(this,null);

                  }

 

                  return returnData;

            }

 

 

Sample pasted from Visual Studio to Notepad and into Live Writer and then added a <code> block:

  public object GetValueByIndex(int index)
  {
   object returnData = null;

   if(index<this.EntityProperties.Length)
   {
    returnData = this.EntityProperties[index].GetValue(this,null);
   }

   return returnData;
  }

» Similar Posts

  1. Test Code Post From Graffiti Post Editor
  2. Test using a source code plug-in for Windows Live Writer
  3. Dropdown Filter Web Part in SharePoint – Part Two

» Trackbacks & Pingbacks

    No trackbacks yet.
Trackback link for this post:
http://bilbroblog.com/trackback.ashx?id=5
 

» Comments

  1. Scott Mitchell avatar

    Brian, you might want to consider using a JavaScript-based syntax highlighter, such as the tool discussed by Scott Hanselman here: www.hanselman.com/.../BestCodeSyntaxH

    Scott Mitchell — December 9, 2008 8:44 PM
  2. Brian Bilbro avatar

    Thanks Scott! I'll have to check that out.

    Brian Bilbro — December 12, 2008 10:01 PM

» Leave a Comment