mirror of
https://github.com/ZuneDev/Xune.git
synced 2026-07-27 13:13:10 -07:00
Added raw UIX.RenderApi project
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: Microsoft.Iris.Render.Graphics.AncestorEnumerator
|
||||
// Assembly: UIX.RenderApi, Version=4.8.0.0, Culture=neutral, PublicKeyToken=ddd0da4d3e678217
|
||||
// MVID: D47658B8-A8EA-43D6-8837-ECE823BFFFC1
|
||||
// Assembly location: C:\Program Files\Zune\UIX.RenderApi.dll
|
||||
|
||||
using System.Collections;
|
||||
|
||||
namespace Microsoft.Iris.Render.Graphics
|
||||
{
|
||||
internal struct AncestorEnumerator : IEnumerator, IEnumerable
|
||||
{
|
||||
private TreeNode m_nodeStart;
|
||||
private TreeNode m_nodeCurrent;
|
||||
private TreeNode m_nodeNext;
|
||||
|
||||
internal AncestorEnumerator(TreeNode nodeStart)
|
||||
{
|
||||
this.m_nodeStart = nodeStart;
|
||||
this.m_nodeCurrent = (TreeNode) null;
|
||||
this.m_nodeNext = this.m_nodeStart;
|
||||
}
|
||||
|
||||
object IEnumerator.Current => (object) this.m_nodeCurrent;
|
||||
|
||||
public TreeNode Current => this.m_nodeCurrent;
|
||||
|
||||
IEnumerator IEnumerable.GetEnumerator() => (IEnumerator) this;
|
||||
|
||||
public AncestorEnumerator GetEnumerator() => this;
|
||||
|
||||
public void Reset()
|
||||
{
|
||||
this.m_nodeCurrent = (TreeNode) null;
|
||||
this.m_nodeNext = this.m_nodeStart;
|
||||
}
|
||||
|
||||
public bool MoveNext()
|
||||
{
|
||||
this.m_nodeCurrent = this.m_nodeNext;
|
||||
if (this.m_nodeNext == null)
|
||||
return false;
|
||||
this.m_nodeNext = this.m_nodeNext.Parent;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user