dCsharp

ClassGraph.AsList Method (Object, Strategy)

A fixed-size List backed by the object graph rooted at o. The elements of the list are the objects reachable by s in the object graph with the given root whose class is a target of s. Throws TraversalSourceException if the type of root is not a source of the strategy. Note that this list (like the List returned by Arrays.AsList, but unlike the List returned by Gather()) is write-through, i.e. modifying it will modify the underlying object graph, and vice versa.

public virtual IList AsList(
   object obj,
   Strategy strategy
);

See Also

ClassGraph Class | edu.neu.ccs.demeter.dCsharp Namespace | ClassGraph.AsList Overload List