Class DataProperty
Represents a custom name/value property.
Inheritance
System.Object
DataProperty
Implements
System.IEquatable<DataProperty>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
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 |
---|---|---|
System.String | name | Property name. |
System.String | value | Property value. |
Properties
Name
Gets or sets the property name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Value
Gets or sets the property value.
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.Boolean | 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 |
---|---|---|
System.Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | True, if objects are equal. False, if objects are not equal. |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code of the current instance. |
Overrides
System.Object.GetHashCode()
ToString()
Returns a text presentation of the object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | Text presentation of the object. |
Overrides
System.Object.ToString()
Implements
System.IEquatable<T>