SetOfBoxes`1.cs
20 lines
| 426 B
| text/x-csharp
|
CSharpLexer
cin
|
r289 | using System; | |
using System.Linq; | |||
namespace Implab.ServiceHost.Test.Mock { | |||
public class SetOfBoxes<T> { | |||
public Guid Uuid { get; set; } | |||
public IBox<T>[] Boxes { | |||
get; set; | |||
} | |||
public void BoxValues(T[] items) { | |||
if (items == null || items.Length == 0) | |||
return; | |||
Boxes = items.Select(x => new Box<T> {Value = x}).ToArray(); | |||
} | |||
} | |||
} |