SerializationInfoExtensionsReplaceValue Method
Namespace: KGySoft.Serialization.BinaryAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public static bool ReplaceValue(
this SerializationInfo info,
string oldName,
string newName,
Object? value,
Type? type = null
)
<ExtensionAttribute>
Public Shared Function ReplaceValue (
info As SerializationInfo,
oldName As String,
newName As String,
value As Object,
Optional type As Type = Nothing
) As Boolean
public:
[ExtensionAttribute]
static bool ReplaceValue(
SerializationInfo^ info,
String^ oldName,
String^ newName,
Object^ value,
Type^ type = nullptr
)
[<ExtensionAttribute>]
static member ReplaceValue :
info : SerializationInfo *
oldName : string *
newName : string *
value : Object *
?type : Type
(* Defaults:
let _type = defaultArg type null
*)
-> bool
- info SerializationInfo
- The SerializationInfo to be updated.
- oldName String
- The name of the entry to be removed.
- newName String
- The name of the entry to be 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 entry with the specified old name existed in the
SerializationInfo
and the replacement has been performed; otherwise,
.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).