How to Programmatically Set Permissions on Files/Folders in a SharePoint Document Library

Yep, had to figure this out since I’m still working with SharePoint stuff.  I couldn’t find any “HowTo’s,” code samples, tricks, hints, or anything else really helpful on this.  Just a bunch of other folks attemptint to do the same thing.  This is one of those things where the answer looks simple and seems like…

1