|
by Paulo Morgado via Paulo Morgado : C# on 8/18/2010 1:27:14 AM
To finalize this series on object hydration, I’ll show some performance comparisons between the different methods of hydrating objects. For the purpose of this exercise, I’ll use this class: class SomeType
{
public int Id { get; set; }
public string Name { get; set; }
public DateTimeOffset CreationTime { get; set; }
public Guid UniqueId { get; set; }
}
and this set of data:
var data = (
from i in Enumerable.Range(1, ObjectCount)
select new object[] { i, i.ToString(
... [ read more ]
|
|