CSharpTest.Net
ToStream Method
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Crypto Namespace > Salt Class : ToStream Method

Glossary Item Box

Returns the salt as a stream

Syntax

Visual Basic (Declaration) 
Public Function ToStream() As Stream
C# 
public Stream ToStream()

Example

Library/Library.Test/TestSalt.cs

C#Copy Code
Salt s = new Salt();
Assert.AreEqual(s.ToArray(), IOStream.ReadAllBytes(s.ToStream()));
VB.NETCopy Code
Dim s As New Salt()
Assert.AreEqual(s.ToArray(), IOStream.ReadAllBytes(s.ToStream()))

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys