@@ -20,8 +20,8 @@ public sealed class LightningEnvironment : IDisposable
2020 /// Creates a new instance of LightningEnvironment.
2121 /// </summary>
2222 /// <param name="path">Directory for storing database files.</param>
23- /// <param name="configuration">Configuration for the environment.</param>
24- public LightningEnvironment ( string path , EnvironmentConfiguration configuration = null )
23+ /// <param name="configuration">Configuration for the environment. If null, default configuration is used. </param>
24+ public LightningEnvironment ( string path , EnvironmentConfiguration ? configuration = null )
2525 {
2626 if ( string . IsNullOrWhiteSpace ( path ) )
2727 throw new ArgumentException ( "Invalid directory name" ) ;
@@ -225,7 +225,7 @@ public void Open(EnvironmentOpenFlags openFlags = EnvironmentOpenFlags.None, Uni
225225 /// Cursors may not span transactions; each cursor must be opened and closed within a single transaction.
226226 /// </summary>
227227 /// <param name="parent">
228- /// If this parameter is non-NULL , the new transaction will be a nested transaction, with the transaction indicated by parent as its parent.
228+ /// If this parameter is non-null , the new transaction will be a nested transaction, with the transaction indicated by parent as its parent.
229229 /// Transactions may be nested to any level.
230230 /// A parent transaction may not issue any other operations besides BeginTransaction, Abort, or Commit while it has active child transactions.
231231 /// </param>
@@ -235,7 +235,7 @@ public void Open(EnvironmentOpenFlags openFlags = EnvironmentOpenFlags.None, Uni
235235 /// <returns>
236236 /// New LightningTransaction
237237 /// </returns>
238- public LightningTransaction BeginTransaction ( LightningTransaction parent = null , TransactionBeginFlags beginFlags = LightningTransaction . DefaultTransactionBeginFlags )
238+ public LightningTransaction BeginTransaction ( LightningTransaction ? parent = null , TransactionBeginFlags beginFlags = LightningTransaction . DefaultTransactionBeginFlags )
239239 {
240240 if ( ! IsOpened )
241241 throw new InvalidOperationException ( "Environment must be opened before starting a transaction" ) ;
@@ -245,7 +245,7 @@ public LightningTransaction BeginTransaction(LightningTransaction parent = null,
245245
246246 /// <summary>
247247 /// Create a transaction for use with the environment.
248- /// The transaction handle may be discarded usingAbort () or Commit().
248+ /// The transaction handle may be discarded using Abort () or Commit().
249249 /// Note:
250250 /// Transactions may not span threads; a transaction must only be used by a single thread. Also, a thread may only have a single transaction.
251251 /// Cursors may not span transactions; each cursor must be opened and closed within a single transaction.
0 commit comments