[]
Initializes a new instance of the Category class with the specified key.
public Category(int key)
Type | Name | Description |
---|---|---|
int | key | The int value which should be used as category key. |
Use this constructor if your business logic requires setting custom key value. Make sure that you use the correct constructor overload (with integer or Guid key value) and that key value is unique.
Initializes a new instance of the Category class with the specified key.
public Category(Guid key)
Type | Name | Description |
---|---|---|
Guid | key | The Guid value which should be used as category key. |
Use this constructor if your business logic requires setting custom key value. Make sure that you use the correct constructor overload (with integer or Guid key value) and that key value is unique.
Creates the new Category object.
public Category()
Creates custom Category object with specified text.
public Category(string text)
Type | Name | Description |
---|---|---|
string | text | The text of category. |
Special constructor for deserialization.
protected Category(SerializationInfo info, StreamingContext context)
Type | Name | Description |
---|---|---|
SerializationInfo | info | The SerializationInfo. |
StreamingContext | context | The context information. |