IIdentifiable<K>

Interface used to create data objects that can be uniquely idendified by an ID.

Description

The IIdentifiable interface is used to create data objects that can be uniquely idendified by an ID.

Important points

  • The type specified in the interface defines the type of the ID field.

Properties

Id

The unique object identifier of type K.

T Id { get; set; }

Examples

public class MyData: IIdentifiable<String> 
{
    string id {get; set;}
    string field1;
    int field2;
    ...
}