/// <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<T>"/> class. /// </summary> /// <param name="storageInstruction">The storage instruction.</param> public StorageInstructionBuilder(StorageInstruction <T> storageInstruction) { this.storageInstruction = storageInstruction; }