Ejemplo n.º 1
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;
 }
Ejemplo n.º 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;
 }