testing

testing

Old forum URL: forums.lhotka.net/forums/t/8487.aspx


admin posted on Saturday, February 06, 2010

This is a test post

bniemyjski replied on Saturday, February 06, 2010

test

RockfordLhotka replied on Saturday, February 06, 2010

test post reply

rxelizondo replied on Saturday, February 06, 2010

No problem, the answer to the test post is:

 

using System;

using Csla.Properties;

 

namespace Csla

{

    /// <summary>

    /// Maintains metadata about a property.

    /// </summary>

    /// <typeparam name="T">

    /// Data type of the property.

    /// </typeparam>

    public class PropertyInfo<T> : Core.IPropertyInfo, IComparable

    {

        /// <summary>

        /// Creates a new instance of this class.

        /// </summary>

        /// <param name="name">Name of the property.</param>

        public PropertyInfo(string name): this(name, "")

        { 

        }

 

rxelizondo replied on Saturday, February 06, 2010

The code post looks pretty good, but i did't like all the extra spaces between lines  so I am replying to myself using the "Paste from Word" option and pasting the code there, lets see what would happen:

using System;using Csla.Properties;

namespace Csla{    /// <summary>    /// Maintains metadata about a property.    /// </summary>    /// <typeparam name="T">    /// Data type of the property.    /// </typeparam>    public class PropertyInfo<T> : Core.IPropertyInfo, IComparable    {        /// <summary>        /// Creates a new instance of this class.        /// </summary>        /// <param name="name">Name of the property.</param>        public PropertyInfo(string name): this(name, "")        {         }

RockfordLhotka replied on Saturday, February 06, 2010

Pasting code in FF seems pretty good (lose the color, but keep the format)

    public IQueryable<Product> Products
    {
      get
      {
        var q = from r in _products.AsEnumerable()
                select new Product { Id = Convert.ToInt32(r[0]), Name = r[1].ToString() };
        return q.AsQueryable();
      }
    }

Pasting code in IE8 (with or without IE7 compat mode) seems pretty iffy...

rxelizondo replied on Saturday, February 06, 2010

I like it. My previous code postings where done with Google Chrome, this time I am using IE but I am doing a paste/copy to Notepad to loose the formatting. This is awesome, the simple fact that is the forum no logger gets confused with the <> symbols it perfect. It’s so beautiful, think I am going to Crying out of happines!

 

IE post via Notepad paste/copy

 private void Child_Fetch(ProjectTracker.DalLinq.Assignment data)
    {
      using (BypassPropertyChecks)
      {
        ProjectId = data.ProjectId;
        ProjectName = data.Project.Name;
        LoadPropertyConvert<SmartDate, DateTime>(AssignedProperty, data.Assigned);
        Role = data.Role;
        TimeStamp = data.LastChanged.ToArray();
      }
    }

    private void Child_Insert(Resource resource)
    {
      using (BypassPropertyChecks)
      {
        TimeStamp = Assignment.AddAssignment(
          ProjectId, resource.Id, ReadProperty(AssignedProperty), Role);
      }
    }

Copyright (c) Marimer LLC