© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•12mo ago•
6 replies
Vortac

Properties referencing their class

Given the following class example:


 csharp
class Node
{
    public Node LeftNode { get; set; }
    public Node RightNode { get; set; }
    public int Data { get; set; }
}
 csharp
class Node
{
    public Node LeftNode { get; set; }
    public Node RightNode { get; set; }
    public int Data { get; set; }
}


How do the Node properties work here? Do they create new instances of the class?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

✅ referencing `WebApplication` from a class library
C#CC# / help
3y ago
❔ ✅ beginner class and properties
C#CC# / help
4y ago
Dynamically assign values to class instance properties / Indexing class instance properties
C#CC# / help
2y ago
need help with properties and their setters
C#CC# / help
4y ago