public CSharpMigrationsGeneratorDependencies( [NotNull] ICSharpHelper csharpHelper, [NotNull] ICSharpMigrationOperationGenerator csharpMigrationOperationGenerator, [NotNull] ICSharpSnapshotGenerator csharpSnapshotGenerator) { CSharpHelper = csharpHelper; CSharpMigrationOperationGenerator = csharpMigrationOperationGenerator; CSharpSnapshotGenerator = csharpSnapshotGenerator; }
/// <summary> /// Clones this dependency parameter object with one service replaced. /// </summary> /// <param name="csharpSnapshotGenerator"> A replacement for the current dependency of this type. </param> /// <returns> A new parameter object with the given service replaced. </returns> public CSharpMigrationsGeneratorDependencies With([NotNull] ICSharpSnapshotGenerator csharpSnapshotGenerator) => new CSharpMigrationsGeneratorDependencies( CSharpHelper, CSharpMigrationOperationGenerator, csharpSnapshotGenerator);