SerializationInfoExtensionsTryGetValueT(SerializationInfo, String, T) Method
Namespace: KGySoft.Serialization.BinaryAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public static bool TryGetValue<T>(
this SerializationInfo info,
string name,
out T value
)
<ExtensionAttribute>
Public Shared Function TryGetValue(Of T) (
info As SerializationInfo,
name As String,
<OutAttribute> ByRef value As T
) As Boolean
public:
[ExtensionAttribute]
generic<typename T>
static bool TryGetValue(
SerializationInfo^ info,
String^ name,
[OutAttribute] T% value
)
[<ExtensionAttribute>]
static member TryGetValue :
info : SerializationInfo *
name : string *
value : 'T byref -> bool
- info SerializationInfo
- The SerializationInfo to retrieve the value from.
- name String
- The name of the value to be retrieved.
- value T
- When this method returns, the value associated with the specified name, if the name is found
and has the type of T; otherwise, . This parameter is passed uninitialized.
- T
- The type of the element to get.
Boolean, if
SerializationInfo contains an element with the specified name
and type of
T; 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).