164 references to SetValue
dotnet-svcutil-lib (8)
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlAttributeCollection.cs (1)
268array.SetValue(nodes[i], index);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaCollection.cs (1)
271array.SetValue(e.Current, index++);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (2)
227array.SetValue(_entries[i].qname, arrayIndex++); 282array.SetValue(_entries[i].xso, arrayIndex++);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (3)
1645array.SetValue(o, i); 1775array.SetValue(ReadReferencedElement(qname.Name, qname.Namespace), arrayLength); 1809array.SetValue(ReadReferencingElement(type, typens, out ids[idsLength]), arrayLength);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
438tArray.SetValue(GetContentOfMessageHeaderOfT(headerDescription, messageHeaderOfTArray[i], out mustUnderstand, out relay, out actor), i);
Microsoft.Build (4)
Construction\ProjectElementContainer.cs (1)
872array.SetValue(entry, i);
CopyOnWriteDictionary.cs (1)
363array.SetValue(new DictionaryEntry(entry.Key, entry.Value), index + i);
ReadOnlyCollection.cs (1)
193array.SetValue(entry, i);
TaskParameter.cs (1)
644array.SetValue(Convert.ChangeType(valueString, _parameterTypeCode, CultureInfo.InvariantCulture), i);
Microsoft.Build.Engine.UnitTests (2)
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (1)
158array.SetValue(new KeyValuePair<TKey, TValue>(_keys[i], _values[i]), index + i);
TaskParameter_Tests.cs (1)
103array.SetValue(value, i);
Microsoft.Build.Tasks.Core (2)
CopyOnWriteDictionary.cs (1)
363array.SetValue(new DictionaryEntry(entry.Key, entry.Value), index + i);
ReadOnlyCollection.cs (1)
193array.SetValue(entry, i);
Microsoft.Build.Utilities.Core (1)
CopyOnWriteDictionary.cs (1)
363array.SetValue(new DictionaryEntry(entry.Key, entry.Value), index + i);
Microsoft.CodeAnalysis (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
358array.SetValue(item, index++);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
358array.SetValue(item, index++);
Microsoft.CodeAnalysis.Collections.Package (1)
Segmented\ImmutableSegmentedHashSet`1.cs (1)
358array.SetValue(item, index++);
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
358array.SetValue(item, index++);
Microsoft.CodeAnalysis.Threading.Package (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
358array.SetValue(item, index++);
Microsoft.CodeAnalysis.Workspaces (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
358array.SetValue(item, index++);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
358array.SetValue(item, index++);
Microsoft.DotNet.Build.Tasks.Installers (5)
src\RpmHeader.cs (5)
202contents.SetValue((char)store[offset], i); 206contents.SetValue(store[offset], i); 210contents.SetValue(BinaryPrimitives.ReadInt16BigEndian(store.AsSpan().Slice(offset.AlignUp(2), 2)), i); 215contents.SetValue(BinaryPrimitives.ReadInt32BigEndian(store.AsSpan().Slice(offset.AlignUp(4), 4)), i); 220contents.SetValue(BinaryPrimitives.ReadInt64BigEndian(store.AsSpan().Slice(offset.AlignUp(8), 8)), i);
Microsoft.DotNet.XUnitAssert.Tests (8)
EqualityAssertsTests.cs (8)
971 expected.SetValue(42, 1); 973 actual.SetValue(42, 1); 982 expected.SetValue(42, 1); 984 actual.SetValue(42, 0); 3274 expected.SetValue(42, 1); 3276 actual.SetValue(42, 1); 3294 expected.SetValue(42, 1); 3296 actual.SetValue(42, 0);
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\CallSiteRuntimeResolver.cs (1)
172array.SetValue(value, index);
Microsoft.Maui.Controls (1)
ObservableWrapper.cs (1)
64 array.SetValue(item, destIndex);
Microsoft.ML.Core (4)
CommandLine\CmdParser.cs (4)
1597arr.SetValue(kvp, i); 1630arr.SetValue(comList[i], i); 1640res.SetValue(kvp, i); 1648res.SetValue(values[i].Value, i);
Microsoft.ML.Data (1)
EntryPoints\EntryPointNode.cs (1)
868arr.SetValue(_context.GetValueOrNull(_inputMap[binding]), i++);
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.Transforms (1)
Expression\LambdaBinder.cs (1)
1449rest.SetValue(args[head + i], i);
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\LateBinding.vb (1)
778ary.SetValue(NewValue, CInt(args(0)))
Microsoft\VisualBasic\CompilerServices\Symbols.vb (1)
1216arrayInstance.SetValue(Conversions.ChangeType(value, elementType), zerothIndex)
MSBuild (2)
CopyOnWriteDictionary.cs (1)
363array.SetValue(new DictionaryEntry(entry.Key, entry.Value), index + i);
TaskParameter.cs (1)
644array.SetValue(Convert.ChangeType(valueString, _parameterTypeCode, CultureInfo.InvariantCulture), i);
MSBuildTaskHost (3)
CopyOnWriteDictionary.cs (1)
363array.SetValue(new DictionaryEntry(entry.Key, entry.Value), index + i);
Immutable\ImmutableDictionary.cs (1)
106array.SetValue(new DictionaryEntry(item.Key, item.Value), arrayIndex++);
TaskParameter.cs (1)
644array.SetValue(Convert.ChangeType(valueString, _parameterTypeCode, CultureInfo.InvariantCulture), i);
PresentationCore (5)
System\Windows\FreezableCollection.cs (1)
491array.SetValue(_collection[i], index + i);
System\Windows\Media\CharacterMetricsDictionary.cs (1)
205array.SetValue(new SC.DictionaryEntry(item.Key, item.Value), index++);
System\Windows\Media\CultureSpecificStringDictionary.cs (2)
174array.SetValue(new SC.DictionaryEntry(item.Key, item.Value), index++); 446array.SetValue(obj, index++);
System\Windows\Media\VisualCollection.cs (1)
184array.SetValue(_items[i], i+index);
PresentationFramework (4)
MS\Internal\Data\PropertyPathWorker.cs (2)
1357args.SetValue(pInfo.value, i); 1403args.SetValue(arg, i);
System\Windows\Documents\TextElementCollection.cs (1)
619array.SetValue(element, arrayIndex++);
System\Windows\ResourceDictionary.cs (1)
2292array.SetValue(_owner[key], index++);
System.Collections.Immutable (7)
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (1)
351array.SetValue(new DictionaryEntry(item.Key, item.Value), arrayIndex++);
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
757array.SetValue(new DictionaryEntry(item.Key, item.Value), arrayIndex++);
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
545array.SetValue(item, arrayIndex++);
System\Collections\Immutable\ImmutableList_1.Node.cs (1)
917array.SetValue(element, arrayIndex++);
System\Collections\Immutable\ImmutableSortedDictionary_2.Node.cs (1)
222array.SetValue(new DictionaryEntry(item.Key, item.Value), arrayIndex++);
System\Collections\Immutable\ImmutableSortedSet_1.Node.cs (1)
328array.SetValue(item, arrayIndex++);
System\Collections\Immutable\KeysOrValuesCollectionAccessor.cs (1)
139array.SetValue(item, arrayIndex++);
System.Collections.NonGeneric (2)
System\Collections\SortedList.cs (1)
347array.SetValue(entry, i + arrayIndex);
System\Collections\Stack.cs (1)
138array.SetValue(_array[_size - i - 1], i + index);
System.Collections.Specialized (7)
System\Collections\Specialized\ListDictionary.cs (2)
215array.SetValue(new DictionaryEntry(node.key, node.value), index); 370array.SetValue(_isKeys ? node.key : node.value, index);
System\Collections\Specialized\NameObjectCollectionBase.cs (2)
388array.SetValue(e.Current, index++); 612array.SetValue(e.Current, index++);
System\Collections\Specialized\NameValueCollection.cs (2)
219dest.SetValue(all[i], i + index); 227dest.SetValue(_all[i], i + index);
System\Collections\Specialized\OrderedDictionary.cs (1)
564array.SetValue(IsKeys ? ((DictionaryEntry)o).Key : ((DictionaryEntry)o).Value, index);
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\Hosting\CompositionServices.cs (1)
441array.SetValue(_innerList[i], i);
System\ComponentModel\Composition\ReflectionModel\ImportingItem.cs (1)
59array.SetValue(value, i);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\ArrayConverter.cs (1)
89array.SetValue(value, _index);
System.Composition.TypedParts (3)
System\Composition\TypedParts\Discovery\TypeInspector.cs (3)
136newArray.SetValue(value, existingArray.Length); 142newArray.SetValue(existingValue, 0); 143newArray.SetValue(value, 1);
System.Configuration.ConfigurationManager (1)
System\Configuration\ConfigurationElementCollection.cs (1)
128if (entry.EntryType != EntryType.Removed) arr.SetValue(entry.Value, index++);
System.Data.Common (6)
System\Data\DataView.cs (2)
642array.SetValue(GetRowView(iterator.Current), index); 651array.SetValue(_rowViewCache[_addNewRow], index);
System\Data\DataViewManager.cs (1)
160array.SetValue(new DataViewManagerListItemTypeDescriptor(this), index);
System\Data\DataViewSettingCollection.cs (2)
116ar.SetValue(Enumerator.Current, index++); 125ar.SetValue(Enumerator.Current, index++);
System\Data\RbTree.cs (1)
1644array.SetValue(Key(x_id), index + i);
System.Diagnostics.TraceSource (1)
System\Diagnostics\CorrelationManager.cs (1)
91array.SetValue(n.Value, index++);
System.Linq.Expressions (4)
System\Linq\Expressions\Interpreter\ArrayOperations.cs (2)
29array.SetValue(frame.Pop(), i); 131array.SetValue(value, index);
System\Linq\Expressions\Interpreter\CallInstruction.cs (1)
156array.SetValue(value, index0);
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
3173((Array)frame.Data[_array.Index]!).SetValue(value, (int)index!);
System.Net.HttpListener (1)
System\Net\HttpListenerPrefixCollection.cs (1)
50array.SetValue(uriPrefix, offset + index++);
System.ObjectModel (1)
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (1)
359array.SetValue(_item, index);
System.Private.CoreLib (28)
src\libraries\System.Private.CoreLib\src\System\Array.cs (20)
556this.SetValue(value, iindex); 644set => SetValue(value, index); 1881array.SetValue(array.GetValue(j), i); 1882array.SetValue(temp, j); 2479keys.SetValue(keys.GetValue(b), a); 2480keys.SetValue(key, b); 2484items.SetValue(items.GetValue(b), a); 2485items.SetValue(item, b); 2494keys.SetValue(keys.GetValue(j), i); 2495keys.SetValue(t1, j); 2500items.SetValue(items.GetValue(j), i); 2501items.SetValue(t2, j); 2640keys.SetValue(keys.GetValue(lo + child - 1), lo + i - 1); 2641items?.SetValue(items.GetValue(lo + child - 1), lo + i - 1); 2644keys.SetValue(d, lo + i - 1); 2645items?.SetValue(dt, lo + i - 1); 2661keys.SetValue(keys.GetValue(j), j + 1); 2662items?.SetValue(items.GetValue(j), j + 1); 2666keys.SetValue(t, j + 1); 2667items?.SetValue(dt, j + 1);
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (1)
834array.SetValue(_list[i], arrayIndex++);
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (3)
545array.SetValue(keyv, arrayIndex++); 565array.SetValue(entry, arrayIndex++); 616array.SetValue(lbuckets[i].val, arrayIndex++);
src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (2)
162array.SetValue(new DictionaryEntry(node.key, node.value), index); 314array.SetValue(isKeys ? node.key : node.value, index);
src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (2)
319((Array)objs[lastPos]).SetValue(args[lastPos], 0); 409((Array)objs[lastPos]).SetValue(args[lastPos], 0);
System.Private.Xml (11)
System\Xml\Dom\XmlAttributeCollection.cs (1)
273array.SetValue(nodes[i], index);
System\Xml\Schema\XmlSchemaCollection.cs (1)
235array.SetValue(e.Current, index++);
System\Xml\Schema\XmlSchemaObjectTable.cs (2)
199array.SetValue(_entries[i].qname, arrayIndex++); 252array.SetValue(_entries[i].xso, arrayIndex++);
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (3)
557a.SetValue(collectionMember[i], i); 1991arrayValue.SetValue(WritePrimitive(attribute.Mapping!, (state) => ((string[])state)[i], vals), i); 2049newArray.SetValue(item, length);
System\Xml\Serialization\XmlSerializationReader.cs (3)
1543array.SetValue(o, i); 1673array.SetValue(ReadReferencedElement(qname.Name, qname.Namespace), arrayLength); 1704array.SetValue(ReadReferencingElement(type, typens, out ids[idsLength]!), arrayLength);
System\Xml\Xsl\ListBase.cs (1)
128array.SetValue(this[i], index);
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
359ret.SetValue(enumFields[i].GetRawConstantValue(), i);
System.Security.Cryptography (5)
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
146array.SetValue(this[i], index);
System\Security\Cryptography\AsnEncodedDataCollection.cs (1)
79array.SetValue(this[i], index);
System\Security\Cryptography\OidCollection.cs (1)
85array.SetValue(this[i], index);
System\Security\Cryptography\X509Certificates\X509ChainElementCollection.cs (1)
71array.SetValue(this[i], index);
System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs (1)
90array.SetValue(this[i], index);
System.Security.Cryptography.Pkcs (4)
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
146array.SetValue(this[i], index);
System\Security\Cryptography\Pkcs\CmsRecipientCollection.cs (1)
95array.SetValue(this[i], index);
System\Security\Cryptography\Pkcs\RecipientInfoCollection.cs (1)
69array.SetValue(this[i], index);
System\Security\Cryptography\Pkcs\SignerInfoCollection.cs (1)
68array.SetValue(this[i], index + i);
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\CaptureCollection.cs (1)
89array.SetValue(this[j], i);
System\Text\RegularExpressions\GroupCollection.cs (1)
103array.SetValue(this[j], i);
System.Windows.Forms (12)
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (1)
290destination.SetValue(InnerList[i], i + index);
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (1)
511dest.SetValue(_owner.GetBitmap(i), index++);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedIndexCollection.cs (1)
136dest.SetValue(this[i], i + index);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedItemCollection.cs (1)
141dest.SetValue(InnerArray.GetItem(i, s_anyMask), i + index);
System\Windows\Forms\Controls\ListBoxes\ListBox.IntegerCollection.cs (1)
324destination.SetValue(this[i], i + index);
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
289destination.SetValue(InnerArray.GetItem(i), i + index);
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedIndexCollection.cs (1)
176destination.SetValue(this[i], i + index);
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedObjectCollection.cs (1)
209destination.SetValue(InnerArray.GetItem(i, SelectedObjectMask), i + index);
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (1)
447dest.SetValue(this[displayIndex], index++);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\ArrayElementGridEntry.cs (1)
37((Array)owner).SetValue(value, _index);
System\Windows\Forms\Controls\WebBrowser\HtmlElementCollection.cs (1)
165dest.SetValue(this[i], index++);
System\Windows\Forms\Controls\WebBrowser\HtmlWindowCollection.cs (1)
102dest.SetValue(this[i], index++);
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignSurfaceCollection.cs (1)
60array.SetValue(surface, index++);
UIAutomationClient (1)
MS\Internal\Automation\Misc.cs (1)
109a.SetValue(a.GetValue(src), dest);