|
using System;
using System.Collections;
namespace Sample.Tests
{
public class CommandResult
{
#region Constructors
public CommandResult(TimeSpan timeProcessing)
{
this.timeProcessing = timeProcessing;
}
#endregion
#region Properties
public TimeSpan TimeProcessing
{
get { return timeProcessing; }
set { timeProcessing = value; }
}
#endregion
#region Members
private TimeSpan timeProcessing;
#endregion
}
public class CommandResultCollection : CollectionBase
{
#region Properties
public CommandResult this[int index]
{
get
{
return (CommandResult)List[index];
}
set
{
List[index] = value;
}
}
#endregion
#region Methods
public void Add(CommandResult commandResult)
{
List.Add(commandResult);
}
public void AddRange(CommandResultCollection commandResults)
{
InnerList.AddRange(commandResults);
}
public void Remove(CommandResult commandResult)
{
List.Remove(commandResult);
}
public bool Contains(CommandResult commandResult)
{
return List.Contains(commandResult);
}
#endregion
}
}
|
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.
Independent contract developer for .NET data-oriented systems.
not much to say about myself but feel free to contact me for any inquiries and comments!