NBitcoin vs Bitcoin Core RPC
Bitcoin has a network protocol that all nodes use to communicate with each other. So long as a software can speak that protocol, it can join the network. Since Bitcoin Core is open source, the protocol details are freely available for anyone to see and implement themselves elsewhere. The protocol details are also described on bitcoin.org.