[]
Initializes a new instance of the Resource class with the specified key.
public Resource(int key)
Type | Name | Description |
---|---|---|
int | key | The int value which should be used as resource 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 Resource class with the specified key.
public Resource(Guid key)
Type | Name | Description |
---|---|---|
Guid | key | The Guid value which should be used as resource 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 Resource object.
public Resource()
Special constructor for deserialization.
protected Resource(SerializationInfo info, StreamingContext context)
Type | Name | Description |
---|---|---|
SerializationInfo | info | The SerializationInfo. |
StreamingContext | context | The context information. |