dotnet / dotnet/dotnet-api-docs
NullReferenceException
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
ReplaceChild() throws a NullReferenceException if oldChild is null, and most likely also if newChild is null.
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 126d866b-8425-0cc5-a1f8-79b0049be42d
* Version Independent ID: 712cddd0-596a-032c-2e44-44454056f891
* Content: [XmlNode.ReplaceChild(XmlNode, XmlNode) Method (System.Xml)](https://docs.microsoft.com/en-us/dotnet/api/system.xml.xmlnode.replacechild?redirectedfrom=MSDN&view=netframework-4.7.2#System_Xml_XmlNode_ReplaceChild_System_Xml_XmlNode_System_Xml_XmlNode_)
* Content Source: [xml/System.Xml/XmlNode.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Xml/XmlNode.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**
Contributor guide
Assessment
This issue has not been assessed yet.