コード例 #1
0
ファイル: SerializeCodeEmitter.cs プロジェクト: fragmer/fNbt
 public SerializeCodeEmitter([NotNull] ParameterExpression argTagName, [NotNull] ParameterExpression argValue,
                             [NotNull] NbtCompiler.CallResolver callResolver)
 {
     if (argTagName == null) throw new ArgumentNullException("argTagName");
     if (argValue == null) throw new ArgumentNullException("argValue");
     if (callResolver == null) throw new ArgumentNullException("callResolver");
     varRootTag = Expression.Parameter(typeof(NbtCompound), "rootTag");
     this.argTagName = argTagName;
     this.argValue = argValue;
     this.callResolver = callResolver;
 }
コード例 #2
0
 public SerializeCodeEmitter([NotNull] ParameterExpression argTagName, [NotNull] ParameterExpression argValue,
                             [NotNull] NbtCompiler.CallResolver callResolver)
 {
     if (argTagName == null)
     {
         throw new ArgumentNullException("argTagName");
     }
     if (argValue == null)
     {
         throw new ArgumentNullException("argValue");
     }
     if (callResolver == null)
     {
         throw new ArgumentNullException("callResolver");
     }
     varRootTag        = Expression.Parameter(typeof(NbtCompound), "rootTag");
     this.argTagName   = argTagName;
     this.argValue     = argValue;
     this.callResolver = callResolver;
 }