Files
mono/mcs/class/System.XML/System.Xml.Serialization/XmlReflectionMember.cs
T
Lluis Sanchez 8e18d03529 * SoapReflectionImporter.cs: implemented.
* TypeTranslator.cs: added IsPrimitive() method
	* TypeMapping.cs: Added RelatedMaps property that returns all maps directly or indirectly
	  used by that one. Also added Format property, that can be literal or encoded.
	* XmlReflectionImporter.cs: little fixes. Moved some methods to ReflectionHelper.
	* XmlReflectionMember.cs: added constructor that accepts SoapAttributes
	* XmlSerializationReader.cs: implemented many methods needed to support encoded format.
	* XmlSerializationReaderInterpreter.cs: added support for encoded format.
	* XmlSerializationWriter.cs: added support for encoded format.
	* XmlSerializationWriterInterpreter.cs: added support for encoded format.
	* XmlTypeMapElementInfo.cs: added some properties needed to support encoded format
	* XmlTypeMapMemberAttribute.cs: added MappedType property (enum values can be attributes,
	  and a map is needed for them).
	* XmlTypeMapMemberElement.cs: small fixes.
	* XmlTypeMapping.cs: added some properties and methods needed to support encoded format
	* ReflectionHelper.cs: added. Has some methods shared by the reflection importers.

svn path=/trunk/mcs/; revision=15130
2003-06-05 18:17:28 +00:00

87 lines
1.7 KiB
C#

//
// System.Xml.Serialization.XmlReflectionMember
//
// Author:
// Tim Coleman ([email protected])
//
// Copyright (C) Tim Coleman, 2002
//
namespace System.Xml.Serialization {
public class XmlReflectionMember {
#region Fields
bool isReturnValue;
string memberName;
Type memberType;
bool overrideIsNullable;
SoapAttributes soapAttributes;
XmlAttributes xmlAttributes;
#endregion
#region Constructors
public XmlReflectionMember ()
{
}
internal XmlReflectionMember (string name, Type type, XmlAttributes attributes)
{
memberName = name;
memberType = type;
xmlAttributes = attributes;
}
internal XmlReflectionMember (string name, Type type, SoapAttributes attributes)
{
memberName = name;
memberType = type;
soapAttributes = attributes;
}
#endregion // Constructors
#region Properties
public bool IsReturnValue {
get { return isReturnValue; }
set { isReturnValue = value; }
}
public string MemberName {
get { return memberName; }
set { memberName = value; }
}
public Type MemberType {
get { return memberType; }
set { memberType = value; }
}
public bool OverrideIsNullable {
get { return overrideIsNullable; }
set { overrideIsNullable = value; }
}
public SoapAttributes SoapAttributes {
get {
if (soapAttributes == null) soapAttributes = new SoapAttributes();
return soapAttributes;
}
set { soapAttributes = value; }
}
public XmlAttributes XmlAttributes {
get {
if (xmlAttributes == null) xmlAttributes = new XmlAttributes();
return xmlAttributes;
}
set { xmlAttributes = value; }
}
#endregion // Properties
}
}