Gets a typed version of the PrimitiveSerializer
Syntax
Example
Library/Library.Test/TestOrderedEnumeration.cs
C# | Copy Code |
---|
byte[] input = new byte[512];
new Random().NextBytes(input);
var ordered = new OrderedEnumeration<byte>(input);
ordered.Serializer = PrimitiveSerializer.Byte;
ordered.InMemoryLimit = 10;
ordered.DuplicateHandling = DuplicateHandling.FirstValueWins;
using (var e = ordered.GetEnumerator())
Assert.IsTrue(e.MoveNext()); |
VB.NET | Copy Code |
---|
Dim input As Byte() = New Byte(512) {}
New Random().NextBytes(input)
Dim ordered As var = New OrderedEnumeration(Of Byte)(input)
ordered.Serializer = PrimitiveSerializer.[Byte]
ordered.InMemoryLimit = 10
ordered.DuplicateHandling = DuplicateHandling.FirstValueWins
Using e As var = ordered.GetEnumerator()
Assert.IsTrue(e.MoveNext())
End Using |
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
See Also