Class DataProperty
Represents a custom name/value property.
Implements
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
[DataContract(Namespace = "http://schemas.nevatech.com/sentinet/2011/02")]
public sealed class DataProperty : IEquatable<DataProperty>
Constructors
DataProperty()
Initializes an empty instance.
Declaration
public DataProperty()
DataProperty(string, string)
Initializes new instance with provided name and value.
Declaration
public DataProperty(string name, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Property name. |
| string | value | Property value. |
Properties
Name
Gets or sets the property name.
Declaration
[DataMember]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Value
Gets or sets the property value.
Declaration
[DataMember]
public string Value { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
Equals(DataProperty)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(DataProperty other)
Parameters
| Type | Name | Description |
|---|---|---|
| DataProperty | other | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | True, if objects are equal. False, if objects are not equal. |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | True, if objects are equal. False, if objects are not equal. |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | Hash code of the current instance. |
Overrides
ToString()
Returns a text presentation of the object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | Text presentation of the object. |