IIdProvider Interface
Provides the base requirements for a class that provides ID's.
public interface IIdProvider
Properties
MaxId
Gets the maximum ID returned by this provider.
MinId
Gets the minimum ID returned by this provider.
Methods
ContainsId(Int32)
Returns whether the specified ID value is valid for this ID provider.
bool ContainsId(int id)
Parameter | Type | Description |
---|---|---|
id | Int32 | The ID to examine. |
Returns
- Boolean:
true
if the ID value is valid; otherwise,false
GetDescription(Int32)
Returns the actual string representation for the specified ID.
string GetDescription(int id)
Parameter | Type | Description |
---|---|---|
id | Int32 | The ID to examine. |
Returns
- String:
The actual string representation for the specified ID.
GetKey(Int32)
Returns the string-based key for the specified ID.