Class Subtree
Represents a simple tree node without children.
Inheritance
Implements
Inherited Members
Namespace: Nevatech.Vsb.Repository.Services
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public class Subtree : IEquatable<Subtree>
Constructors
Subtree()
Instantiates a new object.
Declaration
public Subtree()
Subtree(Int32, String)
Instantiates new object and populates it with provided identifier and display name.
Declaration
public Subtree(int id, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | id | Node identifier. |
| String | name | Node display name. |
Properties
Id
Gets or sets tree node identifier.
Declaration
public int Id { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Name
Gets or sets tree node display name.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
Methods
Equals(Subtree)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(Subtree other)
Parameters
| Type | Name | Description |
|---|---|---|
| Subtree | other | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| 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 |
|---|---|---|
| Object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| Boolean | 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 |
|---|---|
| Int32 | Hash code of the current instance. |
Overrides
ToString()
Returns friendly description of the instance.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| String | Friendly description of the instance. |