Esempio n. 1
0
        /// <summary>
        /// Adds a new storage instruction.
        /// </summary>
        /// <returns>The builder.</returns>
        public StorageInstructionBuilder <T> AddInstruction()
        {
            var instruction = new StorageInstruction <T> {
                Owner = this
            };

            instructions.Add(instruction);
            return(new StorageInstructionBuilder <T>(instruction));
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="StorageInstructionBuilder&lt;T&gt;"/> class.
 /// </summary>
 /// <param name="storageInstruction">The storage instruction.</param>
 public StorageInstructionBuilder(StorageInstruction <T> storageInstruction)
 {
     this.storageInstruction = storageInstruction;
 }