System.Collections.Hashtable.SyncHashtable.GetObjectData C# (CSharp) Method

GetObjectData() public method

public GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
return void
            public override void GetObjectData(SerializationInfo info, StreamingContext context)
            {
                if (info == null)
                {
                    throw new ArgumentNullException(nameof(info));
                }
                Contract.EndContractBlock();

                // Our serialization code hasn't been fully tweaked to be safe 
                // for a concurrent writer.
                lock (_table.SyncRoot)
                {
                    info.AddValue("ParentTable", _table, typeof(Hashtable));
                }
            }