Click or drag to resize

ExtensionsIndexOf Method (Byte, Byte)

Searches for the specified byte array and returns the zero-based index of the first occurrence within the entire Array

Namespace:  Cauldron
Assembly:  Cauldron (in Cauldron.dll) Version: 3.2.0.2
Syntax
public static long IndexOf(
	this byte[] data,
	byte[] value
)

Parameters

data
Type: SystemByte
The Array that could contain value
value
Type: SystemByte
The object to locate in the Array. The value can be null for reference types.

Return Value

Type: Int64
The zero-based index of the first occurrence of item within the entire Array, if found; otherwise, –1.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . 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).
See Also