object ReadEncodedObject (XmlTypeMapping typeMap)
{
-#if MOONLIGHT
- throw new NotSupportedException ();
-#else
object ob = null;
Reader.MoveToContent();
if (Reader.NodeType == System.Xml.XmlNodeType.Element)
ReadReferencedElements();
return ob;
-#endif
}
protected virtual object ReadMessage (XmlMembersMapping typeMap)
{
-#if MOONLIGHT
- throw new NotSupportedException ();
-#else
object[] parameters = new object[typeMap.Count];
if (typeMap.HasWrapperElement)
ReadReferencedElements();
return parameters;
-#endif
}
object ReadRoot (XmlTypeMapping rootMap)
nss.Add ("", Reader.Value);
}
}
-#if !MOONLIGHT
else if (anyAttrMember != null)
{
XmlAttribute attr = (XmlAttribute) Document.ReadNode(Reader);
}
else
ProcessUnknownAttribute(ob);
-#endif
}
-#if !MOONLIGHT
if (anyAttrMember != null)
{
anyAttributeArray = ShrinkArray ((Array)anyAttributeArray, anyAttributeIndex, anyAttrMember.TypeData.Type.GetElementType(), true);
SetMemberValue (anyAttrMember, ob, anyAttributeArray, isValueList);
}
-#endif
Reader.MoveToElement ();
}
SetMemberValue (mem, ob, GetValueFromXmlString (Reader.ReadString(), info.TypeData, info.MappedType), isValueList);
}
}
-#if !MOONLIGHT
else
UnknownNode(ob);
-#endif
Reader.MoveToContent();
}
static object CreateInstance (Type type, bool nonPublic)
{
-#if MOONLIGHT
- return Activator.CreateInstance (type); // always false
-#else
return Activator.CreateInstance (type, nonPublic);
-#endif
}
object CreateInstance (Type type)
object ReadXmlNode (TypeData type, bool wrapped)
{
-#if MOONLIGHT
- throw new NotSupportedException ();
-#else
if (type.Type == typeof (XmlDocument))
return ReadXmlDocument (wrapped);
else
return ReadXmlNode (wrapped);
-#endif
}
object ReadPrimitiveElement (XmlTypeMapping typeMap, bool isNullable)