src/Shared/EntityFramework/Migrations/Design/VisualBasicMigrationCodeGenerator.cs
/// <summary>
/// Generates the closing code for a class that was started with WriteClassStart.
/// </summary>
/// <param name="namespace"> Namespace that code should be generated in. </param>
/// <param name="writer"> Text writer to add the generated code to. </param>
Generates the closing code for a class that was started with WriteClassStart.
Generates the closing code for a class that was started with WriteClassStart .
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "namespace")]
        protected virtual void WriteClassEnd(string @namespace, IndentedTextWriter writer)
        {
            Check.NotNull(writer, "writer");
            writer.Indent--;
            writer.WriteLine("End Class");
            if (!string.IsNullOrWhiteSpace(@namespace))
            {
                writer.Indent--;
                writer.WriteLine("End Namespace");
            }
        }
[ SuppressMessage ( " " , " " , MessageId = " " ) ] protected virtual void WriteClassEnd ( string @namespace , IndentedTextWriter writer ) { Check . NotNull ( writer , " " ) ; writer . Indent -- ; writer . WriteLine ( " " ) ; if ( ! string . IsNullOrWhiteSpace ( @namespace ) ) { writer . Indent -- ; writer . WriteLine ( " " ) ; } }
Generates the closing code for a class that was started with WriteClassStart.
Generates the closing code for a class that was started with WriteClassStart .
@namespace
string
writer
IndentedTextWriter
Text writer to add the generated code to.
Text writer to add the generated code to .
namespace
Namespace that code should be generated in.
Namespace that code should be generated in .