CompressKey(UnsafeStringBuilder, bool, int)
Compresses the key if necessary.
Declaration
protected virtual string CompressKey(UnsafeStringBuilder stringBuilder, bool useMethodNameAsPrefix, int threshold)Parameters
| Type | Name | Description |
|---|---|---|
| UnsafeStringBuilder | stringBuilder | The uncompressed key. |
| bool | useMethodNameAsPrefix |
|
| int | threshold | The minimal key length above which compression is applied. |
Returns
| Type | Description |
|---|---|
| string | The compressed key. |