예제 #1
0
 internal SyncStatementCollection(StatementCollection list) : base(Tag.Default)
 {
     rwLock     = new System.Threading.ReaderWriterLock();
     collection = list;
 }
예제 #2
0
 /// <summary>
 ///		Initializes a new instance of the <c>Enumerator</c> class.
 /// </summary>
 /// <param name="tc"></param>
 internal Enumerator(StatementCollection tc)
 {
     m_collection = tc;
     m_index      = -1;
     m_version    = tc.m_version;
 }
예제 #3
0
 public override int AddRange(StatementCollection x)
 {
     throw new NotSupportedException("This is a Read Only Collection and can not be modified");
 }
예제 #4
0
 /// <summary>
 ///		Initializes a new instance of the <c>StatementCollection</c> class
 ///		that contains elements copied from the specified <c>StatementCollection</c>.
 /// </summary>
 /// <param name="c">The <c>StatementCollection</c> whose elements are copied to the new collection.</param>
 public StatementCollection(StatementCollection c)
 {
     m_array = new Statement[c.Count];
     AddRange(c);
 }
예제 #5
0
 internal ReadOnlyStatementCollection(StatementCollection list) : base(Tag.Default)
 {
     m_collection = list;
 }