Home
last modified time | relevance | path

Searched refs:TryAdd (Results 1 – 25 of 235) sorted by relevance

12345678910

/dports/devel/msbuild/msbuild-0.06/src/Deprecated/Engine/Resources/
H A DConstants.cs176 availableStaticMethods.TryAdd("System.Environment::OSVersion", environmentType); in InitializeAvailableMethods()
184 availableStaticMethods.TryAdd("System.Environment::UserName", environmentType); in InitializeAvailableMethods()
185 availableStaticMethods.TryAdd("System.Environment::Version", environmentType); in InitializeAvailableMethods()
189 availableStaticMethods.TryAdd("System.IO.Directory::GetFiles", directoryType); in InitializeAvailableMethods()
192 availableStaticMethods.TryAdd("System.IO.Directory::GetParent", directoryType); in InitializeAvailableMethods()
193 availableStaticMethods.TryAdd("System.IO.File::Exists", fileType); in InitializeAvailableMethods()
194 availableStaticMethods.TryAdd("System.IO.File::GetCreationTime", fileType); in InitializeAvailableMethods()
195 availableStaticMethods.TryAdd("System.IO.File::GetAttributes", fileType); in InitializeAvailableMethods()
196 availableStaticMethods.TryAdd("System.IO.File::GetLastAccessTime", fileType); in InitializeAvailableMethods()
197 availableStaticMethods.TryAdd("System.IO.File::GetLastWriteTime", fileType); in InitializeAvailableMethods()
[all …]
/dports/devel/msbuild/msbuild-0.06/src/Build/Resources/
H A DConstants.cs247 internal static bool TryAdd(string key, Tuple<string, Type> value) in TryAdd() method in Microsoft.Build.Internal.AvailableStaticMethods
249 return s_availableStaticMethods.TryAdd(key, value); in TryAdd()
382 … availableStaticMethods.TryAdd("System.Environment::UserName", environmentType); in InitializeAvailableMethods()
384 … availableStaticMethods.TryAdd("System.Environment::Version", environmentType); in InitializeAvailableMethods()
391 … availableStaticMethods.TryAdd("System.IO.Directory::GetFiles", directoryType); in InitializeAvailableMethods()
395 availableStaticMethods.TryAdd("System.IO.File::Exists", fileType); in InitializeAvailableMethods()
396 availableStaticMethods.TryAdd("System.IO.File::GetCreationTime", fileType); in InitializeAvailableMethods()
397 availableStaticMethods.TryAdd("System.IO.File::GetAttributes", fileType); in InitializeAvailableMethods()
398 … availableStaticMethods.TryAdd("System.IO.File::GetLastAccessTime", fileType); in InitializeAvailableMethods()
399 availableStaticMethods.TryAdd("System.IO.File::GetLastWriteTime", fileType); in InitializeAvailableMethods()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/System.Runtime.Serialization/Test/System.Xml/
H A DXmlBinaryWriterSessionTest.cs48 s.TryAdd (d1, out idx); in TryAddDuplicate()
49 s.TryAdd (d1, out idx); in TryAddDuplicate()
61 s.TryAdd (d1, out idx); in TryAddIndex()
63 s.TryAdd (d3, out idx); in TryAddIndex()
104 public override bool TryAdd (XmlDictionaryString s, out int key) in TryAdd() method in MonoTests.System.Xml.XmlBinaryWriterSessionTest.MyXmlBinaryWriterSession
106 if (!base.TryAdd (s, out key)) in TryAdd()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Collections.Concurrent/tests/
H A DProducerConsumerCollectionTests.cs146 Assert.True(c.TryAdd(i)); in AddSome_ThenInterleaveAddsAndTakes_MatchesOracle()
177 Assert.Equal(oracle.TryAdd(i), c.TryAdd(i)); in AddTake_RandomChangesMatchOracle()
233 Assert.Equal(oracle.TryAdd(i + count), c.TryAdd(i + count)); in ToArray_AddAllItemsThenEnumerate_ItemsAndCountMatch()
262 Assert.Equal(oracle.TryAdd(initialCount + i), c.TryAdd(initialCount + i)); in ToArray_AddAndTakeItemsIntermixedWithEnumeration_ItemsAndCountMatch()
323 Assert.True(c.TryAdd(42)); in TryPeek_SucceedsOnEmptyCollectionThatWasOnceNonEmpty()
524 Assert.True(c.TryAdd(42)); in GetEnumerator_NonGeneric()
525 Assert.True(c.TryAdd(84)); in GetEnumerator_NonGeneric()
541 Assert.True(c.TryAdd(1)); in GetEnumerator_EnumerationsAreSnapshots()
586 Assert.True(c.TryAdd(i)); in GetEnumerator_Generic_ExpectedElementsYielded()
617 Assert.True(c.TryAdd(42)); in TryAdd_TryTake_ToArray()
[all …]
H A DBlockingCollectionTests.cs445 concurrentCollection.TryAdd(i); in Test5_GetEnumerator()
588 concurrentCollection.TryAdd(i); in Test8_ToArray()
616 concurrentCollection.TryAdd(i); in TestCopyTo()
640 blockingCollection.TryAdd(1); in Test10_Count()
840 concurrentStack.TryAdd(1); in Test16_Ctor()
841 concurrentStack.TryAdd(2); in Test16_Ctor()
859 blockingCollection.TryAdd(0); in Test17_AddExceptions()
1026 if (blockingCollection.TryAdd(numberToAdd)) in AddAnyTakeAny()
1045 concurrentCollection.TryAdd(numberToAdd); in AddAnyTakeAny()
1188 public bool TryAdd(T item) in TryAdd() method in System.Collections.Concurrent.Tests.BlockingCollectionTests.ConcurrentStackCollection
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/Mono.Parallel/Test/Mono.Collections.Concurrent/
H A DConcurrentSkipListTests.cs48 skiplist.TryAdd(1); in AddStuff()
49 skiplist.TryAdd(2); in AddStuff()
50 skiplist.TryAdd(3); in AddStuff()
51 skiplist.TryAdd(4); in AddStuff()
57 Assert.IsTrue(skiplist.TryAdd(1), "#1"); in AddTestCase()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Collections.Concurrent/tests/Performance/
H A DPerf.ConcurrentDictionary.cs40 public void TryAdd(bool exists) in TryAdd() method in System.Collections.Concurrent.Tests.Perf_ConcurrentDictionary
51 d.TryAdd(i, i); in TryAdd()
59 d.TryAdd(i, i); in TryAdd()
77 d.TryAdd(exists ? i : i + size, i); in TryGetValue()
102 d.TryAdd(exists ? i : i + size, i); in GetOrAdd()
/dports/net-im/dendrite/dendrite-0.5.1/vendor/github.com/libp2p/go-libp2p-kad-dht/qpeerset/
H A Dqpeerset_test.go52 require.True(t, qp.TryAdd(peer2, oracle))
54 require.False(t, qp.TryAdd(peer2, oracle))
58 require.True(t, qp.TryAdd(peer4, oracle))
72 require.True(t, qp.TryAdd(peer1, oracle))
83 require.True(t, qp.TryAdd(peer3, oracle))
/dports/lang/mono/mono-5.10.1.57/mcs/class/corlib/Test/System.Collections.Concurrent/
H A DConcurrentDictionaryTests.cs52 map.TryAdd ("foo", 1); in AddStuff()
53 map.TryAdd ("bar", 2); in AddStuff()
60 map.TryAdd("baz", 2); in AddWithoutDuplicateTest()
79 while (!map.TryAdd ("monkey" + own.ToString (), own)); in AddParallelWithoutDuplicateTest()
140 Assert.IsFalse (map.TryAdd("foo", 6)); in AddWithDuplicate()
257 Assert.IsTrue (classMap.TryAdd (class1, "class1"), "class 1"); in SameHashCodeInsertTest()
259 Assert.IsTrue (classMap.TryAdd (class2, "class2"), "class 2"); in SameHashCodeInsertTest()
305 Assert.IsTrue (dict.TryAdd (id, id)); in QueryWithSameHashCodeTest()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Collections/tests/Generic/
H A DCollectionExtensionsTests.cs48 …AssertExtensions.Throws<ArgumentNullException>("dictionary", () => dictionary.TryAdd("key", "value… in TryAdd_NullIDictionary_ThrowsArgumentNullException()
55 … AssertExtensions.Throws<ArgumentNullException>("key", () => dictionary.TryAdd(null, "value")); in TryAdd_NullKeyIDictionary_ThrowsArgumentNullException()
62 Assert.True(dictionary.TryAdd("key", "value")); in TryAdd_KeyDoesntExistInIDictionary_ReturnsTrue()
70 Assert.False(dictionary.TryAdd("key", "value2")); in TryAdd_KeyExistsInIDictionary_ReturnsFalse()
/dports/math/py-or-tools/or-tools-9.2/ortools/util/
H A Daffine_relation.h67 bool TryAdd(int x, int y, int64_t coeff, int64_t offset);
71 bool TryAdd(int x, int y, int64_t coeff, int64_t offset, bool allow_rep_x,
167 inline bool AffineRelation::TryAdd(int x, int y, int64_t coeff, in TryAdd() function
169 return TryAdd(x, y, coeff, offset, true, true); in TryAdd()
172 inline bool AffineRelation::TryAdd(int x, int y, int64_t coeff, int64_t offset, in TryAdd() function
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Collections.Concurrent/tests/ConcurrentDictionary/
H A DConcurrentDictionaryTests.cs25 var ret = cd.TryAdd(1, 11); in TestBasicScenarios()
32 ret = cd.TryAdd(2, 22); in TestBasicScenarios()
42 var ret = cd.TryAdd(2, 222); in TestBasicScenarios()
49 ret = cd.TryAdd(1, 111); in TestBasicScenarios()
549 dict.TryAdd("One", 1); in TestDebuggerAttributes()
550 dict.TryAdd("Two", 2); in TestDebuggerAttributes()
668 () => dictionary.TryAdd(null, 0)); in TestExceptions()
730 dictionary.TryAdd("1", 1); in TestExceptions()
883 dictionary.TryAdd(i, i); in TestClear()
904 dictionary.TryAdd(i.ToString(), i); in TestTryUpdate()
[all …]
H A DConcurrentDictionaryExtensions.cs24 if (dictionary.TryAdd(key, value)) in GetOrAdd()
51 if (dictionary.TryAdd(key, value)) in AddOrUpdate()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Web/UI/
H A DTargetFrameworkUtil.cs70 s_memberCache.TryAdd(type, memberCache); in GetMemberCache()
186 memberCache.Properties.TryAdd(key, result); in GetProperty()
235 memberCache.Fields.TryAdd(key, result); in GetField()
271 memberCache.Events.TryAdd(name, result); in GetEvent()
306 s_typePropertyDescriptorCollectionDict.TryAdd(type, result); in GetProperties()
335 s_objectPropertyDescriptorCollectionDict.TryAdd(obj, result); in GetProperties()
391 s_eventDescriptorCollectionDict.TryAdd(type, result); in GetEvents()
480 s_isFrameworkType.TryAdd(type, result); in IsFrameworkType()
/dports/devel/msbuild/msbuild-0.06/src/Tasks/AssemblyDependency/
H A DGlobalAssemblyCache.cs293 fusionNameToResolvedPath.TryAdd(strongName, location); in GetLocation()
325 fusionNameToResolvedPath.TryAdd(strongName, location); in GetLocation()
344 fusionNameToResolvedPath.TryAdd(strongName, location); in GetLocation()
364 fusionNameToResolvedPath.TryAdd(strongName, location); in GetLocation()
371 fusionNameToResolvedPath.TryAdd(strongName, null); in GetLocation()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Collections.Concurrent/ref/
H A DSystem.Collections.Concurrent.cs41 public bool TryAdd(T item) { throw null; } in TryAdd() method in System.Collections.Concurrent.BlockingCollection
42 public bool TryAdd(T item, int millisecondsTimeout) { throw null; } in TryAdd() method in System.Collections.Concurrent.BlockingCollection
43 …public bool TryAdd(T item, int millisecondsTimeout, System.Threading.CancellationToken cancellatio… in TryAdd() method in System.Collections.Concurrent.BlockingCollection
44 public bool TryAdd(T item, System.TimeSpan timeout) { throw null; } in TryAdd() method in System.Collections.Concurrent.BlockingCollection
70 … bool System.Collections.Concurrent.IProducerConsumerCollection<T>.TryAdd(T item) { throw null; } in TryAdd() method in System.Collections.Concurrent.ConcurrentBag
123 public bool TryAdd(TKey key, TValue value) { throw null; } in TryAdd() method in System.Collections.Concurrent.ConcurrentDictionary
140 … bool System.Collections.Concurrent.IProducerConsumerCollection<T>.TryAdd(T item) { throw null; } in TryAdd() method in System.Collections.Concurrent.ConcurrentQueue
162 … bool System.Collections.Concurrent.IProducerConsumerCollection<T>.TryAdd(T item) { throw null; } in TryAdd() method in System.Collections.Concurrent.ConcurrentStack
182 bool TryAdd(T item); in TryAdd() method
/dports/games/openbve/OpenBVE-1.8.2.1/source/OpenBveApi/World/UnitConversions/
H A DUnitConvertor.cs62 if (!ConversionsTo.TryAdd(convertToUnit, conversionTo)) in RegisterConversion()
64 if (!ConversionsFrom.TryAdd(convertToUnit, conversionFrom)) in RegisterConversion()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Data/System/Data/SqlClient/
H A DSqlClientEncryptionAlgorithmFactoryList.cs26 …_encryptionAlgoFactoryList.TryAdd(SqlAeadAes256CbcHmac256Algorithm.AlgorithmName, new SqlAeadAes25… in SqlClientEncryptionAlgorithmFactoryList()
27 … _encryptionAlgoFactoryList.TryAdd(SqlAes256CbcAlgorithm.AlgorithmName, new SqlAes256CbcFactory()); in SqlClientEncryptionAlgorithmFactoryList()
/dports/net-im/dendrite/dendrite-0.5.1/vendor/github.com/libp2p/go-libp2p-kbucket/peerdiversity/
H A Dfilter_test.go206 b := f.TryAdd(p)
302 require.True(t, f.TryAdd(p1))
303 require.True(t, f.TryAdd(p2))
304 require.True(t, f.TryAdd(p3))
305 require.True(t, f.TryAdd(p4))
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.ComponentModel.DataAnnotations/DataAnnotations/
H A DAssociatedMetadataTypeTypeDescriptor.cs95 _validatedMetadataTypeCache.TryAdd(typeTuple, true); in ValidateMetadataType()
110 _metadataTypeCache.TryAdd(type, associatedMetadataType); in GetAssociatedMetadataType()
156 _typeMemberCache.TryAdd(memberTuple, attributes); in GetAssociatedMetadata()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Security.Cryptography.Encoding/src/Internal/Cryptography/
H A DOidLookup.cs51 s_lateBoundOidToFriendlyName.TryAdd(oid, mappedName); in ToFriendlyName()
86 s_lateBoundFriendlyNameToOid.TryAdd(friendlyName, mappedOid); in ToOid()
/dports/www/apt-cacher-ng/apt-cacher-ng-3.2/source/
H A Dmirror.cc120 auto TryAdd = [&matchList, &srcs](cmstring &s) in Action() local
144 ParseAndProcessMetaFile([&TryAdd](const tRemoteFileInfo &entry) { in Action()
145 TryAdd(entry.sDirectory+entry.sFileName); }, in Action()
149 TryAdd((cmstring)path2x.first); in Action()
156 TryAdd(path); in Action()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.ServiceModel/System/ServiceModel/Configuration/
H A DStandardEndpointsSection.cs98 …internal static bool TryAdd(string name, ServiceEndpoint endpoint, Configuration config, out strin… in TryAdd() method in System.ServiceModel.Configuration.StandardEndpointsSection
104 retval = StandardEndpointsSection.TryAdd(name, endpoint, out endpointSectionName); in TryAdd()
120 … internal static bool TryAdd(string name, ServiceEndpoint endpoint, out string endpointSectionName) in TryAdd() method in System.ServiceModel.Configuration.StandardEndpointsSection
H A DBindingsSection.cs190 …internal static bool TryAdd(string name, Binding binding, Configuration config, out string binding… in TryAdd() method in System.ServiceModel.Configuration.BindingsSection
196 retval = BindingsSection.TryAdd(name, binding, out bindingSectionName); in TryAdd()
205 internal static bool TryAdd(string name, Binding binding, out string bindingSectionName) in TryAdd() method in System.ServiceModel.Configuration.BindingsSection
244 retval = customBindingSection.TryAdd(name, binding, BindingsSection.Configuration); in TryAdd()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Collections.Immutable/src/System/Collections/Immutable/
H A DSecureObjectPool.cs44 public void TryAdd(TCaller caller, SecurePooledObject<T> item) in TryAdd() method in System.Collections.Immutable.TCaller
50 AllocFreeConcurrentStack<SecurePooledObject<T>>.TryAdd(item); in TryAdd()

12345678910