using System;
using System.IO;
using Microsoft.SqlServer.Server;
using System.Data.SqlTypes;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;

[Serializable]
[StructLayout(LayoutKind.Sequential)]
public class ComplexSum
{
	/// <summary>
	/// the result of the aggregation
	/// </summary>
	ComplexNumber result;
	/// <summary>
	/// initialize
	/// </summary>
	public void Init()
	{
	}
	/// <summary>
	/// accumulate a value, this method ignores null values
	/// </summary>
	/// <param name="next"></param>
	public void Accumulate(ComplexNumber next)
	{
	}
	/// <summary>
	/// merge the partial aggregation with this instance.
	/// </summary>
	/// <param name="other"></param>
	public void Merge(ComplexSum other)
	{
	}
	/// <summary>
	/// terminate the aggregation and return the results to the caller.
	/// </summary>
	/// <returns></returns>
	public ComplexNumber Terminate()
	{
		return result;
	}
}
