110 references to SetValue
Microsoft.Build (4)
Construction\ProjectElementContainer.cs (1)
855array.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)
660array.SetValue(Convert.ChangeType(valueString, _parameterTypeCode, CultureInfo.InvariantCulture), i);
Microsoft.Build.Engine (2)
Choose\GroupingCollection.cs (2)
121array.SetValue(propertyGroup, index++); 191array.SetValue(itemGroup, index++);
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.Extensions.DependencyInjection (1)
ServiceLookup\CallSiteRuntimeResolver.cs (1)
172array.SetValue(value, index);
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\LateBinding.vb (1)
778ary.SetValue(NewValue, CInt(args(0)))
Microsoft\VisualBasic\CompilerServices\Symbols.vb (1)
1219arrayInstance.SetValue(Conversions.ChangeType(value, elementType), zerothIndex)
MSBuild (2)
CopyOnWriteDictionary.cs (1)
363array.SetValue(new DictionaryEntry(entry.Key, entry.Value), index + i);
TaskParameter.cs (1)
660array.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)
660array.SetValue(Convert.ChangeType(valueString, _parameterTypeCode, CultureInfo.InvariantCulture), i);
PresentationCore (5)
System\Windows\FreezableCollection.cs (1)
519array.SetValue(_collection[i], index + i);
System\Windows\Media\CharacterMetricsDictionary.cs (1)
223array.SetValue(new SC.DictionaryEntry(item.Key, item.Value), index++);
System\Windows\Media\CultureSpecificStringDictionary.cs (2)
189array.SetValue(new SC.DictionaryEntry(item.Key, item.Value), index++); 461array.SetValue(obj, index++);
System\Windows\Media\VisualCollection.cs (1)
204array.SetValue(_items[i], i+index);
PresentationFramework (4)
MS\Internal\Data\PropertyPathWorker.cs (2)
1374args.SetValue(pInfo.value, i); 1428args.SetValue(arg, i);
System\Windows\Documents\TextElementCollection.cs (1)
622array.SetValue(element, arrayIndex++);
System\Windows\ResourceDictionary.cs (1)
2217array.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)
557array.SetValue(item, arrayIndex++);
System\Collections\Immutable\ImmutableList_1.Node.cs (1)
937array.SetValue(element, arrayIndex++);
System\Collections\Immutable\ImmutableSortedDictionary_2.Node.cs (1)
262array.SetValue(new DictionaryEntry(item.Key, item.Value), arrayIndex++);
System\Collections\Immutable\ImmutableSortedSet_1.Node.cs (1)
360array.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.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)
558this.SetValue(value, iindex); 646set => SetValue(value, index); 1896array.SetValue(array.GetValue(j), i); 1897array.SetValue(temp, j); 2498keys.SetValue(keys.GetValue(b), a); 2499keys.SetValue(key, b); 2503items.SetValue(items.GetValue(b), a); 2504items.SetValue(item, b); 2513keys.SetValue(keys.GetValue(j), i); 2514keys.SetValue(t1, j); 2519items.SetValue(items.GetValue(j), i); 2520items.SetValue(t2, j); 2659keys.SetValue(keys.GetValue(lo + child - 1), lo + i - 1); 2660items?.SetValue(items.GetValue(lo + child - 1), lo + i - 1); 2663keys.SetValue(d, lo + i - 1); 2664items?.SetValue(dt, lo + i - 1); 2680keys.SetValue(keys.GetValue(j), j + 1); 2681items?.SetValue(items.GetValue(j), j + 1); 2685keys.SetValue(t, j + 1); 2686items?.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)
580a.SetValue(collectionMember[i], i); 1976arrayValue.SetValue(WritePrimitive(attribute.Mapping!, (state) => ((string[])state)[i], vals), i); 2036newArray.SetValue(item, length);
System\Xml\Serialization\XmlSerializationReader.cs (3)
1541array.SetValue(o, i); 1670array.SetValue(ReadReferencedElement(qname.Name, qname.Namespace), arrayLength); 1701array.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 (4)
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.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);
UIAutomationClient (1)
MS\Internal\Automation\Misc.cs (1)
119a.SetValue(a.GetValue(src), dest);