Show / Hide Table of Contents

Class ManifestItemExtensions

Extension methods for ManifestItem.

Inheritance
System.Object
ManifestItemExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CSF.Validation.Manifest
Assembly: CSF.Validation.dll
Syntax
public static class ManifestItemExtensions

Methods

| Improve this Doc View Source

GetAncestor(ManifestItem, Int32)

Gets an ancestor from the specified item, at a specified depth. A depth of one will return the immediate parent, two will return the grandparent and so on.

Declaration
public static ManifestItem GetAncestor(this ManifestItem item, int depth)
Parameters
Type Name Description
ManifestItem item

The manifest item.

System.Int32 depth

The depth of ancestor to return.

Returns
Type Description
ManifestItem

The ancestor manifest item.

| Improve this Doc View Source

GetAncestors(ManifestItem)

Gets a collection of all of the ancestor manifest items for the specified items. Ancestors are returned closest-first, with more distant ancestors returned afterward.

Declaration
public static IEnumerable<ManifestItem> GetAncestors(this ManifestItem item)
Parameters
Type Name Description
ManifestItem item

The manifest item.

Returns
Type Description
System.Collections.Generic.IEnumerable<ManifestItem>

A collection of the ancestor items.

Exceptions
Type Condition
System.ArgumentNullException

If item is null.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX