コード例 #1
0
ファイル: NbtConverter.cs プロジェクト: fragmer/fNbt
 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
ファイル: NbtConverter.cs プロジェクト: Jorch72/CS-fNbt
 internal NbtConverter([NotNull] Type contractType)
 {
     if (contractType == null)
     {
         throw new ArgumentNullException("contractType");
     }
     this.contractType           = contractType;
     compiledSerializeDelegate   = NbtCompiler.GetSerializer(contractType);
     compiledDeserializeDelegate = NbtCompiler.GetDeserializer(contractType);
 }