/// <summary> /// This constructor can be used for response list items or for sub-lists that are properties /// on other QBFC objects. /// </summary> /// <param name="lst">The sub-list</param> public QBFCIterator(IQBBase lst) { m_List = lst as L; if (m_List == null && lst != null) { throw new Exception("iterator type mismatch: check your template parameters"); } }
public QBFCScalar(IQBBase lst) { m_List = lst as L; if (m_List == null && lst != null) { throw new Exception("scalar type mismatch"); } if (m_List != null) { Type t = m_List.GetType(); int count = (int)t.InvokeMember("Count", System.Reflection.BindingFlags.GetProperty, null, m_List, null); if (count > 1) { throw new Exception("More than one entity found for scalar query"); } } }