System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.Indent C# (CSharp) Method

Indent() private static method

private static Indent ( string s, string indentation ) : string
s string
indentation string
return string
        private static string Indent(string s, string indentation)
        {
            DebugCheck.NotEmpty(s);
            DebugCheck.NotNull(s);

            return new Regex(@"\r?\n *").Replace(s, Environment.NewLine + indentation);
        }