Loupe - Log - Monitor - Resolve
Gibraltar Namespace / StringReference.WeakStringCollection Class
Members

In This Topic
    StringReference.WeakStringCollection Class
    In This Topic
    Keeps one or more weak references to strings which all have the same hash code.
    Syntax
    'Declaration
     
    
    Public Class StringReference.WeakStringCollection 
    public class StringReference.WeakStringCollection 
    Remarks
    A single string (the vast majority of cases) will be kept as a single reference. When collisions put more than one string in the same hash code the extras will be stored in an array. The array will allocate in increments of 4 (allowing 3 more before the next expand). Packing thus requires a linear walk of the array to move remaining references up, and this can also be done when simply looking up a reference to consider adding it to the collection (which requires a linear walk anyway).
    Inheritance Hierarchy

    System.Object
       Gibraltar.StringReference.WeakStringCollection

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also