internal NbtConverter([NotNull] Type contractType) { if (contractType == null) throw new ArgumentNullException("contractType"); this.contractType = contractType; compiledSerializeDelegate = NbtCompiler.GetSerializer(contractType); compiledDeserializeDelegate = NbtCompiler.GetDeserializer(contractType); }
internal NbtConverter([NotNull] Type contractType) { if (contractType == null) { throw new ArgumentNullException("contractType"); } this.contractType = contractType; compiledSerializeDelegate = NbtCompiler.GetSerializer(contractType); compiledDeserializeDelegate = NbtCompiler.GetDeserializer(contractType); }