Beispiel #1
0
 public DynamicTravellerContext(SerializableTypeProvider typeProvider)
 {
     _typeProvider    = typeProvider;
     _travellers      = new Dictionary <Type, DynamicTraveller>();
     _assemblyBuilder = new AssemblyBuilder();
     Members          = new DynamicTravellerMembers();
 }
Beispiel #2
0
 public DynamicTraveller(Type travellerType, ConstructorInfo constructor, MethodInfo travelWriteMethod, MethodInfo travelReadMethod, DynamicTravellerMembers members)
 {
     TravellerType     = travellerType;
     Constructor       = constructor;
     TravelWriteMethod = travelWriteMethod;
     TravelReadMethod  = travelReadMethod;
     _members          = members;
     _isConstructing   = true;
 }
Beispiel #3
0
 public DynamicTraveller(Type travellerType, IVisitArgsFactory factory, ConstructorInfo constructor, MethodInfo travelWriteMethod, MethodInfo travelReadMethod, DynamicTravellerMembers members)
 {
     _travellerType = travellerType;
     _factory = factory;
     _constructor = constructor;
     _travelWriteMethod = travelWriteMethod;
     _travelReadMethod = travelReadMethod;
     _members = members;
     _isConstructing = true;
 }