SerializationInfoExtensionsUpdateValue Method
Namespace: KGySoft.Serialization.BinaryAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public static bool UpdateValue(
this SerializationInfo info,
string name,
Object? value,
Type? type = null
)
<ExtensionAttribute>
Public Shared Function UpdateValue (
info As SerializationInfo,
name As String,
value As Object,
Optional type As Type = Nothing
) As Boolean
public:
[ExtensionAttribute]
static bool UpdateValue(
SerializationInfo^ info,
String^ name,
Object^ value,
Type^ type = nullptr
)
[<ExtensionAttribute>]
static member UpdateValue :
info : SerializationInfo *
name : string *
value : Object *
?type : Type
(* Defaults:
let _type = defaultArg type null
*)
-> bool
- 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: .
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.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).