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

◆ GetObjectData() [2/2]

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

Implements System.Runtime.Serialization.ISerializable.

Reimplemented in System.Collections.Generic.SortedSet< T >.TreeSubSet, and System.Collections.Generic.SortedSet< T >.TreeSubSet.

Definition at line 1920 of file SortedSet.cs.

1921 {
1922 if (info == null)
1923 {
1924 throw new ArgumentNullException("info");
1925 }
1926 info.AddValue("Count", count);
1927 info.AddValue("Comparer", comparer, typeof(IComparer<T>));
1928 info.AddValue("Version", version);
1929 if (root != null)
1930 {
1931 T[] array = new T[Count];
1932 CopyTo(array, 0);
1933 info.AddValue("Items", array, typeof(T[]));
1934 }
1935 }

References System.array, System.Collections.Generic.SortedSet< T >.comparer, System.Collections.Generic.SortedSet< T >.CopyTo(), System.Collections.Generic.SortedSet< T >.count, System.Collections.Generic.SortedSet< T >.Count, System.Runtime.Serialization.Dictionary, System.info, System.Collections.Generic.SortedSet< T >.root, and System.Collections.Generic.SortedSet< T >.version.