Powershell to recursively strip C# regions from files

added by rdingwall
8/12/2010 4:36:33 AM

1 Kicks, 102 Views

Here’s a super quick little powershell snippet to strip regions out of all C# files in a directory tree. Useful for legacy code where people hide long blocks in regions rather than encapsulate it into smaller methods/objects.