384 references to GetValue
ComDisabled.Tests (1)
Control.ActiveXImplTests.cs (1)
58
Value = (string)serializationInfo.
GetValue
(nameof(Value), typeof(string));
Microsoft.AspNetCore.Components (1)
src\Http\Routing\src\Patterns\RoutePatternException.cs (1)
23
Pattern = (string)info.
GetValue
(nameof(Pattern), typeof(string))!;
Microsoft.AspNetCore.Routing (1)
Patterns\RoutePatternException.cs (1)
23
Pattern = (string)info.
GetValue
(nameof(Pattern), typeof(string))!;
Microsoft.Build (9)
AssemblyNameExtension.cs (4)
133
var publicKey = (byte[])info.
GetValue
("pk", typeof(byte[]));
134
var publicKeyToken = (byte[])info.
GetValue
("pkt", typeof(byte[]));
135
var version = (Version)info.
GetValue
("ver", typeof(Version));
170
remappedFrom = (HashSet<AssemblyNameExtension>)info.
GetValue
("remapped", typeof(HashSet<AssemblyNameExtension>));
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (2)
551
_comparer = (IEqualityComparer<string>)_siInfo.
GetValue
(ComparerName, typeof(IEqualityComparer<string>));
560
T[] array = (T[])_siInfo.
GetValue
(ElementsName, typeof(T[]));
CopyOnWriteDictionary.cs (2)
76
object v = info.
GetValue
(nameof(_backing), typeof(KeyValuePair<string, V>[]))!;
78
object comparer = info.
GetValue
(nameof(Comparer), typeof(IEqualityComparer<string>))!;
Errors\InternalLoggerException.cs (1)
117
e = (BuildEventArgs)info.
GetValue
("e", typeof(BuildEventArgs));
Microsoft.Build.Tasks.Core (6)
AssemblyNameExtension.cs (4)
133
var publicKey = (byte[])info.
GetValue
("pk", typeof(byte[]));
134
var publicKeyToken = (byte[])info.
GetValue
("pkt", typeof(byte[]));
135
var version = (Version)info.
GetValue
("ver", typeof(Version));
170
remappedFrom = (HashSet<AssemblyNameExtension>)info.
GetValue
("remapped", typeof(HashSet<AssemblyNameExtension>));
CopyOnWriteDictionary.cs (2)
76
object v = info.
GetValue
(nameof(_backing), typeof(KeyValuePair<string, V>[]))!;
78
object comparer = info.
GetValue
(nameof(Comparer), typeof(IEqualityComparer<string>))!;
Microsoft.Build.Utilities.Core (2)
CopyOnWriteDictionary.cs (2)
76
object v = info.
GetValue
(nameof(_backing), typeof(KeyValuePair<string, V>[]))!;
78
object comparer = info.
GetValue
(nameof(Comparer), typeof(IEqualityComparer<string>))!;
Microsoft.CodeAnalysis.Test.Utilities (4)
Platform\Desktop\Extensions.cs (2)
39
var array = (T[])info.
GetValue
(name, typeof(T[]));
53
var array = (byte[])info.
GetValue
(name, typeof(byte[]));
Platform\Desktop\RuntimeModuleData.cs (2)
41
var mvid = (Guid)info.
GetValue
(nameof(Id.Mvid), typeof(Guid));
65
var id = (RuntimeModuleDataId)info.
GetValue
(nameof(ModuleData.Id), typeof(RuntimeModuleDataId));
MSBuild (6)
AssemblyNameExtension.cs (4)
133
var publicKey = (byte[])info.
GetValue
("pk", typeof(byte[]));
134
var publicKeyToken = (byte[])info.
GetValue
("pkt", typeof(byte[]));
135
var version = (Version)info.
GetValue
("ver", typeof(Version));
170
remappedFrom = (HashSet<AssemblyNameExtension>)info.
GetValue
("remapped", typeof(HashSet<AssemblyNameExtension>));
CopyOnWriteDictionary.cs (2)
76
object v = info.
GetValue
(nameof(_backing), typeof(KeyValuePair<string, V>[]))!;
78
object comparer = info.
GetValue
(nameof(Comparer), typeof(IEqualityComparer<string>))!;
MSBuildTaskHost (6)
AssemblyNameExtension.cs (4)
133
var publicKey = (byte[])info.
GetValue
("pk", typeof(byte[]));
134
var publicKeyToken = (byte[])info.
GetValue
("pkt", typeof(byte[]));
135
var version = (Version)info.
GetValue
("ver", typeof(Version));
170
remappedFrom = (HashSet<AssemblyNameExtension>)info.
GetValue
("remapped", typeof(HashSet<AssemblyNameExtension>));
CopyOnWriteDictionary.cs (2)
76
object v = info.
GetValue
(nameof(_backing), typeof(KeyValuePair<string, V>[]))!;
78
object 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)
468
this.printerName = (String)(info.
GetValue
("PrinterName", typeof(System.String)));
618
this.serverName = (String)(info.
GetValue
("ServerName", typeof(String)));
801
committedAttributes = (Collection<String>)(info.
GetValue
("CommittedAttributes", committedAttributes.GetType()));
802
failedAttributes = (Collection<String>)(info.
GetValue
("FailedAttributes", failedAttributes.GetType()));
803
printObjectName = (String)(info.
GetValue
("ObjectName", printObjectName.GetType()));
1054
this.jobId = (int)(info.
GetValue
("JobId", typeof(int)));
System.Collections (3)
System\Collections\Generic\LinkedList.cs (1)
357
T[]? array = (T[]?)_siInfo.
GetValue
(ValuesName, typeof(T[]));
System\Collections\Generic\SortedSet.cs (2)
1563
comparer = (IComparer<T>)siInfo.
GetValue
(ComparerName, typeof(IComparer<T>))!;
1568
T[]? 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));
415
object[]? 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)
66
HelpUrl = (string?)info.
GetValue
("helpUrl", typeof(string));
67
HelpTopic = (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)
439
byte[] buffer = (byte[])info.
GetValue
(string.Format(CultureInfo.InvariantCulture, "DataSet.Tables_{0}", i), typeof(byte[]))!;
474
string? strSchema = (string?)info.
GetValue
(KEY_XMLSCHEMA, typeof(string));
497
string? strData = (string?)info.
GetValue
(KEY_XMLDIFFGRAM, typeof(string));
533
int lcid = (int)info.
GetValue
("DataSet.LocaleLCID", typeof(int))!;
539
_extendedProperties = (PropertyCollection?)info.
GetValue
("DataSet.ExtendedProperties", typeof(PropertyCollection));
583
ArrayList relationList = (ArrayList)info.
GetValue
("DataSet.Relations", typeof(ArrayList))!;
System\Data\DataTable.cs (18)
321
string? strSchema = (string?)info.
GetValue
(KEY_XMLSCHEMA, typeof(string));
322
string? strData = (string?)info.
GetValue
(KEY_XMLDIFFGRAM, typeof(string));
436
int lcid = (int)info.
GetValue
("DataTable.LocaleLCID", typeof(int))!;
450
_extendedProperties = (PropertyCollection?)info.
GetValue
("DataTable.ExtendedProperties", typeof(PropertyCollection));
467
string typeName = (string)info.
GetValue
(string.Format(formatProvider, "DataTable.DataColumn_{0}.DataType_AssemblyQualifiedName", i), typeof(string))!;
469
dc.XmlDataType = (string?)info.
GetValue
(string.Format(formatProvider, "DataTable.DataColumn_{0}.XmlDataType", i), typeof(string));
470
dc.SimpleType = (SimpleType?)info.
GetValue
(string.Format(formatProvider, "DataTable.DataColumn_{0}.SimpleType", i), typeof(SimpleType));
472
dc.ColumnMapping = (MappingType)info.
GetValue
(string.Format(formatProvider, "DataTable.DataColumn_{0}.ColumnMapping", i), typeof(MappingType))!;
473
dc.DateTimeMode = (DataSetDateTime)info.
GetValue
(string.Format(formatProvider, "DataTable.DataColumn_{0}.DateTimeMode", i), typeof(DataSetDateTime))!;
480
dc.DefaultValue = info.
GetValue
(string.Format(formatProvider, "DataTable.DataColumn_{0}.DefaultValue", i), typeof(object));
485
dc.AutoIncrementCurrent = info.
GetValue
(string.Format(formatProvider, "DataTable.DataColumn_{0}.AutoIncrementCurrent", i), typeof(object))!;
494
dc._extendedProperties = (PropertyCollection?)info.
GetValue
(string.Format(formatProvider, "DataTable.DataColumn_{0}.ExtendedProperties", i), typeof(PropertyCollection));
594
ArrayList constraintList = (ArrayList)info.
GetValue
(string.Format(CultureInfo.InvariantCulture, "DataTable_{0}.Constraints", serIndex), typeof(ArrayList))!;
787
BitArray rowStates = (BitArray)info.
GetValue
(string.Format(formatProvider, "DataTable_{0}.RowStates", serIndex), typeof(BitArray))!;
788
ArrayList storeList = (ArrayList)info.
GetValue
(string.Format(formatProvider, "DataTable_{0}.Records", serIndex), typeof(ArrayList))!;
789
ArrayList nullbitList = (ArrayList)info.
GetValue
(string.Format(formatProvider, "DataTable_{0}.NullBits", serIndex), typeof(ArrayList))!;
790
Hashtable rowErrors = (Hashtable)info.
GetValue
(string.Format(formatProvider, "DataTable_{0}.RowErrors", serIndex), typeof(Hashtable))!;
792
Hashtable colErrors = (Hashtable)info.
GetValue
(string.Format(formatProvider, "DataTable_{0}.ColumnErrors", serIndex), typeof(Hashtable))!;
System\Data\SQLTypes\SQLGuid.cs (1)
59
byte[]? 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)
82
var 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.
1219
siInfo.
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>))!;
744
T[]? 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));
1126
c = (IComparer?)siInfo.
GetValue
(ComparerName, typeof(IComparer));
1130
hcp = (IHashCodeProvider?)siInfo.
GetValue
(HashCodeProviderName, typeof(IHashCodeProvider));
1134
serKeys = (object[]?)siInfo.
GetValue
(KeysName, typeof(object[]));
1137
serValues = (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)
46
Signature = (byte[]?)info.
GetValue
("MMSignature", typeof(byte[]));
src\libraries\System.Private.CoreLib\src\System\Reflection\ReflectionTypeLoadException.cs (1)
33
LoaderExceptions = (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)
35
UnmatchedValue = 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)
61
object? target = info.
GetValue
("TrackedObject", typeof(object)); // Do not rename (binary serialization)
src\libraries\System.Private.CoreLib\src\System\WeakReference.T.cs (1)
45
T 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)
13
public 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)
33
queryString = (string)info.
GetValue
("QueryString", typeof(string))!;
34
startChar = (int)info.
GetValue
("StartChar", typeof(int))!;
35
endChar = (int)info.
GetValue
("EndChar", typeof(int))!;
System\Xml\Xsl\XslException.cs (6)
120
bool hasLineInfo = (bool)info.
GetValue
("hasLineInfo", typeof(bool))!;
124
string uriString = (string)info.
GetValue
("Uri", typeof(string))!;
125
int startLine = (int)info.
GetValue
("StartLine", typeof(int))!;
126
int startPos = (int)info.
GetValue
("StartPos", typeof(int))!;
127
int endLine = (int)info.
GetValue
("EndLine", typeof(int))!;
128
int 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)
58
ProtectedResources = (HostProtectionResource)info.
GetValue
(ProtectedResourcesName, typeof(HostProtectionResource));
59
DemandedResources = (HostProtectionResource)info.
GetValue
(DemandedResourcesName, typeof(HostProtectionResource));
System.Text.Json (2)
System\Text\Json\JsonException.cs (2)
94
LineNumber = (long?)info.
GetValue
("LineNumber", typeof(long?));
95
BytePositionInLine = (long?)info.
GetValue
("BytePositionInLine", typeof(long?));
System.Windows.Forms (8)
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (1)
402
items[i] = (ListViewItem)info.
GetValue
($"Item{i}", typeof(ListViewItem))!;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (5)
1214
BackColor = (Color)info.
GetValue
(nameof(BackColor), typeof(Color))!;
1222
Font = (Font)info.
GetValue
(nameof(Font), typeof(Font))!;
1226
ForeColor = (Color)info.
GetValue
(nameof(ForeColor), typeof(Color))!;
1234
ListViewGroup group = (ListViewGroup)info.
GetValue
(nameof(Group), typeof(ListViewGroup))!;
1254
ListViewSubItem 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));
1574
childNodes[i] = (TreeNode)serializationInfo.
GetValue
($"children{i}", typeof(TreeNode))!;
System.Windows.Forms.Design.Tests (202)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (202)
59
return Assert.IsType<Dictionary<string, CodeDomComponentSerializationState>>(info.
GetValue
("State", typeof(Dictionary<string, CodeDomComponentSerializationState>)));
64
Assert.Null(info.
GetValue
("State", typeof(Dictionary<string, CodeDomComponentSerializationState>)));
172
List<string> names = Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)));
175
AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
178
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
179
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
260
List<string> names = Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)));
263
AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
266
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
267
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
362
List<string> names = Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)));
365
AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
368
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
369
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
407
List<string> names = Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)));
410
AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
413
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
414
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
453
List<string> names = Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)));
456
AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
459
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
460
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
499
List<string> names = Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)));
502
AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
505
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
506
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
548
List<string> names = Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)));
551
AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
554
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
555
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
597
List<string> names = Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)));
600
AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
603
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
604
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
653
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>))));
654
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
655
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
656
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
671
Assert.NotEmpty(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>))));
672
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
673
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
674
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
724
string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
726
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
727
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
728
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
735
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
737
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
738
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
739
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
761
string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
763
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
764
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
765
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
774
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
776
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
777
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
778
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
809
string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
811
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
812
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
813
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
823
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
825
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
826
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
827
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
868
string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
870
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
871
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
872
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
881
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
883
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
884
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
885
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
932
string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
934
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
935
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
936
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
943
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
945
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
946
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
947
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
969
string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
971
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
972
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
973
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
982
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
984
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
985
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
986
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1017
string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1019
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1020
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1021
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1031
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1033
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1034
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1035
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1076
string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1078
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1079
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1080
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1089
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1091
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1092
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1093
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1142
string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1144
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1145
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1146
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1153
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1155
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1156
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1157
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1164
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1166
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1167
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1168
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1192
string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1194
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1195
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1196
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1205
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1207
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1208
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1209
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1218
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1220
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1221
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1222
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1255
string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1257
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1258
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1259
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1269
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1271
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1272
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1273
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1283
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1285
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1286
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1287
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1330
string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1332
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1333
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1334
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1343
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1345
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1346
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1347
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1356
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1358
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1359
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1360
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1421
string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1423
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1424
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1425
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1432
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1434
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1435
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1436
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1443
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1445
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1446
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1447
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1471
string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1473
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1474
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1475
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1484
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1486
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1487
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1488
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1497
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1499
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1500
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1501
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1534
string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1536
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1537
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1538
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1548
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1550
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1551
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1552
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1562
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1564
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1565
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1566
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1609
string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1611
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1612
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1613
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1622
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1624
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1625
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1626
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
1635
nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.
GetValue
("Names", typeof(List<string>)))));
1637
Assert.Null(info.
GetValue
("Assemblies", typeof(AssemblyName[])));
1638
Assert.Null(info.
GetValue
("Resources", typeof(Hashtable)));
1639
Assert.Empty(Assert.IsType<List<string>>(info.
GetValue
("Shim", typeof(List<string>))));
System.Windows.Forms.Tests (8)
System\Windows\Forms\Control.ActiveXImplTests.cs (1)
97
Value = (string?)serializationInfo.
GetValue
(nameof(Value), typeof(string));
System\Windows\Forms\ListViewGroupTests.cs (7)
1375
Assert.Equal(HorizontalAlignment.Left, info.
GetValue
("HeaderAlignment", typeof(HorizontalAlignment)));
1377
Assert.Null(info.
GetValue
("Tag", typeof(object)));
1393
Assert.Equal(HorizontalAlignment.Left, info.
GetValue
("HeaderAlignment", typeof(HorizontalAlignment)));
1395
Assert.Null(info.
GetValue
("Tag", typeof(object)));
1411
Assert.Equal(HorizontalAlignment.Left, info.
GetValue
("HeaderAlignment", typeof(HorizontalAlignment)));
1413
Assert.Null(info.
GetValue
("Tag", typeof(object)));
1415
Assert.Equal("text", ((ListViewItem)info.
GetValue
("Item0", typeof(ListViewItem))).Text);
System.Xaml (2)
System\Xaml\XamlException.cs (2)
162
DuplicateMember = (XamlMember)info.
GetValue
("DuplicateMember", typeof(XamlMember));
163
ParentType = (XamlType)info.
GetValue
("ParentType", typeof(XamlType));
WindowsBase.Tests (2)
System\Security\RightsManagement\RightsManagementExceptionTests.cs (2)
244
Assert.Equal(0, info.
GetValue
("FailureCode", typeof(int)));
260
Assert.Equal(-2147183860, info.
GetValue
("FailureCode", typeof(int)));