23 references to SingleOrDefault
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (1)
881if (null == this.typePresenter.MostRecentlyUsedTypes.SingleOrDefault<Type>(p => Type.Equals(p, (Type)value)))
System.Activities.Presentation\System\Activities\Presentation\Xaml\ObjectToSourceLocationMapping.cs (1)
110KeyValuePair<SourceLocation, ModelItem>? matchingMappingRecord = sourceLocationToModelItemMapping.SingleOrDefault(kvp => object.ReferenceEquals(kvp.Value, modelItem));
System.Data (2)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (1)
881if (null == this.typePresenter.MostRecentlyUsedTypes.SingleOrDefault<Type>(p => Type.Equals(p, (Type)value)))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ObjectToSourceLocationMapping.cs (1)
110KeyValuePair<SourceLocation, ModelItem>? matchingMappingRecord = sourceLocationToModelItemMapping.SingleOrDefault(kvp => object.ReferenceEquals(kvp.Value, modelItem));
System.Data.Entity (3)
System\Data\Metadata\Helper.cs (2)
161return associationType.AssociationEndMembers.SingleOrDefault(it => 171return associationType.AssociationEndMembers.SingleOrDefault(it =>
System\Data\Objects\ELinq\MethodCallTranslator.cs (1)
2692var lojRightValueSource = crossApplyInputRowType.Properties.SingleOrDefault(p => p.Name == lojRight.Property.Name);
System.Data.Linq (1)
SqlClient\SqlProvider.cs (1)
1983metaType = mt.InheritanceTypes.SingleOrDefault(it => it.Type == typeof(T));
System.Data.Services (5)
System\Data\Services\Epm\EpmCustomContentDeSerializer.cs (1)
75.SingleOrDefault(s => s.SegmentNamespaceUri == namespaceUri && s.SegmentName == elementName);
System\Data\Services\Epm\EpmSourceTree.cs (1)
81foundProperty = activeSubProperties.SingleOrDefault(e => e.PropertyName == propertyName);
System\Data\Services\Epm\EpmTargetTree.cs (1)
95EpmTargetPathSegment foundSegment = activeSubSegments.SingleOrDefault(
System\Data\Services\Providers\ResourceType.cs (1)
1148Debug.Assert(this.OwnEpmInfo.SingleOrDefault(attr => Object.ReferenceEquals(epmAttr, attr)) != null, "Own epmInfo should already have the given instance");
System\Data\Services\WebUtil.cs (1)
1346return inputType.IsGenericType && WebUtil.GenericExpandedWrapperTypes.SingleOrDefault(x => x.Type == inputType.GetGenericTypeDefinition()) != null;
System.Data.Services.Client (5)
parent\Server\System\Data\Services\Epm\EpmSourceTree.cs (1)
81foundProperty = activeSubProperties.SingleOrDefault(e => e.PropertyName == propertyName);
parent\Server\System\Data\Services\Epm\EpmTargetTree.cs (1)
95EpmTargetPathSegment foundSegment = activeSubSegments.SingleOrDefault(
System\Data\Services\Client\Binding\BindingEntityInfo.cs (1)
239.SingleOrDefault(x => x.PropertyInfo.PropertyName == sourceProperty);
System\Data\Services\Client\Binding\BindingGraph.cs (1)
301.SingleOrDefault(e => e.Source.Item == source && e.Label == relation);
System\Data\Services\Client\DataServiceContext.cs (1)
3312EpmSourcePathSegment matchedSegment = currentSegment != null ? currentSegment.SubProperties.SingleOrDefault(s => s.PropertyName == property.PropertyName) : null;
System.Data.Services.Design (3)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (3)
232EdmMember entityProperty = baseEntityType.Members.SingleOrDefault(p => p.Name == propertyPath[0]); 285entityProperty = baseEntityType.Members.SingleOrDefault(p => p.Name == pathSegment); 389EdmMember entityProperty = entityType.Properties.SingleOrDefault(p => p.DeclaringType == entityType && p.Name == member.Name);
System.Web (1)
Configuration\BrowserCapabilitiesCodeGenerator.cs (1)
241ServiceController controller = services.SingleOrDefault(s => String.Equals(s.ServiceName, "W3SVC", StringComparison.OrdinalIgnoreCase));
System.Web.DynamicData (1)
DynamicData\MetaModel.cs (1)
435table = Tables.SingleOrDefault(t => t.EntityType == entityType);