137 references to GetValue
dotnet-svcutil-lib (14)
FrameworkFork\Microsoft.Xml\Xml\schema\ConstraintStruct.cs (7)
289_dstruct.Dvalue[i] = Convert.ToDecimal(((Array)_ovalue).GetValue(i), NumberFormatInfo.InvariantInfo); 362return atomicValues1.Length == 1 && atomicValues1.GetValue(0).Equals(other.Value); 366return arr1.Length == 1 && arr1.GetValue(0).Equals(other.Value); 376return atomicValues2.Length == 1 && atomicValues2.GetValue(0).Equals(this.Value); 380return arr2.Length == 1 && arr2.GetValue(0).Equals(this.Value); 479_hashcode += ((XmlAtomicValue)atomicValues.GetValue(j)).TypedValue.GetHashCode(); 486_hashcode += ((Array)_ks[i].Value).GetValue(j).GetHashCode();
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (3)
1013if (_itemType.Compare(arr1.GetValue(i), arr2.GetValue(i)) != 0) 1075item = valuesToCheck.GetValue(i);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (1)
1824object currItem = array.GetValue(i);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (1)
1312WritePotentiallyReferencingElement("Item", "", a.GetValue(i), elementType, false, true);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseWriter.cs (1)
1579WritePrimitiveValue(array.GetValue(i));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
498messageHeaderOfTArray[i] = TypedHeaderManager.Create(headerDescription.Type, headerValues.GetValue(i),
Microsoft.AspNetCore.Components (1)
BindConverter.cs (1)
2028if (!elementParser(initialArray.GetValue(i), culture, out convertedArray[i]!))
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\ModelBindingHelper.cs (2)
643converted[i] = ConvertSimpleType(valueAsArray.GetValue(i), destinationElementType, culture); 662var elementValue = valueAsArray.GetValue(0);
Microsoft.AspNetCore.Mvc.Core.TestCommon (2)
SimpleValueProvider.cs (2)
47stringValues[i] = array.GetValue(i) as string ?? Convert.ToString(array.GetValue(i), _culture);
Microsoft.Build (3)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
834object output = convertibleOutputs.GetValue(i);
TaskParameter.cs (2)
613string valueString = Convert.ToString(array.GetValue(i), CultureInfo.InvariantCulture); 696string valueString = Convert.ToString(array.GetValue(i), CultureInfo.InvariantCulture);
Microsoft.Build.Engine.UnitTests (2)
BackEnd\TaskExecutionHost_Tests.cs (2)
1450Assert.Equal(expectedArray.GetValue(i), actualArray.GetValue(i));
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (4)
InteractiveSessionTests.cs (4)
147Assert.Equal(2, ((Array)result.GetValue(0)).Length); 148Assert.Equal(2, ((Array)result.GetValue(1)).Length); 200Assert.Equal(2, ((Array)result.GetValue(0)).Length); 201Assert.Equal(2, ((Array)result.GetValue(1)).Length);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
557var v = a.GetValue(i);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Configuration\DidChangeConfigurationNotificationHandlerTest.cs (1)
300null => Enum.GetValues(type).GetValue(0),
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
ObjectSerializationTests.cs (2)
136if (!Equalish(seq1.GetValue(i), seq2.GetValue(i)))
Microsoft.DotNet.Build.Tasks.Installers (5)
src\RpmHeader.cs (5)
316storeStream.WriteByte((byte)(char)contents.GetValue(i)!); 319storeStream.WriteByte((byte)contents.GetValue(i)!); 322BinaryPrimitives.WriteInt16BigEndian(tempBeBytes, (short)contents.GetValue(i)!); 326BinaryPrimitives.WriteInt32BigEndian(tempBeBytes, (int)contents.GetValue(i)!); 330BinaryPrimitives.WriteInt64BigEndian(tempBeBytes, (long)contents.GetValue(i)!);
Microsoft.ML.Data (1)
EntryPoints\EntryPointNode.cs (1)
1185return arr?.GetValue(Index);
Microsoft.ML.FastTree (2)
Dataset\Dataset.cs (2)
412qdd.Data.SetValue(Data.GetValue(docArray[i]), i); 685newData.SetValue(qddata.Data.GetValue(mapping[i]), i);
Microsoft.ML.Tests (2)
CollectionsDataViewTest.cs (2)
101if (!CompareObjectValues(x.GetValue(i), y.GetValue(i), x.GetType().GetElementType()))
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\LateBinding.vb (1)
530Return ary.GetValue(CInt(args(0)))
Microsoft\VisualBasic\CompilerServices\Symbols.vb (1)
1162Return arrayInstance.GetValue(zerothIndex)
MSBuild (2)
TaskParameter.cs (2)
613string valueString = Convert.ToString(array.GetValue(i), CultureInfo.InvariantCulture); 696string valueString = Convert.ToString(array.GetValue(i), CultureInfo.InvariantCulture);
MSBuildTaskHost (2)
TaskParameter.cs (2)
613string valueString = Convert.ToString(array.GetValue(i), CultureInfo.InvariantCulture); 696string valueString = Convert.ToString(array.GetValue(i), CultureInfo.InvariantCulture);
PresentationCore (3)
MS\Internal\Ink\ExtendedProperty.cs (2)
67if (!array1.GetValue(i).Equals(array2.GetValue(i)))
System\Windows\Media\Imaging\WriteableBitmap.cs (1)
1071object exemplar = sourceBuffer.GetValue(0);
System.ComponentModel.TypeConverter (5)
System\ComponentModel\ArrayConverter.cs (1)
77return array.GetValue(_index);
System\ComponentModel\EnumConverter.cs (1)
186ulValues[idx] = GetEnumValue(isUnderlyingTypeUInt64, objValues.GetValue(idx)!, culture);
System\ComponentModel\EventDescriptorCollection.cs (1)
454return _array!.GetValue(_current);
System\ComponentModel\TypeConverter.cs (2)
468return _valueArray.GetValue(index); 478return _valueArray.GetValue(index);
System.Data.Common (5)
System\Data\Common\ObjectStorage.cs (2)
162int c = CompareTo(arr1.GetValue(i), arr2.GetValue(i));
System\Data\DataRowComparer.cs (3)
86if (!AreElementEqual(a.GetValue(index1), b.GetValue(index2))) 203hash = array.GetValue(array.GetLowerBound(0))!.GetHashCode();
System.Linq.Expressions (1)
System\Linq\Expressions\Interpreter\ArrayOperations.cs (1)
112frame.Push(array.GetValue(index));
System.Private.CoreLib (43)
src\libraries\System.Private.CoreLib\src\System\Array.cs (37)
496return this.GetValue(iindex); 643get => GetValue(index); 710object? left = GetValue(i); 711object? right = o.GetValue(i); 740object? left = GetValue(i); 741object? right = o.GetValue(i); 762hashCode.Add(comparer.GetHashCode(GetValue(i)!)); 964c = comparer.Compare(array.GetValue(i), value); 1454object? obj = array.GetValue(i); 1681object? obj = array.GetValue(i); 1880object? temp = array.GetValue(i); 1881array.SetValue(array.GetValue(j), i); 2476if (comparer.Compare(keys.GetValue(a), keys.GetValue(b)) > 0) 2478object? key = keys.GetValue(a); 2479keys.SetValue(keys.GetValue(b), a); 2483object? item = items.GetValue(a); 2484items.SetValue(items.GetValue(b), a); 2493object? t1 = keys.GetValue(i); 2494keys.SetValue(keys.GetValue(j), i); 2499object? t2 = items.GetValue(i); 2500items.SetValue(items.GetValue(j), i); 2586object? pivot = keys.GetValue(mid); 2592while (comparer.Compare(keys.GetValue(++left), pivot) < 0) ; 2593while (comparer.Compare(pivot, keys.GetValue(--right)) < 0) ; 2626object? d = keys.GetValue(lo + i - 1); 2627object? dt = items?.GetValue(lo + i - 1); 2632if (child < n && comparer.Compare(keys.GetValue(lo + child - 1), keys.GetValue(lo + child)) < 0) 2637if (!(comparer.Compare(d, keys.GetValue(lo + child - 1)) < 0)) 2640keys.SetValue(keys.GetValue(lo + child - 1), lo + i - 1); 2641items?.SetValue(items.GetValue(lo + child - 1), lo + i - 1); 2656t = keys.GetValue(i + 1); 2657dt = items?.GetValue(i + 1); 2659while (j >= lo && comparer.Compare(t, keys.GetValue(j)) < 0) 2661keys.SetValue(keys.GetValue(j), j + 1); 2662items?.SetValue(items.GetValue(j), j + 1);
src\libraries\System.Private.CoreLib\src\System\Attribute.cs (2)
119if (!AreFieldValuesEqual(thisValueArray.GetValue(j), thatValueArray.GetValue(j)))
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\ArrayTypeInfo.cs (2)
37this.elementInfo.WriteData(elementInfo.PropertyValueFactory(array.GetValue(i))); 51serializedArray[i] = this.elementInfo.GetData(array.GetValue(i));
src\libraries\System.Private.CoreLib\src\System\Type.Enum.cs (1)
160ulArray[i] = Enum.ToUInt64(array.GetValue(i)!);
src\System\Reflection\Emit\CustomAttributeBuilder.cs (1)
434EmitValue(writer, et, a.GetValue(i));
System.Private.DataContractSerialization (4)
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (1)
53ReflectionJsonClassWriter.ReflectionWriteValue(jsonWriter, context, itemType, array.GetValue(i), false, primitiveContract);
System\Runtime\Serialization\Json\XmlJsonWriter.cs (1)
1475WritePrimitiveValue(array.GetValue(i)!);
System\Runtime\Serialization\ReflectionXmlFormatWriter.cs (1)
49ReflectionXmlClassWriter.ReflectionWriteValue(xmlWriter, context, itemType, array.GetValue(i), false, primitiveContract);
System\Xml\XmlBaseWriter.cs (1)
1806WritePrimitiveValue(array.GetValue(i)!); // possible bug to log?
System.Private.Xml (16)
System\Xml\Schema\ConstraintStruct.cs (7)
286_dstruct.Dvalue[i] = Convert.ToDecimal(((Array)_ovalue!).GetValue(i), NumberFormatInfo.InvariantInfo); 359return atomicValues1.Length == 1 && atomicValues1.GetValue(0)!.Equals(other.Value); 364return arr1.Length == 1 && arr1.GetValue(0)!.Equals(other.Value); 374return atomicValues2.Length == 1 && atomicValues2.GetValue(0)!.Equals(this.Value); 379return arr2.Length == 1 && arr2.GetValue(0)!.Equals(this.Value); 468_hashcode += ((XmlAtomicValue)atomicValues.GetValue(j)!).TypedValue.GetHashCode(); 475_hashcode += ((Array)_ks[i].Value!).GetValue(j)!.GetHashCode();
System\Xml\Schema\DataTypeImplementation.cs (3)
980if (_itemType.Compare(arr1.GetValue(i)!, arr2.GetValue(i)!) != 0) 1040item = valuesToCheck.GetValue(i)!;
System\Xml\Schema\FacetChecker.cs (2)
1684if (list.ItemType.Compare(values.GetValue(j)!, enumValue.GetValue(0)!) == 0)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (2)
162var choiceSource = ((Array?)choiceSources)?.GetValue(i); 178var choiceSource = ((Array?)choiceSources)?.GetValue(c++);
System\Xml\Serialization\XmlSerializationReader.cs (1)
1718object? currItem = array!.GetValue(i);
System\Xml\Serialization\XmlSerializationWriter.cs (1)
1277WritePotentiallyReferencingElement("Item", "", a.GetValue(i), elementType, false, true);
System.Windows.Forms (9)
System\Windows\Forms\ActiveX\AxHost.cs (2)
3828o = ((Array)o).GetValue(0)!; 3839o = ((Array)o).GetValue(0)!;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\ArrayElementGridEntry.cs (1)
31return ((Array)owner).GetValue(_index);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
182object? propertyOwner = a.GetValue(i);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (3)
242object component = ownerArray.GetValue(i)!; 347if (a1.GetValue(i) != a2.GetValue(i))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (2)
637eventObj = objArray.GetValue(0); 807component = array.GetValue(0) as IComponent;
UIAutomationClient (3)
MS\Internal\Automation\Misc.cs (3)
106if (!a.GetValue(src).Equals(a.GetValue(dest))) 109a.SetValue(a.GetValue(src), dest);