SIL.FieldWorks.Common.Framework.DetailControls.Slice.Slice.IsDescendant C# (CSharp) Méthode

IsDescendant() private méthode

private IsDescendant ( Slice slice ) : bool
slice Slice
Résultat bool
		bool IsDescendant(Slice slice)
		{
			var parentSlice = slice.ParentSlice;
			while (parentSlice != null)
			{
				if (parentSlice == this)
					return true;
				parentSlice = parentSlice.ParentSlice;
			}
			return false;
		}