ExtensionMethods::FindAncestor<TAncestorType, TElementType> Method (TElementType, Func<TElementType, TElementType>^)
Visual Studio 2015
Microsoft internal use only.
Assembly: Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)
public: generic<typename TAncestorType, typename TElementType> where TAncestorType : ref class [ExtensionAttribute] static TAncestorType FindAncestor( TElementType obj, Func<TElementType, TElementType>^ parentEvaluator )
Parameters
- obj
-
Type:
TElementType
The object at which to begin searching.
- parentEvaluator
-
Type:
System::Func<TElementType, TElementType>^
The method used to determine the parent of an element.
Return Value
Type: TAncestorTypeType Parameters
- TAncestorType
The type of ancestor to find.
- TElementType
The base type of intermediate elements in the ancestor tree.
Show: