Class IdentityControlAliasResolver
A resolver that rewrites nothing, for callers that want alias handling switched off.
Implements
Inherited Members
Namespace: Scylla.Input
Assembly: ScyllaInput.dll
Syntax
public sealed class IdentityControlAliasResolver : IInputControlAliasResolver
Remarks
Exists so that the alias resolver is never a nullable parameter. A null check inside the record builder's inner loop would be paid once per binding per rebuild for the benefit of a case that a shared immutable instance covers for free, and an accidentally-null resolver would silently disable alias handling instead of failing.
Use it in tests that need to isolate a rule from alias resolution, and as the fallback when the layout database is unavailable.
Properties
Shared
Gets the shared instance. Stateless and immutable, so one serves every caller.
Declaration
public static IdentityControlAliasResolver Shared { get; }
Property Value
| Type | Description |
|---|---|
| IdentityControlAliasResolver |
Version
Gets the version, which never changes because the answers never change.
Declaration
public int Version { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
Normalize(string)
Returns the path unchanged.
Declaration
public string Normalize(string controlPath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | controlPath | The path. |
Returns
| Type | Description |
|---|---|
| string | The same path, or an empty string when it was |