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, Guid)
Instantiates new object and populates it with provided identifier and display name.
Declaration
public Subtree(int id, string name, Guid key)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | Node identifier. |
System.String | name | Node display name. |
System.Guid | key | Node unique key. |
Properties
Id
Gets or sets tree node identifier.
Declaration
public int Id { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Key
Gets or sets the tree node unique key.
Declaration
public Guid Key { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Name
Gets or sets tree node display name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
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
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
ToString()
Returns friendly description of the instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | Friendly description of the instance. |