164 references to GetValue
Microsoft.AspNetCore.Components (1)
src\aspnetcore\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 (3)
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (2)
548_comparer = (IEqualityComparer<string>)_siInfo.GetValue(ComparerName, typeof(IEqualityComparer<string>)); 557T[] array = (T[])_siInfo.GetValue(ElementsName, typeof(T[]));
Errors\InternalLoggerException.cs (1)
118e = (BuildEventArgs)info.GetValue("e", typeof(BuildEventArgs));
Microsoft.Build.Framework (7)
Collections\CopyOnWriteDictionary.cs (2)
73object v = info.GetValue(nameof(_backing), typeof(KeyValuePair<string, V>[]))!; 75object comparer = info.GetValue(nameof(Comparer), typeof(IEqualityComparer<string>))!;
SerializableMetadata.cs (1)
35object entries = info.GetValue("value", typeof(KeyValuePair<string, string>[]))!;
Utilities\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>));
Microsoft.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));
Mono.Cecil (1)
Mono.Security.Cryptography\CryptoService.cs (1)
201 key = (byte []) info.GetValue ("_keyPairArray", typeof (byte []));
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)
1560comparer = (IComparer<T>)siInfo.GetValue(ComparerName, typeof(IComparer<T>))!; 1565T[]? 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.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\exceptions.cs (1)
161_serverName = (string)info.GetValue("serverName", typeof(string));
System.Drawing.Common (5)
System\Drawing\Font.cs (2)
147FontStyle style = (FontStyle)info.GetValue("Style", typeof(FontStyle))!; // Do not rename (binary serialization) 148GraphicsUnit unit = (GraphicsUnit)info.GetValue("Unit", typeof(GraphicsUnit))!; // Do not rename (binary serialization)
System\Drawing\Icon.cs (2)
127_iconData = (byte[])info.GetValue("IconData", typeof(byte[]))!; 128_iconSize = (Size)info.GetValue("IconSize", typeof(Size))!;
System\Drawing\Image.cs (1)
58byte[] dat = (byte[])info.GetValue("Data", typeof(byte[]))!; // Do not rename (binary serialization)
System.Management (1)
System\Management\ManagementException.cs (1)
681errorCode = (ManagementStatus)info.GetValue("errorCode", typeof(ManagementStatus));
System.Net.Mail (1)
System\Net\Mail\SmtpFailedRecipientsException.cs (1)
37_innerExceptions = (SmtpFailedRecipientException[])info.GetValue("innerExceptions", typeof(SmtpFailedRecipientException[]))!;
System.Private.CoreLib (43)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\ArgumentOutOfRangeException.cs (1)
60_actualValue = info.GetValue("ActualValue", typeof(object));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (1)
83var array = (int[]?)info.GetValue("m_array", typeof(int[]));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Comparer.cs (1)
34_compareInfo = (CompareInfo)info.GetValue("CompareInfo", typeof(CompareInfo))!;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (2)
1213_comparer = (IEqualityComparer<TKey>)siInfo.GetValue(ComparerName, typeof(IEqualityComparer<TKey>))!; // When serialized if comparer is null, we use the default. 1220siInfo.GetValue(KeyValuePairsName, typeof(KeyValuePair<TKey, TValue>[]));
src\runtime\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\runtime\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\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Exception.cs (1)
51_innerException = (Exception?)(info.GetValue("InnerException", typeof(Exception))); // Do not rename (binary serialization)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\MissingMemberException.cs (1)
46Signature = (byte[]?)info.GetValue("MMSignature", typeof(byte[]));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ReflectionTypeLoadException.cs (1)
33LoaderExceptions = (Exception?[]?)info.GetValue("Exceptions", typeof(Exception[])) ?? [];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeWrappedException.cs (1)
31_wrappedException = info.GetValue("WrappedException", typeof(object))!;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\SwitchExpressionException.cs (1)
35UnmatchedValue = info.GetValue(nameof(UnmatchedValue), typeof(object));
src\runtime\src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (1)
240_compareInfo = (CompareInfo)info.GetValue("_compareInfo", typeof(CompareInfo))!;
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (7)
1039_id = (string)info.GetValue("Id", typeof(string))!; // Do not rename (binary serialization) 1040_displayName = (string?)info.GetValue("DisplayName", typeof(string)); // Do not rename (binary serialization) 1041_standardDisplayName = (string?)info.GetValue("StandardName", typeof(string)); // Do not rename (binary serialization) 1042_daylightDisplayName = (string?)info.GetValue("DaylightName", typeof(string)); // Do not rename (binary serialization) 1043_baseUtcOffset = (TimeSpan)info.GetValue("BaseUtcOffset", typeof(TimeSpan))!; // Do not rename (binary serialization) 1044_adjustmentRules = (AdjustmentRule[]?)info.GetValue("AdjustmentRules", typeof(AdjustmentRule[])); // Do not rename (binary serialization) 1045_supportsDaylightSavingTime = (bool)info.GetValue("SupportsDaylightSavingTime", typeof(bool))!; // Do not rename (binary serialization)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\WeakReference.cs (1)
61object? target = info.GetValue("TrackedObject", typeof(object)); // Do not rename (binary serialization)
src\runtime\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.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
698uint[]? bits32 = (uint[]?)info.GetValue("_bits", typeof(uint[]));
System.Security.Permissions (2)
System\Security\HostProtectionException.cs (2)
58ProtectedResources = (HostProtectionResource)info.GetValue(ProtectedResourcesName, typeof(HostProtectionResource)); 59DemandedResources = (HostProtectionResource)info.GetValue(DemandedResourcesName, typeof(HostProtectionResource));
System.ServiceModel.Primitives (4)
System\ServiceModel\FaultException.cs (4)
123Fault = (MessageFault)info.GetValue("messageFault", typeof(MessageFault)); 263FaultCodeData[] data = (FaultCodeData[])info.GetValue(key, typeof(FaultCodeData[])); 269FaultReasonData[] data = (FaultReasonData[])info.GetValue(key, typeof(FaultReasonData[])); 405Detail = (TDetail)info.GetValue("detail", typeof(TDetail));
System.Speech (1)
Result\RecognitionResult.cs (1)
55fi.SetValue(this, info.GetValue(fi.Name, fi.FieldType));
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.Transactions.Local (1)
System\Transactions\Oletx\OletxTransaction.cs (1)
133_propagationTokenForDeserialize = (byte[])serializationInfo.GetValue(PropagationTokenString, typeof(byte[]))!;
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.Xaml (2)
System\Xaml\XamlException.cs (2)
162DuplicateMember = (XamlMember)info.GetValue("DuplicateMember", typeof(XamlMember)); 163ParentType = (XamlType)info.GetValue("ParentType", typeof(XamlType));