111 references to First
System.Activities.Core.Presentation (9)
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (7)
54ModelItem item = itemsToCopy.First(); 103if (itemsToDelete.Count == 1 && itemsToDelete.First().ItemType == typeof(Transition)) 169if (itemsToPaste.Count == 1 && itemsToPaste.First() is Transition) 279if (itemsToPaste.Count == 1 && itemsToPaste.First() is Transition) 281if (metaData == null || metaData.Count != 1 || !(metaData.First() is string)) 287ModelItem destinationState = FindState(metaData.First() as string); 305Transition pastedTransition = itemsToPaste.First() as Transition;
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (2)
1144ConnectionPointsAdorner adorner = (ConnectionPointsAdorner)adornersRemoved.First(); 2437if ((draggedModelItems.Count<ModelItem>() == 1 && StateContainerEditor.IsFinalState(draggedModelItems.First<ModelItem>()))
System.Activities.Presentation (12)
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (2)
389return droppedObjects.First(); 523return draggedModelItems.First();
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (2)
141return (this.Parents.Count() > 0) ? this.Parents.First() : null; 170return (this.sources.Count > 0) ? this.sources.First() : null;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (2)
302return (this.Parents.Count() > 0) ? this.Parents.First() : null; 328return (this.sources.Count > 0) ? this.sources.First() : null;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (2)
133return (this.Parents.Count() > 0) ? this.Parents.First() : null; 164return (this.sources.Count > 0) ? this.sources.First() : null;
System.Activities.Presentation\System\Activities\Presentation\UndoEngine.cs (1)
330UndoUnit unitToRedo = this.containerUndoUnit.RedoList.First();
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (1)
495DesignTimeArgument wrapper = oldDuplicates.First<DesignTimeArgument>();
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (1)
183DesignTimeVariable wrapper = oldDuplicates.First<DesignTimeVariable>();
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
1003ModelItem movedItem = modelItemsToDrag.First<ModelItem>();
System.Core (2)
Microsoft\Scripting\Compiler\LabelInfo.cs (1)
171LabelScopeInfo def = _definitions.First();
System\Linq\ParallelEnumerable.cs (1)
5458.First();
System.Data (12)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (2)
389return droppedObjects.First(); 523return draggedModelItems.First();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (2)
141return (this.Parents.Count() > 0) ? this.Parents.First() : null; 170return (this.sources.Count > 0) ? this.sources.First() : null;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (2)
302return (this.Parents.Count() > 0) ? this.Parents.First() : null; 328return (this.sources.Count > 0) ? this.sources.First() : null;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (2)
133return (this.Parents.Count() > 0) ? this.Parents.First() : null; 164return (this.sources.Count > 0) ? this.sources.First() : null;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\UndoEngine.cs (1)
330UndoUnit unitToRedo = this.containerUndoUnit.RedoList.First();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (1)
495DesignTimeArgument wrapper = oldDuplicates.First<DesignTimeArgument>();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (1)
183DesignTimeVariable wrapper = oldDuplicates.First<DesignTimeVariable>();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
1003ModelItem movedItem = modelItemsToDrag.First<ModelItem>();
System.Data.Entity (41)
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (1)
439EdmProperty discriminatorProp = (EdmProperty)((DbPropertyExpression)((DbComparisonExpression)discriminatorPredicates.First().Value).Left).Property;
System\Data\Common\Utils\Boolean\BoolExpr.cs (1)
466internal BoolExpr<T_Identifier> Child { get { return Children.First(); } }
System\Data\Mapping\FunctionImportMapping.cs (5)
173Debug.Assert(structuralTypeMappings.First() is FunctionImportComplexTypeMapping, "only two types can have renames, complexType and entityType"); 179foreach (var rename in complexTypeMappings.First().ColumnsRenameList) 184complexTypeMappings.First().ReturnType, 233var lineInfo = unreachableEntityType.Value.First(); 247var lineInfo = unreachableIsTypeOf.Value.First();
System\Data\Mapping\StorageAssociationSetMapping.cs (3)
66if ((this.TypeMappings.Count != 0) && (this.TypeMappings.First().MappingFragments.Count != 0)) 68return this.TypeMappings.First().MappingFragments.First().TableSet;
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (1)
193generatedView = extentMappingViews.AllValues.First();
System\Data\Mapping\StorageMappingItemLoader.cs (3)
1315entityType = isOfTypeEntityTypes.First(); 1320entityType = entityTypes.First(); 4316int ordinal = constraint.FromProperties.IndexOf((EdmProperty)m_members.First());
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingSimplifier.cs (1)
142T_Tile remainingView = remainingViews.First();
System\Data\Mapping\ViewGeneration\Structures\BoolLiteral.cs (1)
194ScalarConstant scalar = (ScalarConstant)range.First();
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (4)
235StorageScalarPropertyMapping scalarPropertyMap = scalarPropertyMaps.First(); 260StorageMappingFragment mapFragment = colocatedAssociationSetMap.TypeMappings.First().MappingFragments.First(); 272return otherEnds.First();
System\Data\Mapping\ViewGeneration\Structures\LeftCellWrapper.cs (3)
135return m_mergedCells.First(); 156return m_mergedCells.First().GetLeftQuery(m_viewTarget).Extent; 195AssociationSetEnd setEnd = ((AssociationSet)RightExtent).AssociationSetEnds[ends.First().Name];
System\Data\Mapping\ViewGeneration\Structures\OpCellTreeNode.cs (2)
594FragmentQuery fragmentQuery = isLeft ? children.First().LeftFragmentQuery : children.First().RightFragmentQuery;
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (4)
293int firstProjectedPosition = projectPositions.First(); 311LeftCellWrapper firstLeftCWrapper = nonAssociationWrappers.First(); 325leftCellWrapper.Cells.First(), "")); 669var firstMember = members.First();
System\Data\Objects\ELinq\CompiledELinqQueryState.cs (2)
218Funcletizer funcletizer = Funcletizer.CreateCompiledQueryEvaluationFuncletizer(this.ObjectContext, lambda.Parameters.First(), lambda.Parameters.Skip(1).ToList().AsReadOnly()); 243parameterLookup.Add(query.Parameters.First(), objectContext);
System\Data\Objects\ELinq\ObjectQueryProvider.cs (1)
203return (sequence) => { return Enumerable.First(sequence); };
System\Data\Objects\EntityEntry.cs (2)
1719reference.SetCachedForeignKey(pair.Value.First(), this); 2390T existingRelatedObject = objectsInRelatedEnd.First();
System\Data\Objects\Internal\ForeignKeyFactory.cs (3)
80ReferentialConstraint constraint = ((AssociationType)relatedEnd.RelationMetadata).ReferentialConstraints.First(); 103dependentEntry.GetOriginalEntityValue(dependentProps.First().Name) : 104dependentEntry.GetCurrentEntityValue(dependentProps.First().Name);
System\Data\Objects\ObjectStateManager.cs (2)
3201IEntityWrapper addedEntity = pair.Value.First(); 3225if (addedKey != newFks.First())
System\Data\Query\PlanCompiler\ProjectionPruner.cs (1)
549Node keyNode = constantKeys.First();
System\Data\SqlClient\SqlGen\SqlGenerator.cs (1)
1942var value = realValues.First();
System.Data.Entity.Design (1)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
290return (System.Data.EntityModel.SchemaObjectModel.SchemaElement)schemaTypes.First();
System.Data.Services (3)
System\Data\Services\Providers\BasicExpandProvider.cs (1)
1505Type projectedSkipTokenType = this.elementType.GetGenericArguments().Skip(this.children.Count + 1).First();
System\Data\Services\Serializers\MetadataSerializer.cs (2)
504var currentEpmInfos = type.OwnEpmInfo.Where(e => e.SourcePath.Split('/').First() == resourceProperty.Name); 520var currentEpmInfos = type.OwnEpmInfo.Where(e => e.SourcePath.Split('/').First() == resourceProperty.Name);
System.Data.Services.Client (5)
System\Data\Services\Client\ALinq\DataServiceQueryProvider.cs (1)
118return query.AsEnumerable().First();
System\Data\Services\Client\ALinq\ResourceBinder.cs (2)
319return comparer.Equals(left.First(), right.First());
System\Data\Services\Client\ALinq\UriWriter.cs (1)
247this.uriBuilder.Append(this.ExpressionToString(rse.KeyPredicate.Values.First()));
System\Data\Services\Client\ClientType.cs (1)
259select a).First<string>();
System.IdentityModel (4)
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (2)
1348authenticationMethod = claimCollection.First<Claim>().Value; 1355authenticationInstant = claimCollection.First<Claim>().Value;
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (2)
366authenticationMethod = claimCollection.First<Claim>().Value; 374authenticationInstant = claimCollection.First<Claim>().Value;
System.ServiceModel (1)
System\ServiceModel\Dispatcher\TaskExtensions.cs (1)
30m.IsGenericMethod && m.Name == TaskAsAsyncResultMethodName).First();
System.ServiceModel.Web (10)
System\ServiceModel\Dispatcher\HelpHtmlBuilder.cs (9)
89firstTr.Descendants(HtmlTdElementName).First().Add(new XAttribute(HtmlRowspanAttributeName, rowspan)); 99firstTr.Descendants(HtmlTdElementName).First().Add(new XAttribute(HtmlRowspanAttributeName, rowspan)); 101document.Descendants(HtmlBodyElementName).First().Add(new XElement(HtmlDivElementName, new XAttribute(HtmlIdAttributeName, HtmlContentClass), 133document.Descendants(HtmlBodyElementName).First().Add(div); 135CreateOperationSamples(document.Descendants(HtmlDivElementName).First(), operationInfo); 154document.Descendants(HtmlBodyElementName).First().Add(div); 193document.Descendants(HtmlBodyElementName).First().Add(div); 211document.Descendants(HtmlBodyElementName).First().Add(div); 222document.Descendants(HtmlBodyElementName).First().Add(div);
System\ServiceModel\Dispatcher\HelpPage.cs (1)
266return parts.First().Type;
System.Web.DynamicData (3)
DynamicData\MetaTable.cs (3)
346return MetaModel.CreateSimpleModel(entityType).Tables.First(); 350return MetaModel.CreateSimpleModel(typeDescriptor).Tables.First(); 583Columns.First();
System.Web.Entity (3)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
686string key = exceptions.Keys.First();
System\Data\WebControls\EntityDataSourceView.cs (2)
929string key = exceptions.Keys.First(); 1048int numEntities = (_originalProperties.First().Value).Count;
System.Web.Extensions (4)
UI\WebControls\Expressions\SearchExpression.cs (1)
57string query = Convert.ToString(values.First().Value, CultureInfo.CurrentCulture);
UI\WebControls\LinqDataSourceView.cs (2)
637EntityType, errors.Values.First().Message), 886AtlasWeb.LinqDataSourceView_ValidationFailed, oldDataObject.GetType(), validateExceptions.Values.First().Message), validateExceptions);
UI\WebResourceUtil.cs (1)
119select s.Length).First();
System.Workflow.Runtime (1)
System\Activities\Statements\Interop.cs (1)
311metadata.AddValidationError(string.Format(CultureInfo.CurrentCulture, ExecutionStringManager.AttemptToBindUnknownProperties, this.DisplayName, this.extraDynamicArguments.First()));