dotnet / dotnet/dotnet-api-docs
Example for using IConvertible with GetValue
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
@ngzero commented on [Thu Mar 21 2019](https://github.com/dotnet/dotnet-api-docs.de-de/issues/19)
GetValue("x", typeof(List<string>));
System.InvalidCastException: 'Object must implement IConvertible.'
Es wäre schön hier ein Beispiel zu bekommen, wie und wo IConverible eingebunden werden muss.
---
#### Dokumentdetails
⚠ *Bearbeiten Sie diesen Abschnitt nicht. Er ist für die Verknüpfung von docs.microsoft.com zum GitHub-Artikel erforderlich.*
* ID: 18e5d41c-df95-6b00-34ae-9b6771d2013c
* Version Independent ID: 3e45cd7b-7d60-3b64-152b-70ff4af85c61
* Content: [SerializationInfo.GetValue(String, Type) Method (System.Runtime.Serialization)](https://docs.microsoft.com/de-de/dotnet/api/system.runtime.serialization.serializationinfo.getvalue?view=netframework-4.7.2)
* Content Source: [xml/System.Runtime.Serialization/SerializationInfo.xml](https://github.com/dotnet/dotnet-api-docs.de-de/blob/live/xml/System.Runtime.Serialization/SerializationInfo.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**
Contributor guide
Assessment
This issue has not been assessed yet.