Package cli.System

Examples of cli.System.WeakReference


    public WeakIdentityMap()
    {
        for (int i = 0; i < keys.length; i++)
        {
            keys[i] = new WeakReference(null, true);
            // NOTE we suppress finalization, to make sure the WeakReference continues to work
            // while the AppDomain is finalizing for unload (note that for this to work,
            // the code that instantiates us also has to call SuppressFinalize on us.)
            GC.SuppressFinalize(keys[i]);
        }
View Full Code Here


            cli.System.Array.Copy((cli.System.Array)(Object)values, (cli.System.Array)(Object)newvalues, len);
            keys = newkeys;
            values = newvalues;
            for (int i = len; i < keys.length; i++)
            {
                keys[i] = new WeakReference(null, true);
                GC.SuppressFinalize(keys[i]);
            }
            keys[len].set_Target(key);
            values[len] = value;
        }
View Full Code Here

TOP

Related Classes of cli.System.WeakReference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.