File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -478,15 +478,9 @@ private static BinaryFormatter GetFormatter()
478
478
#if NETFX
479
479
return new BinaryFormatter ( ) ;
480
480
#else
481
- var selector = new SerializationHelper . SurrogateSelector ( ) ;
482
- selector . AddSurrogate (
483
- typeof ( CultureInfo ) ,
484
- new StreamingContext ( StreamingContextStates . All ) ,
485
- new CultureInfoSerializationSurrogate ( ) ) ;
486
- selector . ChainSelector ( new SerializationHelper . SurrogateSelector ( ) ) ;
487
481
return new BinaryFormatter
488
482
{
489
- SurrogateSelector = selector
483
+ SurrogateSelector = new SerializationHelper . SurrogateSelector ( )
490
484
} ;
491
485
#endif
492
486
}
Original file line number Diff line number Diff line change @@ -467,15 +467,9 @@ private static BinaryFormatter GetFormatter()
467
467
#if NETFX
468
468
return new BinaryFormatter ( ) ;
469
469
#else
470
- var selector = new SerializationHelper . SurrogateSelector ( ) ;
471
- selector . AddSurrogate (
472
- typeof ( CultureInfo ) ,
473
- new StreamingContext ( StreamingContextStates . All ) ,
474
- new CultureInfoSerializationSurrogate ( ) ) ;
475
- selector . ChainSelector ( new SerializationHelper . SurrogateSelector ( ) ) ;
476
470
return new BinaryFormatter
477
471
{
478
- SurrogateSelector = selector
472
+ SurrogateSelector = new SerializationHelper . SurrogateSelector ( )
479
473
} ;
480
474
#endif
481
475
}
You can’t perform that action at this time.
0 commit comments