Click or drag to resize
BroccoliSharp BroValueExtensionsConvertToType Method
Attempts to get a new BroValue based on the provided value converted to the specified type.

Namespace: BroccoliSharp
Assembly: BroccoliSharp (in BroccoliSharp.dll) Version: 1.0.5434.15853
Syntax
public static BroValue ConvertToType(
	this BroValue value,
	BroType type
)

Parameters

value
Type: BroccoliSharpBroValue
BroValue to convert.
type
Type: BroccoliSharpBroType
BroType to convert to.

Return Value

Type: BroValue
BroValue converted to type if successful; otherwise, null.

Usage Note

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