115 references to Any
System.Activities (4)
System\Activities\DynamicUpdate\ActivityComparer.cs (1)
115return variables.Any(v => string.IsNullOrEmpty(v.Name));
System\Activities\DynamicUpdate\DynamicUpdateMapBuilder.cs (1)
1501providedValues.Keys.Any(k => generatedValues.ContainsKey(k));
System\Activities\Validation\ValidationHelper.cs (2)
61if (optionalArguments.Any(localArgument => CheckIfArgumentIsBound(localArgument, inputs))) 222if (overloadGroups[subsetGroup].Any<RuntimeArgument>((a) => a.IsRequired))
System.Activities.Core.Presentation (3)
System\Activities\Presentation\DynamicArgumentDesigner.xaml.cs (1)
528this.DynamicArguments.Any<DynamicArgumentWrapperObject>(
System\Activities\Presentation\TypeCollectionDesigner.xaml.cs (1)
105if (tw.Type != null && list.Any<TypeWrapper>(entry => Type.Equals(entry.Type, tw.Type)))
System\ServiceModel\Activities\Presentation\ContentCorrelationTypeExpander.xaml.cs (1)
239return ((type.IsPrimitive) || type.IsEnum || PrimitiveTypesInXPath.Any((item => item == type))
System.Activities.DurableInstancing (1)
System\Activities\DurableInstancing\SqlCommandAsyncResult.cs (1)
113return SqlCommandAsyncResult.retryErrorCodes.Any(x => x.ErrorCode == error && (x.RetryErrorOptions & retryErrorOptions) == retryErrorOptions);
System.Activities.Presentation (13)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlSchemaContext.cs (1)
161if (xamlType.GetXamlNamespaces().Any(ns => IsClrNamespaceInLocalAssembly(ns)))
System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (1)
67if (!DisallowedTypesForCopy.Any(p => type == p))
System.Activities.Presentation\System\Activities\Presentation\DefaultCommandExtensionCallback.cs (1)
113return cmd.InputGestures.OfType<KeyGesture>().Any(p => string.Equals(p.DisplayString, gesture.DisplayString));
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (1)
1302argumentCollection.Any<ModelItem>(p => string.Equals(p.Properties["Name"].ComputedValue, name) && !ModelItem.Equals(p, this.ReflectedObject));
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
313.Any(cb => ICommand.Equals(cb.Command, PropertyValueEditorCommands.ShowDialogEditor));
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (2)
588.Where(item => commands.Any( 590.Any(item => item.Visibility == Visibility.Visible) ? Visibility.Visible : Visibility.Collapsed;
System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (1)
657if (!MostRecentlyUsedTypes.Any<Type>(p => Type.Equals(p, result)))
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (4)
908return variableContainer.Any(p => string.Equals(p.Properties[DesignTimeVariable.VariableNameProperty].ComputedValue, variableName)); 932if (!variables.Any(p => string.Equals(p.Properties[DesignTimeVariable.VariableNameProperty].ComputedValue, name))) 1414bool duplicates = this.ReflectedObject.Parent.Parent.Properties["Variables"].Collection.Any(checkForDuplicates); 1439bool duplicates = scope.Properties["Variables"].Collection.Any(checkForDuplicates);
System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (1)
559collectionType.AllowedContentTypes.Any(contentType => type.CanAssignTo(contentType));
System.Core (2)
Microsoft\Scripting\Compiler\DelegateHelpers.Generated.cs (1)
213if (types.Length > MaximumArity || types.Any(t => t.IsByRef)) {
Microsoft\Scripting\Compiler\StackSpiller.cs (1)
956if (method != null && method.GetParametersCached().Any(p => p.ParameterType.IsByRef)) {
System.Data (10)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (1)
67if (!DisallowedTypesForCopy.Any(p => type == p))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (1)
1302argumentCollection.Any<ModelItem>(p => string.Equals(p.Properties["Name"].ComputedValue, name) && !ModelItem.Equals(p, this.ReflectedObject));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (1)
657if (!MostRecentlyUsedTypes.Any<Type>(p => Type.Equals(p, result)))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (4)
908return variableContainer.Any(p => string.Equals(p.Properties[DesignTimeVariable.VariableNameProperty].ComputedValue, variableName)); 932if (!variables.Any(p => string.Equals(p.Properties[DesignTimeVariable.VariableNameProperty].ComputedValue, name))) 1414bool duplicates = this.ReflectedObject.Parent.Parent.Properties["Variables"].Collection.Any(checkForDuplicates); 1439bool duplicates = scope.Properties["Variables"].Collection.Any(checkForDuplicates);
fx\src\data\System\Data\SqlClient\SqlSecurityUtility.cs (1)
302(trustedKeyPaths.Any(
fx\src\data\System\Data\SqlClient\SqlSymmetricKeyCache.cs (1)
72(trustedKeyPaths.Any(s => s.Equals(keyInfo.keyPath, StringComparison.InvariantCultureIgnoreCase)) == false)) {
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (1)
3598Debug.Assert(!_snapshotInBuffs.Any(b => object.ReferenceEquals(b, buffer)));
System.Data.Entity (36)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (1)
1768bool generateNames = methodParams.Skip(start).Any(p => p.Name == null);
System\Data\Common\CommandTrees\Internal\Validator.cs (1)
150if (!allowedSpaces.Any(ds => ds == resultSpace))
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (1)
129assocSet.AssociationSetEnds.Any(se => se.EntitySet == targetSet)
System\Data\Common\EntitySql\FunctionOverloadResolver.cs (1)
156isAmbiguous = ranks.Any(rank =>
System\Data\Common\EntitySql\SemanticAnalyzer.cs (2)
1043if (metadataFunctionGroup.FunctionMetadata.Any(f => !f.IsComposableAttribute)) 3773Debug.Assert(aggregates.Any((aggregate) => String.CompareOrdinal(aggregate.Key, groupAggregateVarRef.VariableName) == 0),
System\Data\Common\Utils\MetadataHelper.cs (2)
337map => map.TypeMappings.Any( 338typeMap => typeMap.MappingFragments.Any(
System\Data\EntityClient\EntityConnection.cs (1)
396if (loaders.Any(loader => loader.GetType() == typeof(MetadataArtifactLoaderCompositeFile)))
System\Data\EntityModel\SchemaObjectModel\ReturnType.cs (1)
369if (row.Properties.Any(p => !p.ValidateIsScalar()))
System\Data\EntityModel\SchemaObjectModel\SchemaEnumType.cs (1)
229Debug.Assert(!_enumMembers.Any(m => !m.Value.HasValue), "member values should have been fixed up already.");
System\Data\EntityModel\SchemaObjectModel\SchemaManager.cs (1)
278if (schemaCollection.Any(s => s.SchemaVersion != XmlConstants.UndefinedVersion && s.SchemaVersion != schemaToBeAdded.SchemaVersion))
System\Data\Mapping\StorageEntityContainerMapping.cs (2)
137|| AllSetMaps.Any((StorageSetMapping setMap) => setMap.QueryView != null); 294associationSetMappings = associationSetMappings.Where(associationSetMap => ((associationSetMap.Set as AssociationSet).AssociationSetEnds.Any(associationSetEnd => associationSetEnd.EntitySet == edmEntitySet)));
System\Data\Mapping\StorageMappingItemCollection.cs (1)
720return entityContainerMaps.Any(map => map.StorageEntityContainer.Name.Equals(storageEntityContainerName, StringComparison.Ordinal));
System\Data\Mapping\StorageMappingItemLoader.cs (5)
663if (setMappingPerTable.ListForKey(table).Any(s => s.HasModificationFunctionMapping || implicitMappedAssociationSets.Any(aset=> aset == s.Set)) && 664setMappingPerTable.ListForKey(table).Any(s => !s.HasModificationFunctionMapping && !implicitMappedAssociationSets.Any(aset => aset == s.Set))) 2063if (columnRenameMappings.Any(m => m.CMember == memberName))
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryProcessor.cs (1)
126&& !(conditionValues.AllPossibleValues.Any(it => it.HasNotNull()))) //Don't add member to the projected list if the condition involves a
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (1)
341foreach (var association in associations.Where(association => association.AssociationSetEnds.Any(end => ( end.CorrespondingAssociationEndMember.RelationshipMultiplicity == RelationshipMultiplicity.One &&
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (1)
205possibleValues.Any(c => c is NegatedConstant) == false)
System\Data\Mapping\ViewGeneration\Structures\NegatedConstant.cs (1)
33Debug.Assert(!values.Any(v => v is NegatedConstant), "Negated constant values must not contain another negated constant.");
System\Data\Metadata\Helper.cs (2)
157if (associationType.AssociationEndMembers.Any( it => 167else if (associationType.AssociationEndMembers.Any(it =>
System\Data\Metadata\MappingMetadataHelper.cs (1)
62if (mapping.IsOfTypes.Any(parentType => parentType.IsAssignableFrom(childEntityType)) || mapping.Types.Contains(childEntityType))
System\Data\Metadata\MetadataWorkspace.cs (1)
423MetadataAssemblyHelper.GetNonSystemReferencedAssemblies(callingAssembly).Any(a => ObjectItemAttributeAssemblyLoader.IsSchemaAttributePresent(a))))
System\Data\Objects\ELinq\Funcletizer.cs (1)
351return () => recompileRequiredDelegates.Any(d => d());
System\Data\Objects\ELinq\Translator.cs (1)
801if (linq.Initializers.Any(i => i.Arguments.Count != 1))
System\Data\Objects\EntityEntry.cs (1)
92_cacheTypeMetadata.Members.Any(m => m.IsComplex)));
System\Data\Objects\ObjectContext.cs (1)
3224else if (!parameters.Any(p => p is DbParameter))
System\Data\Query\InternalTrees\ColumnMapFactory.cs (1)
338return renameList == null || renameList.Count == 0 || !renameList.Any(m => m.Key == member.Name) ? member.Name : renameList[member.Name].GetRename(currentType);
System\Data\Query\PlanCompiler\TransformationRules.cs (1)
200if (this.m_relOpAncestors.Any(a => IsOpNotSafeForNullSentinelValueChange(a.Op.OpType)))
System\Data\SqlClient\SqlGen\SqlGenerator.cs (1)
2485if (inputColumns.Any(c => String.Equals(c.Name, row_numberName, StringComparison.OrdinalIgnoreCase)))
System\Data\SqlClient\SqlProviderManifest.cs (1)
240edmFunction.Parameters.Any(p => Helper.IsSpatialType(p.TypeUsage)))
System.Data.Entity.Design (6)
System\Data\Entity\Design\Common\OneToOneMappingSerializer.cs (1)
194return constraint1.ToProperties.Any(c => constraint0.ToProperties.Contains(c));
System\Data\Entity\Design\EntityCodeGenerator.cs (1)
421if (textWriter.IsUserSuppliedTextWriter && !errors.Any(e => e.Severity == EdmSchemaErrorSeverity.Error))
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (1)
959nullableColumnsImplyingOneToOneMultiplicity = storeConstraint.ToProperties.Any(p => p.Nullable == false);
System\Data\Entity\Design\MetadataItemCollectionFactory.cs (2)
66if (!errors.Any(e => e.Severity == EdmSchemaErrorSeverity.Error)) 165if (!errors.Any(e => e.Severity == EdmSchemaErrorSeverity.Error))
System\Data\Entity\Design\PluralizationService\PluralizationServiceUtil.cs (1)
21return suffixes.Any(s => word.EndsWith(s, true, culture));
System.Data.Services (5)
parent\Client\System\Data\Services\Client\Common.cs (1)
58if (unsupportedTypes.Any(t => t.IsAssignableFrom(type)))
System\Data\Services\Epm\EpmContentDeSerializer.cs (1)
150return this.properties != null && this.Properties.Any(e => e.PropertyPath == propertyPath ||
System\Data\Services\Providers\ResourceType.cs (1)
1164return this.PropertiesDeclaredOnThisType.Any(p => p.Name == propertyToLookFor);
System\Data\Services\RequestQueryProcessor.cs (1)
731if (this.description.SegmentInfos.Any(si => si.TargetKind == RequestTargetKind.Link))
System\Data\Services\Serializers\MetadataSerializer.cs (1)
521WriteEpmProperties(xmlWriter, currentEpmInfos, currentEpmInfos.Any(ei => ei.SourcePath == resourceProperty.Name), true);
System.Data.Services.Client (11)
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (4)
420|| m.Arguments.Any(a => IsDisallowedExpressionForMethodCall(a))) 654|| m.Arguments.Any(a => IsDisallowedExpressionForMethodCall(a))) 668|| m.Arguments.Any(a => ClientType.CheckElementTypeIsEntity(a.Type))) 679|| iv.Arguments.Any(a => ClientType.CheckElementTypeIsEntity(a.Type) || IsCollectionProducingExpression(a)))
System\Data\Services\Client\ALinq\ProjectionRewriter.cs (1)
49!(le.Parameters[0].Type.GetProperties().Any(p => p.PropertyType == proposedParameterType))) // lambda parameter must have public property that is same as proposed type.
System\Data\Services\Client\ALinq\ResourceBinder.cs (1)
2318if (target.CustomQueryOptions.Any(c => (string)c.Key.Value == name))
System\Data\Services\Client\Binding\BindingGraph.cs (1)
683return this.vertices[source].OutgoingEdges.Any(r => r.Equals(e));
System\Data\Services\Client\Common.cs (1)
58if (unsupportedTypes.Any(t => t.IsAssignableFrom(type)))
System\Data\Services\Client\DataServiceContext.cs (2)
3430Debug.Assert(!this.bindings.Values.Any(o => (o.Source == source) && (o.SourceProperty == sourceProperty)), "only expecting one"); 5661this.ChangedEntries.Any(o => o.ContentGeneratedForSave && 0 == o.SaveResultWasProcessed) &&
System\Data\Services\Client\DataServiceKeyAttribute.cs (1)
49if (keyNames.Length == 0 || keyNames.Any(f => f == null || f.Length == 0))
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (1)
271if (!baseEntityType.Members.Any(p => p.Name == propertyPath[0]))
System.ServiceModel (1)
System\ServiceModel\Configuration\SecurityElementBase.cs (1)
840if (this.IsSecurityElementBootstrap && !this.ElementInformation.Properties.OfType<PropertyInformation>().Any(nontrivialProperty))
System.ServiceModel.Activities (2)
System\ServiceModel\Activities\InternalSendMessage.cs (2)
3236left.All(leftItem => right.Any(rightItem => equals(leftItem, rightItem))) && 3237right.All(rightItem => left.Any(leftItem => equals(leftItem, rightItem)));
System.Web (14)
Compilation\BaseCodeDomTreeGenerator.cs (1)
362Parser.BaseType.GetConstructors(BindingFlags.Instance | BindingFlags.Public).Any(c => c.GetParameters().Length > 0)) {
Compilation\BuildManager.cs (2)
839Debug.Assert(!assemblies.Any(String.IsNullOrEmpty)); 2815return _excludedCompilationPaths.Any(path => UrlPath.IsEqualOrSubpath(path.VirtualPathString, dir.VirtualPath));
ModelBinding\DataAnnotationsModelValidatorProvider.cs (1)
89!attributes.Any(a => a is RequiredAttribute)) {
ModelBinding\ValueProviderCollection.cs (1)
17return this.Any(vp => vp.ContainsPrefix(prefix));
Routing\ContentPathSegment.cs (1)
14return Subsegments.Any<PathSubsegment>(seg => (seg is ParameterSubsegment) && (((ParameterSubsegment)seg).IsCatchAll));
Routing\HttpMethodConstraint.cs (2)
40return AllowedMethods.Any(method => String.Equals(method, httpContext.Request.HttpMethod, 68return AllowedMethods.Any(method => String.Equals(method, parameterValueString,
Routing\RouteParser.cs (1)
258foundCatchAllParameter = subsegments.Any<PathSubsegment>(seg => (seg is ParameterSubsegment) && (((ParameterSubsegment)seg).IsCatchAll));
Security\MachineKey.cs (2)
163if (purposes != null && purposes.Any(String.IsNullOrWhiteSpace)) { 197if (purposes != null && purposes.Any(String.IsNullOrWhiteSpace)) {
UI\WebControls\FileUpload.cs (1)
180return PostedFiles.Any(f => f.ContentLength > 0);
UI\WebControls\MenuRendererStandards.cs (1)
596if (_styles.Any(s => !s.Empty)) {
Util\QueryableUtility.cs (1)
25return _orderMethods.Any(method => IsQueryableMethod(expression, method));
System.Web.DynamicData (2)
DynamicData\ModelProviders\EFAssociationProvider.cs (1)
66IsPrimaryKeyInThisTable = foreignKeyNames.Any(fkName => primaryKeyNames.Contains(fkName, StringComparer.OrdinalIgnoreCase));
DynamicData\ModelProviders\EFColumnProvider.cs (1)
50return navigationProperties.Any(n => EFAssociationProvider.GetDependentPropertyNames(n, !IsPrimaryKey /* checkRelationshipType */).Contains(property.Name));
System.Web.Extensions (1)
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (1)
649if (httpBindingEx == null || !httpBindingEx.IsHttpBindingContract(contract) || serviceEndpointList.Any(endpoint => endpoint.Contract == contract))
XamlBuildTask (3)
Microsoft\Build\Tasks\Xaml\XamlValidatingReader.cs (3)
270if (!collectionType.AllowedContentTypes.Any(contentType => type.CanAssignTo(contentType))) 282if (!collectionType.AllowedContentTypes.Any(contentType => type.CanAssignTo(contentType))) 356if (!collectionType.AllowedContentTypes.Any(contentType => contentType.IsNullable))