[This is preliminary documentation and is subject to change.]

Finds the specified match.

Namespace:  OpenMetaverse
Assembly:  OpenMetaverse (in OpenMetaverse.dll) Version: 1.0.0.20057

Syntax

         
 C#  Visual Basic  Visual C++ 
public TValue Find(
	Predicate<TValue> match
)
Public Function Find ( _
	match As Predicate(Of TValue) _
) As TValue
public:
TValue Find(
	Predicate<TValue>^ match
)

Parameters

match
Predicate<(Of <(TValue>)>)
The match.

Return Value

Matched value

Examples

CopyC#
// use a delegate to find a prim in the ObjectsPrimitives InternalDictionary
// with the ID 95683496
uint findID = 95683496;
Primitive findPrim = sim.ObjectsPrimitives.Find(
            delegate(Primitive prim) { return prim.ID == findID; });

See Also