コード例 #1
0
            /// <summary>
            /// Return a {@code LongAdder} object with initial state
            /// held by this proxy.
            /// </summary>
            /// <returns> a {@code LongAdder} object with initial state
            /// held by this proxy. </returns>
            internal virtual Object ReadResolve()
            {
                LongAdder a = new LongAdder();

                a.@base = Value;
                return(a);
            }
コード例 #2
0
 internal SerializationProxy(LongAdder a)
 {
     Value = a.Sum();
 }