---
Product: Aspose.Email
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/email/net/directory-entry-name-comparer
---

# DirectoryEntryNameComparer

## Overview

`DirectoryEntryNameComparer` implements `IComparer<string>` for CFB directory entry names using the UTF-16LE, case-insensitive comparison algorithm defined in MS-CFB §2.6.4. Use it to locate children in the red-black tree of a CFB storage, or when building a sorted directory manually before passing it to `CfbWriter`. The `Compare` method returns a negative, zero, or positive integer following the standard `IComparer` contract.

## Methods

| Signature | Description |
|-----------|-------------|
| `Compare(left: string, right: string)` | Compares two CFB directory entry names using UTF-16LE, case-insensitive collation per MS-CFB §2.6.4. |

## See Also
- [Aspose.Email for .NET — Enterprise API Reference](https://reference.aspose.com/email/net/)