|
using System;
using System.Data;
namespace TypeBuilderLib.Buffering
{
/// <summary>Base class for buffering adapters.</summary>
/// <remarks>This class is typically derived by dynamically emitted classes.</remarks>
/// <typeparam name="I"></typeparam>
public abstract class BufferingAdapterBase<I> where I : class
{
/// <summary>Buffers a given instance.</summary>
/// <param name="buffered"></param>
public void Buffer(I buffered)
{
BufferCopy(buffered);
}
/// <summary>Implemented by emitted class.</summary>
/// <remarks>Must perform the copy into emitted fields.</remarks>
/// <param name="buffered"></param>
protected abstract void BufferCopy(I buffered);
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Vincent-Philippe is a Senior Solution Architect working in Montreal (Quebec, Canada).
His main interests are Windows Azure, .NET Enterprise suite (e.g. SharePoint 2013, Biztalk Server 2010) & the new .NET 4.5 platforms.