Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetObjectData()

virtual void System.Collections.Generic.HashSet< T >.GetObjectData ( SerializationInfo info,
StreamingContext context )
inlinevirtual

Implements System.Runtime.Serialization.ISerializable.

Definition at line 386 of file HashSet.cs.

387 {
388 if (info == null)
389 {
390 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.info);
391 }
392 info.AddValue("Version", _version);
393 info.AddValue("Comparer", Comparer, typeof(IEqualityComparer<T>));
394 info.AddValue("Capacity", (_buckets != null) ? _buckets.Length : 0);
395 if (_buckets != null)
396 {
397 T[] array = new T[Count];
398 CopyTo(array);
399 info.AddValue("Elements", array, typeof(T[]));
400 }
401 }
IEqualityComparer< T > Comparer
Definition HashSet.cs:112

References System.Collections.Generic.HashSet< T >._buckets, System.Collections.Generic.HashSet< T >._version, System.array, System.Collections.Generic.HashSet< T >.CopyTo(), System.Collections.Generic.HashSet< T >.Count, System.Runtime.Serialization.Dictionary, System.info, and System.ThrowHelper.ThrowArgumentNullException().