CSharpTest.Net
Byte Field
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Serialization Namespace > PrimitiveSerializer Class : Byte Field

Glossary Item Box

Gets a typed version of the PrimitiveSerializer

Syntax

Visual Basic (Declaration) 
Public Shared ReadOnly Byte As ISerializer(Of Byte)
C# 
public static readonly ISerializer<byte> Byte

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.NETCopy 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

Generated with Document! X 2011 by Innovasys