SerializationInfoExtensionsUpdateValue Method

Updates or adds a value with the specified name in the SerializationInfo.

Definition

Namespace: KGySoft.Serialization.Binary
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public static bool UpdateValue(
	this SerializationInfo info,
	string name,
	Object? value,
	Type? type = null
)

Parameters

info  SerializationInfo
The SerializationInfo to be updated.
name  String
The name of the entry to be updated or added.
value  Object
The new value to be set.
type  Type  (Optional)
The type of the value to be added. This parameter is optional.
Default value: .

Return Value

Boolean
if an update occurred (the SerializationInfo already contained an entry with the specified name); if the value has just been added as a new value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SerializationInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also