Beispiel #1
0
        public static CXCursor EnsureChildByIndex(this CXCursor cursor, int index)
        {
            CXCursor?result = cursor.GetChildByIndex(index);

            if (result == null)
            {
                throw new Exception(string.Format("Cursor doesnt have {0}'s child", index));
            }

            return(result.Value);
        }