示例#1
0
 /// <summary>
 /// creates a new instance transformation table using a custom base table
 /// </summary>
 /// <param name="basetable">transformation table for base types</param>
 /// <param name="instancetypes">types to support when transforming data</param>
 public InstanceTransformationTable(ITransformationTable basetable, IEnumerable <Type> instancetypes)
 {
     this.basetable = basetable;
     foreach (Type type in instancetypes)
     {
         InstanceTransformationDescriptor descriptor = InstanceTransformationDescriptor.FromType(type);
         instancetransformers[descriptor.JavaType] = new InstanceConverter(descriptor);
     }
 }
示例#2
0
 /// <summary>
 /// creates a new instance transformer
 /// </summary>
 /// <param name="descriptor"></param>
 public InstanceConverter(InstanceTransformationDescriptor descriptor)
 {
     this.descriptor = descriptor;
 }