mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
and writers for several maps in a single class. Added support for XmlMemberMapping. Fixed generation of serializers that use encoded format. * SoapAttributeAttribute.cs, SoapAttributeOverrides.cs, SoapAttributes.cs, SoapElementAttribute.cs, SoapEnumAttribute.cs, SoapTypeAttribute.cs, XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs, XmlArrayAttribute.cs, XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs, XmlAttributeAttribute.cs, XmlAttributeOverrides.cs, XmlChoiceIdentifierAttribute.cs, XmlRootAttribute.cs, XmlElementAttribute.cs, XmlElementAttributes.cs, XmlEnumAttribute.cs, XmlReflectionMember.cs, XmlTextAttribute.cs, XmlTypeAttribute.cs: Added InternalEquals method. * XmlAttributes.cs: Removed a lot of unused code. Added InternalEquals method. * SoapReflectionImporter.cs: Set SerializationSource to generated maps. * XmlCustomFormatter.cs: Fixed little bug. * XmlMapping.cs: Added Source property. This a global identifier of the map. * XmlReflectionImporter.cs: Set SerializationSource to generated maps. * XmlSchemaImporter.cs: Set the correct value for IsNillable when importing mapping members. * XmlSerializationReaderInterpreter.cs, XmlSerializationWriter.cs: Minor fixes. * XmlSerializationWriterInterpreter.cs: WriteObject and WriteEnum were not correctly used. * XmlSerializer.cs: Added support for generation of serializers. svn path=/trunk/mcs/; revision=23392
72 lines
1.4 KiB
C#
72 lines
1.4 KiB
C#
//
|
|
// XmlArrayItemAttributes.cs:
|
|
//
|
|
// Author:
|
|
// John Donagher ([email protected])
|
|
//
|
|
// (C) 2002 John Donagher
|
|
//
|
|
|
|
using System.Xml.Serialization;
|
|
using System.Collections;
|
|
using System;
|
|
|
|
namespace System.Xml.Serialization
|
|
{
|
|
/// <summary>
|
|
/// Summary description for XmlArrayItemAttributes.
|
|
/// </summary>
|
|
public class XmlArrayItemAttributes : CollectionBase
|
|
{
|
|
|
|
public XmlArrayItemAttribute this [int index] {
|
|
get {
|
|
return (XmlArrayItemAttribute)List [index];
|
|
}
|
|
set {
|
|
List [index] = value;
|
|
}
|
|
}
|
|
|
|
public int Add (XmlArrayItemAttribute attribute)
|
|
{
|
|
return List.Add(attribute);
|
|
}
|
|
|
|
public bool Contains(XmlArrayItemAttribute attribute)
|
|
{
|
|
return List.Contains(attribute);
|
|
}
|
|
|
|
public void CopyTo(XmlArrayItemAttribute[] array, int index)
|
|
{
|
|
List.CopyTo(array, index);
|
|
}
|
|
|
|
public int IndexOf(XmlArrayItemAttribute attribute)
|
|
{
|
|
return List.IndexOf(attribute);
|
|
}
|
|
|
|
public void Insert(int index, XmlArrayItemAttribute attribute)
|
|
{
|
|
List.Insert(index, attribute);
|
|
}
|
|
|
|
public void Remove(XmlArrayItemAttribute attribute)
|
|
{
|
|
List.Remove(attribute);
|
|
}
|
|
|
|
internal bool InternalEquals (XmlArrayItemAttributes other)
|
|
{
|
|
if (other == null) return false;
|
|
|
|
if (Count != other.Count) return false;
|
|
for (int n=0; n<Count; n++)
|
|
if (!this[n].InternalEquals (other[n])) return false;
|
|
return true;
|
|
}
|
|
}
|
|
}
|