CSL_Traffic.LaneSerializationBinder.BindToType C# (CSharp) Method

BindToType() public method

public BindToType ( string assemblyName, string typeName ) : Type
assemblyName string
typeName string
return System.Type
        public override Type BindToType(string assemblyName, string typeName)
        {
            if (typeName.Contains("Lane"))
                return typeof(Lane);
            if (typeName.Contains("VehicleType"))
                return typeof(ExtendedVehicleType);

            throw new SerializationException("Error on BindToType with type '" + typeName + "' and assembly '" + assemblyName + "'.");
        }
    }
LaneSerializationBinder