OpenMetaverse Protocol Library Developers API Documentation
FindAll Method (match)
NamespacesOpenMetaverse ObservableDictionary < (Of < ( <' TKey, TValue > ) > ) > FindAll(Predicate < (Of < <' ( TValue > ) > > ) )
Find All items in an
Declaration Syntax
C#
public 
List<TValue> 
FindAll(
        
Predicate<TValue> 
match
)
Parameters
match ( Predicate < (Of < ( <' TValue > ) > ) > )
return matching items.
Return Value
a containing found items.
Examples
Find All prims within 20 meters and store them in a List
  Copy imageCopy
int radius = 
20;
List<Primitive> prims =
Client.Network.CurrentSim.ObjectsPrimitives.FindAll(
        
delegate(Primitive prim) {
            Vector3 pos = prim.Position;
            
return ((prim.ParentID == 
0) && (pos !=
Vector3.Zero) && (Vector3.Distance(pos, location) <
radius));
        }
   );
See Also
ObservableDictionary
List

Assembly: OpenMetaverse(Module: OpenMetaverse.dll) Version: 0.9.3.3318 (0.9.3.3318)