/// <include file='doc\XmlSerializer.uex' path='docs/doc[@for="XmlSerializer.CanDeserialize"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public virtual bool CanDeserialize(XmlReader xmlReader) { if (primitiveType != null) { TypeDesc typeDesc = (TypeDesc)TypeScope.PrimtiveTypes[primitiveType]; return(xmlReader.IsStartElement(typeDesc.DataType.Name, string.Empty)); } else if (tempAssembly != null) { return(tempAssembly.CanRead(mapping, xmlReader)); } else { return(false); } }
/// <include file='doc\XmlSerializer.uex' path='docs/doc[@for="XmlSerializer.CanDeserialize"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public virtual bool CanDeserialize(XmlReader xmlReader) { return(tempAssembly.CanRead(methodIndex, xmlReader)); }