dotnet / dotnet/dotnet-api-docs

Example for using IConvertible with GetValue

Open
#2,060 1 comment 0 reactions 0 assignees View on GitHub
area-System.Runtime dotnet-api/prod Pri2 untriaged
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.