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