You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes it is useful to change a boxed value without creating a new instance.
This can be done implicitly using the GetReference method boxed.GetReference() = newValue;
Would it be useful to create an explicit method for this? boxed.DangerousSetValue(newValue);
The method name may be different: DangerousSetValue, DangerousUpdateValue, DangerousChangeValue etc.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Sometimes it is useful to change a boxed value without creating a new instance.
This can be done implicitly using the GetReference method
boxed.GetReference() = newValue;
Would it be useful to create an explicit method for this?
boxed.DangerousSetValue(newValue);
The method name may be different:
DangerousSetValue
,DangerousUpdateValue
,DangerousChangeValue
etc.Beta Was this translation helpful? Give feedback.
All reactions