@@ -408,16 +408,23 @@ internal void AddValueInternal(String name, Object value, Type type)
408
408
/*=================================UpdateValue==================================
409
409
**Action: Finds the value if it exists in the current data. If it does, we replace
410
410
** the values, if not, we append it to the end. This is useful to the
411
- ** ObjectManager when it's performing fixups, but shouldn't be used by
412
- ** clients. Exposing out this functionality would allow children to overwrite
413
- ** their parent's values.
411
+ ** ObjectManager when it's performing fixups.
414
412
**Returns: void
415
413
**Arguments: name -- the name of the data to be updated.
416
414
** value -- the new value.
417
415
** type -- the type of the data being added.
418
- **Exceptions: None. All error checking is done with asserts.
416
+ **Exceptions: None. All error checking is done with asserts. Although public in coreclr,
417
+ ** it's not exposed in a contract and is only meant to be used by corefx.
419
418
==============================================================================*/
420
- internal void UpdateValue ( String name , Object value , Type type )
419
+ #if FEATURE_CORECLR
420
+ // This should not be used by clients: exposing out this functionality would allow children
421
+ // to overwrite their parent's values. It is public in order to give corefx access to it for
422
+ // its ObjectManager implementation, but it should not be exposed out of a contract.
423
+ public
424
+ #else
425
+ internal
426
+ #endif
427
+ void UpdateValue ( String name , Object value , Type type )
421
428
{
422
429
Contract . Assert ( null != name , "[SerializationInfo.UpdateValue]name!=null" ) ;
423
430
Contract . Assert ( null != value , "[SerializationInfo.UpdateValue]value!=null" ) ;
0 commit comments