Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: string RemoveCommonIndentation(this string)

Declaration

public static string RemoveCommonIndentation(
    this string str
)

Summary

Removes spaces from the beginning of every line in such a way that the smallest indentation is reduced to zero. Lines which contain only whitespace are not considered in the calculation and may therefore become empty.

Parameters

this stringstr The string to transform.