384 references to GetValue
ComDisabled.Tests (1)
Control.ActiveXImplTests.cs (1)
58Value = (string)serializationInfo.GetValue(nameof(Value), typeof(string));
Microsoft.AspNetCore.Components (1)
src\Http\Routing\src\Patterns\RoutePatternException.cs (1)
23Pattern = (string)info.GetValue(nameof(Pattern), typeof(string))!;
Microsoft.AspNetCore.Routing (1)
Patterns\RoutePatternException.cs (1)
23Pattern = (string)info.GetValue(nameof(Pattern), typeof(string))!;
Microsoft.Build (9)
AssemblyNameExtension.cs (4)
133var publicKey = (byte[])info.GetValue("pk", typeof(byte[])); 134var publicKeyToken = (byte[])info.GetValue("pkt", typeof(byte[])); 135var version = (Version)info.GetValue("ver", typeof(Version)); 170remappedFrom = (HashSet<AssemblyNameExtension>)info.GetValue("remapped", typeof(HashSet<AssemblyNameExtension>));
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (2)
551_comparer = (IEqualityComparer<string>)_siInfo.GetValue(ComparerName, typeof(IEqualityComparer<string>)); 560T[] array = (T[])_siInfo.GetValue(ElementsName, typeof(T[]));
CopyOnWriteDictionary.cs (2)
76object v = info.GetValue(nameof(_backing), typeof(KeyValuePair<string, V>[]))!; 78object comparer = info.GetValue(nameof(Comparer), typeof(IEqualityComparer<string>))!;
Errors\InternalLoggerException.cs (1)
117e = (BuildEventArgs)info.GetValue("e", typeof(BuildEventArgs));
Microsoft.Build.Tasks.Core (6)
AssemblyNameExtension.cs (4)
133var publicKey = (byte[])info.GetValue("pk", typeof(byte[])); 134var publicKeyToken = (byte[])info.GetValue("pkt", typeof(byte[])); 135var version = (Version)info.GetValue("ver", typeof(Version)); 170remappedFrom = (HashSet<AssemblyNameExtension>)info.GetValue("remapped", typeof(HashSet<AssemblyNameExtension>));
CopyOnWriteDictionary.cs (2)
76object v = info.GetValue(nameof(_backing), typeof(KeyValuePair<string, V>[]))!; 78object comparer = info.GetValue(nameof(Comparer), typeof(IEqualityComparer<string>))!;
Microsoft.Build.Utilities.Core (2)
CopyOnWriteDictionary.cs (2)
76object v = info.GetValue(nameof(_backing), typeof(KeyValuePair<string, V>[]))!; 78object comparer = info.GetValue(nameof(Comparer), typeof(IEqualityComparer<string>))!;
Microsoft.CodeAnalysis.Test.Utilities (4)
Platform\Desktop\Extensions.cs (2)
39var array = (T[])info.GetValue(name, typeof(T[])); 53var array = (byte[])info.GetValue(name, typeof(byte[]));
Platform\Desktop\RuntimeModuleData.cs (2)
41var mvid = (Guid)info.GetValue(nameof(Id.Mvid), typeof(Guid)); 65var id = (RuntimeModuleDataId)info.GetValue(nameof(ModuleData.Id), typeof(RuntimeModuleDataId));
MSBuild (6)
AssemblyNameExtension.cs (4)
133var publicKey = (byte[])info.GetValue("pk", typeof(byte[])); 134var publicKeyToken = (byte[])info.GetValue("pkt", typeof(byte[])); 135var version = (Version)info.GetValue("ver", typeof(Version)); 170remappedFrom = (HashSet<AssemblyNameExtension>)info.GetValue("remapped", typeof(HashSet<AssemblyNameExtension>));
CopyOnWriteDictionary.cs (2)
76object v = info.GetValue(nameof(_backing), typeof(KeyValuePair<string, V>[]))!; 78object comparer = info.GetValue(nameof(Comparer), typeof(IEqualityComparer<string>))!;
MSBuildTaskHost (6)
AssemblyNameExtension.cs (4)
133var publicKey = (byte[])info.GetValue("pk", typeof(byte[])); 134var publicKeyToken = (byte[])info.GetValue("pkt", typeof(byte[])); 135var version = (Version)info.GetValue("ver", typeof(Version)); 170remappedFrom = (HashSet<AssemblyNameExtension>)info.GetValue("remapped", typeof(HashSet<AssemblyNameExtension>));
CopyOnWriteDictionary.cs (2)
76object v = info.GetValue(nameof(_backing), typeof(KeyValuePair<string, V>[]))!; 78object comparer = info.GetValue(nameof(Comparer), typeof(IEqualityComparer<string>))!;
PresentationFramework (11)
MS\Internal\AppModel\Journaling.cs (4)
264_pageFunctionId = (Guid)info.GetValue("_pageFunctionId", typeof(Guid)); 265_parentPageFunctionId = (Guid)info.GetValue("_parentPageFunctionId", typeof(Guid)); 500_returnEventSaver = (ReturnEventSaver)info.GetValue("_returnEventSaver", typeof(ReturnEventSaver)); 744_markupUri = (Uri)info.GetValue("_markupUri", typeof(Uri));
System\Windows\Navigation\Journal.cs (1)
60_journalEntryList = (List<JournalEntry>)info.GetValue("_journalEntryList", typeof(List<JournalEntry>));
System\Windows\Navigation\JournalEntry.cs (5)
96_source = (Uri)info.GetValue("_source", typeof(Uri)); 97_entryType = (JournalEntryType)info.GetValue("_entryType", typeof(JournalEntryType)); 98_jeGroupState = (JournalEntryGroupState)info.GetValue("_jeGroupState", typeof(JournalEntryGroupState)); 99_customContentState = (CustomContentState)info.GetValue("_customContentState", typeof(CustomContentState)); 100_rootViewerState = (CustomJournalStateInternal)info.GetValue("_rootViewerState", typeof(CustomJournalStateInternal));
System\Windows\ResourceReferenceKeyNotFoundException.cs (1)
41_resourceKey = info.GetValue("Key", typeof(object));
ReachFramework (6)
PrintSystemExceptions\PrintSystemException.cs (6)
468this.printerName = (String)(info.GetValue("PrinterName", typeof(System.String))); 618this.serverName = (String)(info.GetValue("ServerName", typeof(String))); 801committedAttributes = (Collection<String>)(info.GetValue("CommittedAttributes", committedAttributes.GetType())); 802failedAttributes = (Collection<String>)(info.GetValue("FailedAttributes", failedAttributes.GetType())); 803printObjectName = (String)(info.GetValue("ObjectName", printObjectName.GetType())); 1054this.jobId = (int)(info.GetValue("JobId", typeof(int)));
System.Collections (3)
System\Collections\Generic\LinkedList.cs (1)
357T[]? array = (T[]?)_siInfo.GetValue(ValuesName, typeof(T[]));
System\Collections\Generic\SortedSet.cs (2)
1563comparer = (IComparer<T>)siInfo.GetValue(ComparerName, typeof(IComparer<T>))!; 1568T[]? items = (T[]?)siInfo.GetValue(ItemsName, typeof(T[]));
System.Collections.Specialized (2)
System\Collections\Specialized\OrderedDictionary.cs (2)
411_comparer = (IEqualityComparer?)_siInfo.GetValue(KeyComparerName, typeof(IEqualityComparer)); 415object[]? serArray = (object[]?)_siInfo.GetValue(ArrayListName, typeof(object[]));
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\Primitives\ComposablePartException.cs (1)
56_element = (ICompositionElement?)info.GetValue("Element", typeof(ICompositionElement));
System.ComponentModel.TypeConverter (2)
System\ComponentModel\WarningException.cs (2)
66HelpUrl = (string?)info.GetValue("helpUrl", typeof(string)); 67HelpTopic = (string?)info.GetValue("helpTopic", typeof(string));
System.Configuration.ConfigurationManager (1)
System\Configuration\ConfigurationErrorsException.cs (1)
137_errors[i] = (ConfigurationException)info.GetValue(numPrefix + SerializationParamErrorData, currentExceptionType);
System.Data.Common (25)
System\Data\DataSet.cs (6)
439byte[] buffer = (byte[])info.GetValue(string.Format(CultureInfo.InvariantCulture, "DataSet.Tables_{0}", i), typeof(byte[]))!; 474string? strSchema = (string?)info.GetValue(KEY_XMLSCHEMA, typeof(string)); 497string? strData = (string?)info.GetValue(KEY_XMLDIFFGRAM, typeof(string)); 533int lcid = (int)info.GetValue("DataSet.LocaleLCID", typeof(int))!; 539_extendedProperties = (PropertyCollection?)info.GetValue("DataSet.ExtendedProperties", typeof(PropertyCollection)); 583ArrayList relationList = (ArrayList)info.GetValue("DataSet.Relations", typeof(ArrayList))!;
System\Data\DataTable.cs (18)
321string? strSchema = (string?)info.GetValue(KEY_XMLSCHEMA, typeof(string)); 322string? strData = (string?)info.GetValue(KEY_XMLDIFFGRAM, typeof(string)); 436int lcid = (int)info.GetValue("DataTable.LocaleLCID", typeof(int))!; 450_extendedProperties = (PropertyCollection?)info.GetValue("DataTable.ExtendedProperties", typeof(PropertyCollection)); 467string typeName = (string)info.GetValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.DataType_AssemblyQualifiedName", i), typeof(string))!; 469dc.XmlDataType = (string?)info.GetValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.XmlDataType", i), typeof(string)); 470dc.SimpleType = (SimpleType?)info.GetValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.SimpleType", i), typeof(SimpleType)); 472dc.ColumnMapping = (MappingType)info.GetValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.ColumnMapping", i), typeof(MappingType))!; 473dc.DateTimeMode = (DataSetDateTime)info.GetValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.DateTimeMode", i), typeof(DataSetDateTime))!; 480dc.DefaultValue = info.GetValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.DefaultValue", i), typeof(object)); 485dc.AutoIncrementCurrent = info.GetValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.AutoIncrementCurrent", i), typeof(object))!; 494dc._extendedProperties = (PropertyCollection?)info.GetValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.ExtendedProperties", i), typeof(PropertyCollection)); 594ArrayList constraintList = (ArrayList)info.GetValue(string.Format(CultureInfo.InvariantCulture, "DataTable_{0}.Constraints", serIndex), typeof(ArrayList))!; 787BitArray rowStates = (BitArray)info.GetValue(string.Format(formatProvider, "DataTable_{0}.RowStates", serIndex), typeof(BitArray))!; 788ArrayList storeList = (ArrayList)info.GetValue(string.Format(formatProvider, "DataTable_{0}.Records", serIndex), typeof(ArrayList))!; 789ArrayList nullbitList = (ArrayList)info.GetValue(string.Format(formatProvider, "DataTable_{0}.NullBits", serIndex), typeof(ArrayList))!; 790Hashtable rowErrors = (Hashtable)info.GetValue(string.Format(formatProvider, "DataTable_{0}.RowErrors", serIndex), typeof(Hashtable))!; 792Hashtable colErrors = (Hashtable)info.GetValue(string.Format(formatProvider, "DataTable_{0}.ColumnErrors", serIndex), typeof(Hashtable))!;
System\Data\SQLTypes\SQLGuid.cs (1)
59byte[]? value = (byte[]?)info.GetValue("m_value", typeof(byte[]));
System.Data.Odbc (1)
System\Data\Odbc\OdbcException.cs (1)
44_odbcErrors = (OdbcErrorCollection)si.GetValue("odbcErrors", typeof(OdbcErrorCollection))!;
System.Net.Mail (1)
System\Net\Mail\SmtpFailedRecipientsException.cs (1)
37_innerExceptions = (SmtpFailedRecipientException[])info.GetValue("innerExceptions", typeof(SmtpFailedRecipientException[]))!;
System.Private.CoreLib (43)
src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (1)
193_innerExceptions = info.GetValue("InnerExceptions", typeof(Exception[])) as Exception[] ?? // Do not rename (binary serialization);
src\libraries\System.Private.CoreLib\src\System\ArgumentOutOfRangeException.cs (1)
60_actualValue = info.GetValue("ActualValue", typeof(object));
src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (1)
82var array = (int[]?)info.GetValue("m_array", typeof(int[]));
src\libraries\System.Private.CoreLib\src\System\Collections\Comparer.cs (1)
34_compareInfo = (CompareInfo)info.GetValue("CompareInfo", typeof(CompareInfo))!;
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (2)
1212_comparer = (IEqualityComparer<TKey>)siInfo.GetValue(ComparerName, typeof(IEqualityComparer<TKey>))!; // When serialized if comparer is null, we use the default. 1219siInfo.GetValue(KeyValuePairsName, typeof(KeyValuePair<TKey, TValue>[]));
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (2)
732_comparer = (IEqualityComparer<T>)siInfo.GetValue(ComparerName, typeof(IEqualityComparer<T>))!; 744T[]? array = (T[]?)siInfo.GetValue(ElementsName, typeof(T[]));
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (5)
1123_keycomparer = (IEqualityComparer?)siInfo.GetValue(KeyComparerName, typeof(IEqualityComparer)); 1126c = (IComparer?)siInfo.GetValue(ComparerName, typeof(IComparer)); 1130hcp = (IHashCodeProvider?)siInfo.GetValue(HashCodeProviderName, typeof(IHashCodeProvider)); 1134serKeys = (object[]?)siInfo.GetValue(KeysName, typeof(object[])); 1137serValues = (object?[]?)siInfo.GetValue(ValuesName, typeof(object[]));
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (2)
638_dateTime = (DateTime)info.GetValue("DateTime", typeof(DateTime))!; // Do not rename (binary serialization) 639_offsetMinutes = (short)info.GetValue("OffsetMinutes", typeof(short))!; // Do not rename (binary serialization)
src\libraries\System.Private.CoreLib\src\System\Exception.cs (1)
51_innerException = (Exception?)(info.GetValue("InnerException", typeof(Exception))); // Do not rename (binary serialization)
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureNotFoundException.cs (2)
66_invalidCultureId = (int?)info.GetValue("InvalidCultureId", typeof(int?)); 67_invalidCultureName = (string?)info.GetValue("InvalidCultureName", typeof(string));
src\libraries\System.Private.CoreLib\src\System\MissingMemberException.cs (1)
46Signature = (byte[]?)info.GetValue("MMSignature", typeof(byte[]));
src\libraries\System.Private.CoreLib\src\System\Reflection\ReflectionTypeLoadException.cs (1)
33LoaderExceptions = (Exception?[]?)info.GetValue("Exceptions", typeof(Exception[])) ?? Array.Empty<Exception?>();
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeWrappedException.cs (1)
31_wrappedException = info.GetValue("WrappedException", typeof(object))!;
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\SwitchExpressionException.cs (1)
35UnmatchedValue = info.GetValue(nameof(UnmatchedValue), typeof(object));
src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (1)
242_compareInfo = (CompareInfo)info.GetValue("_compareInfo", typeof(CompareInfo))!;
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.AdjustmentRule.cs (5)
280_dateStart = (DateTime)info.GetValue("DateStart", typeof(DateTime))!; // Do not rename (binary serialization) 281_dateEnd = (DateTime)info.GetValue("DateEnd", typeof(DateTime))!; // Do not rename (binary serialization) 282_daylightDelta = (TimeSpan)info.GetValue("DaylightDelta", typeof(TimeSpan))!; // Do not rename (binary serialization) 283_daylightTransitionStart = (TransitionTime)info.GetValue("DaylightTransitionStart", typeof(TransitionTime))!; // Do not rename (binary serialization) 284_daylightTransitionEnd = (TransitionTime)info.GetValue("DaylightTransitionEnd", typeof(TransitionTime))!; // Do not rename (binary serialization)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (7)
1161_id = (string)info.GetValue("Id", typeof(string))!; // Do not rename (binary serialization) 1162_displayName = (string?)info.GetValue("DisplayName", typeof(string)); // Do not rename (binary serialization) 1163_standardDisplayName = (string?)info.GetValue("StandardName", typeof(string)); // Do not rename (binary serialization) 1164_daylightDisplayName = (string?)info.GetValue("DaylightName", typeof(string)); // Do not rename (binary serialization) 1165_baseUtcOffset = (TimeSpan)info.GetValue("BaseUtcOffset", typeof(TimeSpan))!; // Do not rename (binary serialization) 1166_adjustmentRules = (AdjustmentRule[]?)info.GetValue("AdjustmentRules", typeof(AdjustmentRule[])); // Do not rename (binary serialization) 1167_supportsDaylightSavingTime = (bool)info.GetValue("SupportsDaylightSavingTime", typeof(bool))!; // Do not rename (binary serialization)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.TransitionTime.cs (6)
145_timeOfDay = (DateTime)info.GetValue("TimeOfDay", typeof(DateTime))!; // Do not rename (binary serialization) 146_month = (byte)info.GetValue("Month", typeof(byte))!; // Do not rename (binary serialization) 147_week = (byte)info.GetValue("Week", typeof(byte))!; // Do not rename (binary serialization) 148_day = (byte)info.GetValue("Day", typeof(byte))!; // Do not rename (binary serialization) 149_dayOfWeek = (DayOfWeek)info.GetValue("DayOfWeek", typeof(DayOfWeek))!; // Do not rename (binary serialization) 150_isFixedDateRule = (bool)info.GetValue("IsFixedDateRule", typeof(bool))!; // Do not rename (binary serialization)
src\libraries\System.Private.CoreLib\src\System\WeakReference.cs (1)
61object? target = info.GetValue("TrackedObject", typeof(object)); // Do not rename (binary serialization)
src\libraries\System.Private.CoreLib\src\System\WeakReference.T.cs (1)
45T target = (T)info.GetValue("TrackedObject", typeof(T))!; // Do not rename (binary serialization)
System.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\Support\SerializationExtensions.cs (1)
13public static T? GetValue<T>(this SerializationInfo info, string name) => (T?)info.GetValue(name, typeof(T));
System.Private.Xml (25)
System\Xml\Schema\XmlSchemaException.cs (5)
35_res = (string?)info.GetValue("res", typeof(string)); 36_args = (string[]?)info.GetValue("args", typeof(string[])); 37_sourceUri = (string?)info.GetValue("sourceUri", typeof(string)); 38_lineNumber = (int)info.GetValue("lineNumber", typeof(int))!; 39_linePosition = (int)info.GetValue("linePosition", typeof(int))!;
System\Xml\XmlException.cs (4)
38_res = (string)info.GetValue("res", typeof(string))!; 39_args = (string?[])info.GetValue("args", typeof(string[]))!; 40_lineNumber = (int)info.GetValue("lineNumber", typeof(int))!; 41_linePosition = (int)info.GetValue("linePosition", typeof(int))!;
System\Xml\XPath\XPathException.cs (2)
30_res = (string)info.GetValue("res", typeof(string))!; 31_args = (string[]?)info.GetValue("args", typeof(string[]));
System\Xml\Xsl\XPath\XPathCompileException.cs (3)
33queryString = (string)info.GetValue("QueryString", typeof(string))!; 34startChar = (int)info.GetValue("StartChar", typeof(int))!; 35endChar = (int)info.GetValue("EndChar", typeof(int))!;
System\Xml\Xsl\XslException.cs (6)
120bool hasLineInfo = (bool)info.GetValue("hasLineInfo", typeof(bool))!; 124string uriString = (string)info.GetValue("Uri", typeof(string))!; 125int startLine = (int)info.GetValue("StartLine", typeof(int))!; 126int startPos = (int)info.GetValue("StartPos", typeof(int))!; 127int endLine = (int)info.GetValue("EndLine", typeof(int))!; 128int endPos = (int)info.GetValue("EndPos", typeof(int))!;
System\Xml\Xslt\XsltException.cs (5)
31_res = (string)info.GetValue("res", typeof(string))!; 32_args = (string[]?)info.GetValue("args", typeof(string[])); 33_sourceUri = (string?)info.GetValue("sourceUri", typeof(string)); 34_lineNumber = (int)info.GetValue("lineNumber", typeof(int))!; 35_linePosition = (int)info.GetValue("linePosition", typeof(int))!;
System.Security.Permissions (2)
System\Security\HostProtectionException.cs (2)
58ProtectedResources = (HostProtectionResource)info.GetValue(ProtectedResourcesName, typeof(HostProtectionResource)); 59DemandedResources = (HostProtectionResource)info.GetValue(DemandedResourcesName, typeof(HostProtectionResource));
System.Text.Json (2)
System\Text\Json\JsonException.cs (2)
94LineNumber = (long?)info.GetValue("LineNumber", typeof(long?)); 95BytePositionInLine = (long?)info.GetValue("BytePositionInLine", typeof(long?));
System.Windows.Forms (8)
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (1)
402items[i] = (ListViewItem)info.GetValue($"Item{i}", typeof(ListViewItem))!;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (5)
1214BackColor = (Color)info.GetValue(nameof(BackColor), typeof(Color))!; 1222Font = (Font)info.GetValue(nameof(Font), typeof(Font))!; 1226ForeColor = (Color)info.GetValue(nameof(ForeColor), typeof(Color))!; 1234ListViewGroup group = (ListViewGroup)info.GetValue(nameof(Group), typeof(ListViewGroup))!; 1254ListViewSubItem newItem = (ListViewSubItem)info.GetValue($"SubItem{i}", typeof(ListViewSubItem))!;
System\Windows\Forms\Controls\TreeView\TreeNode.cs (2)
1497_propBag = (OwnerDrawPropertyBag?)serializationInfo.GetValue(entry.Name, typeof(OwnerDrawPropertyBag)); 1574childNodes[i] = (TreeNode)serializationInfo.GetValue($"children{i}", typeof(TreeNode))!;
System.Windows.Forms.Design.Tests (202)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (202)
59return Assert.IsType<Dictionary<string, CodeDomComponentSerializationState>>(info.GetValue("State", typeof(Dictionary<string, CodeDomComponentSerializationState>))); 64Assert.Null(info.GetValue("State", typeof(Dictionary<string, CodeDomComponentSerializationState>))); 172List<string> names = Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))); 175AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.GetValue("Assemblies", typeof(AssemblyName[]))); 178Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 179Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 260List<string> names = Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))); 263AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.GetValue("Assemblies", typeof(AssemblyName[]))); 266Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 267Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 362List<string> names = Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))); 365AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.GetValue("Assemblies", typeof(AssemblyName[]))); 368Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 369Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 407List<string> names = Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))); 410AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.GetValue("Assemblies", typeof(AssemblyName[]))); 413Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 414Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 453List<string> names = Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))); 456AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.GetValue("Assemblies", typeof(AssemblyName[]))); 459Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 460Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 499List<string> names = Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))); 502AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.GetValue("Assemblies", typeof(AssemblyName[]))); 505Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 506Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 548List<string> names = Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))); 551AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.GetValue("Assemblies", typeof(AssemblyName[]))); 554Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 555Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 597List<string> names = Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))); 600AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.GetValue("Assemblies", typeof(AssemblyName[]))); 603Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 604Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 653Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>)))); 654Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 655Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 656Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 671Assert.NotEmpty(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>)))); 672Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 673Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 674Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 724string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 726Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 727Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 728Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 735nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 737Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 738Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 739Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 761string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 763Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 764Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 765Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 774nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 776Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 777Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 778Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 809string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 811Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 812Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 813Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 823nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 825Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 826Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 827Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 868string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 870Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 871Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 872Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 881nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 883Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 884Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 885Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 932string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 934Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 935Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 936Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 943nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 945Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 946Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 947Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 969string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 971Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 972Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 973Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 982nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 984Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 985Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 986Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1017string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1019Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1020Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1021Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1031nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1033Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1034Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1035Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1076string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1078Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1079Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1080Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1089nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1091Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1092Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1093Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1142string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1144Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1145Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1146Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1153nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1155Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1156Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1157Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1164nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1166Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1167Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1168Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1192string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1194Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1195Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1196Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1205nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1207Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1208Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1209Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1218nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1220Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1221Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1222Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1255string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1257Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1258Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1259Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1269nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1271Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1272Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1273Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1283nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1285Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1286Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1287Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1330string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1332Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1333Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1334Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1343nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1345Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1346Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1347Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1356nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1358Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1359Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1360Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1421string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1423Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1424Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1425Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1432nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1434Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1435Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1436Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1443nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1445Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1446Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1447Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1471string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1473Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1474Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1475Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1484nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1486Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1487Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1488Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1497nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1499Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1500Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1501Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1534string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1536Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1537Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1538Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1548nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1550Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1551Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1552Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1562nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1564Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1565Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1566Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1609string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1611Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1612Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1613Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1622nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1624Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1625Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1626Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1635nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1637Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1638Assert.Null(info.GetValue("Resources", typeof(Hashtable))); 1639Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>))));
System.Windows.Forms.Tests (8)
System\Windows\Forms\Control.ActiveXImplTests.cs (1)
97Value = (string?)serializationInfo.GetValue(nameof(Value), typeof(string));
System\Windows\Forms\ListViewGroupTests.cs (7)
1375Assert.Equal(HorizontalAlignment.Left, info.GetValue("HeaderAlignment", typeof(HorizontalAlignment))); 1377Assert.Null(info.GetValue("Tag", typeof(object))); 1393Assert.Equal(HorizontalAlignment.Left, info.GetValue("HeaderAlignment", typeof(HorizontalAlignment))); 1395Assert.Null(info.GetValue("Tag", typeof(object))); 1411Assert.Equal(HorizontalAlignment.Left, info.GetValue("HeaderAlignment", typeof(HorizontalAlignment))); 1413Assert.Null(info.GetValue("Tag", typeof(object))); 1415Assert.Equal("text", ((ListViewItem)info.GetValue("Item0", typeof(ListViewItem))).Text);
System.Xaml (2)
System\Xaml\XamlException.cs (2)
162DuplicateMember = (XamlMember)info.GetValue("DuplicateMember", typeof(XamlMember)); 163ParentType = (XamlType)info.GetValue("ParentType", typeof(XamlType));
WindowsBase.Tests (2)
System\Security\RightsManagement\RightsManagementExceptionTests.cs (2)
244Assert.Equal(0, info.GetValue("FailureCode", typeof(int))); 260Assert.Equal(-2147183860, info.GetValue("FailureCode", typeof(int)));