예제 #1
0
            /// <summary>
            /// Returns a {@code DoubleAdder} object with initial state
            /// held by this proxy.
            /// </summary>
            /// <returns> a {@code DoubleAdder} object with initial state
            /// held by this proxy. </returns>
            internal virtual Object ReadResolve()
            {
                DoubleAdder a = new DoubleAdder();

                a.@base = Double.doubleToRawLongBits(Value);
                return(a);
            }
예제 #2
0
 internal SerializationProxy(DoubleAdder a)
 {
     Value = a.Sum();
 }