-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
featureNew feature or request enhancementNew feature or request enhancementgood first issueGood for newcomersGood for newcomers
Description
The file has extensive P/Invoke code that's currently working well, but could benefit from error handling consolidation:
// Consider adding a wrapper method to reduce repetition
private static Icon? TryGetIconFromImageList(string filePath, int imageListType)
{
try
{
SHFILEINFO shinfo = new SHFILEINFO();
IntPtr result = SHGetFileInfo(filePath, 0, ref shinfo,
(uint)Marshal.SizeOf(shinfo), SHGFI_SYSICONINDEX);
// ... rest of logic
}
catch
{
return null;
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew feature or request enhancementNew feature or request enhancementgood first issueGood for newcomersGood for newcomers