andrew4582

HierarchyScope

Feb 17th, 2012
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1.     [Flags]
  2.     public enum HierarchyScope
  3.     {
  4.         AllOrNone = 0,
  5.         Parent = 2, // One
  6.         Ancestors = 4, // Many
  7.         AncestorsOrSelf = 8, // Many including self
  8.         Descendents = 16, // All
  9.         DescendentsOrSelf = 32, // All including self
  10.         Children = 64, // Just one level below
  11.         Parents = 128 // Many immediate ancestors (one level 'up')
  12.     }
  13.  
  14.     [Flags]
  15.     public enum Direction
  16.     {
  17.         Parents = 0,
  18.         Ancestors = 2,
  19.         Descendents = 4,
  20.         Children = 8,
  21.         Siblings = 16
  22.     }
Advertisement
Add Comment
Please, Sign In to add comment