Anonymous
Resources is an interface wrapper accessible as a property of the Document object and allows modification of resources in a PE (Portable Executable) file.
The above method use resource identifiers - objects with following methods:
// add a new icon to icon library
var res = Document.Resources;
res.CreateResource(res.TypeIcon);