Click or drag to resize

RandomizerExtensionsFillWithRandomValues Method (GCHandle, Int32, Boolean)

Replaces the values of data in memory with random values.

Namespace:  Cauldron
Assembly:  Cauldron.Randomizer (in Cauldron.Randomizer.dll) Version: 3.2.0.2
Syntax
public static void FillWithRandomValues(
	this GCHandle target,
	int targetLength,
	bool freeHandle
)

Parameters

target
Type: System.Runtime.InteropServicesGCHandle
targetLength
Type: SystemInt32
The length of the data
freeHandle
Type: SystemBoolean
If true, the GC handle will be freed; otherwise not.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type GCHandle. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
Will only work on Pinned
See Also