Files
Dec2017-Script-Dump/mscorlib/System/Runtime/Serialization/SerializationInfoEnumerator.cs
T
2026-06-04 11:42:34 +02:00

105 lines
3.8 KiB
C#

using System;
using System.Collections;
using System.Runtime.InteropServices;
namespace System.Runtime.Serialization
{
/// <summary>Provides a formatter-friendly mechanism for parsing the data in <see cref="T:System.Runtime.Serialization.SerializationInfo" />. This class cannot be inherited.</summary>
// Token: 0x02000495 RID: 1173
[ComVisible(true)]
public sealed class SerializationInfoEnumerator : IEnumerator
{
// Token: 0x06002C7B RID: 11387 RVA: 0x00092724 File Offset: 0x00090924
internal SerializationInfoEnumerator(ArrayList list)
{
this.enumerator = list.GetEnumerator();
}
/// <summary>Gets the current item in the collection.</summary>
/// <returns>A <see cref="T:System.Runtime.Serialization.SerializationEntry" /> that contains the current serialization data.</returns>
/// <exception cref="T:System.InvalidOperationException">The enumeration has not started or has already ended. </exception>
// Token: 0x170008AA RID: 2218
// (get) Token: 0x06002C7C RID: 11388 RVA: 0x00092738 File Offset: 0x00090938
object IEnumerator.Current
{
get
{
return this.enumerator.Current;
}
}
/// <summary>Gets the item currently being examined.</summary>
/// <returns>The item currently being examined.</returns>
/// <exception cref="T:System.InvalidOperationException">The enumerator has not started enumerating items or has reached the end of the enumeration. </exception>
// Token: 0x170008AB RID: 2219
// (get) Token: 0x06002C7D RID: 11389 RVA: 0x00092748 File Offset: 0x00090948
public SerializationEntry Current
{
get
{
return (SerializationEntry)this.enumerator.Current;
}
}
/// <summary>Gets the name for the item currently being examined.</summary>
/// <returns>The item name.</returns>
/// <exception cref="T:System.InvalidOperationException">The enumerator has not started enumerating items or has reached the end of the enumeration. </exception>
// Token: 0x170008AC RID: 2220
// (get) Token: 0x06002C7E RID: 11390 RVA: 0x0009275C File Offset: 0x0009095C
public string Name
{
get
{
SerializationEntry serializationEntry = this.Current;
return serializationEntry.Name;
}
}
/// <summary>Gets the type of the item currently being examined.</summary>
/// <returns>The type of the item currently being examined.</returns>
/// <exception cref="T:System.InvalidOperationException">The enumerator has not started enumerating items or has reached the end of the enumeration. </exception>
// Token: 0x170008AD RID: 2221
// (get) Token: 0x06002C7F RID: 11391 RVA: 0x00092778 File Offset: 0x00090978
public Type ObjectType
{
get
{
SerializationEntry serializationEntry = this.Current;
return serializationEntry.ObjectType;
}
}
/// <summary>Gets the value of the item currently being examined.</summary>
/// <returns>The value of the item currently being examined.</returns>
/// <exception cref="T:System.InvalidOperationException">The enumerator has not started enumerating items or has reached the end of the enumeration. </exception>
// Token: 0x170008AE RID: 2222
// (get) Token: 0x06002C80 RID: 11392 RVA: 0x00092794 File Offset: 0x00090994
public object Value
{
get
{
SerializationEntry serializationEntry = this.Current;
return serializationEntry.Value;
}
}
/// <summary>Updates the enumerator to the next item.</summary>
/// <returns>true if a new element is found; otherwise, false.</returns>
// Token: 0x06002C81 RID: 11393 RVA: 0x000927B0 File Offset: 0x000909B0
public bool MoveNext()
{
return this.enumerator.MoveNext();
}
/// <summary>Resets the enumerator to the first item.</summary>
// Token: 0x06002C82 RID: 11394 RVA: 0x000927C0 File Offset: 0x000909C0
public void Reset()
{
this.enumerator.Reset();
}
// Token: 0x04001136 RID: 4406
private IEnumerator enumerator;
}
}