• Mihies
    link
    fedilink
    arrow-up
    1
    ·
    4 days ago

    Um, no, C# most definitely uses GC, not ref counting, and you can’t not use it.

      • Mihies
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        edit-2
        3 days ago

        I don’t think so. Ref counting is a counter associated with the object which counts references to it and when it becomes null 0, object is destroyed. Hence ref counting. While GC does graph traversal to find which objects can be reached and marks unreachable ones as candidates for destroying.