152 references to ToArray
System.Activities (9)
System\Activities\Debugger\DebugInfo.cs (2)
184}).ToArray(); 246.ToArray();
System\Activities\Debugger\Symbol\SymbolHelper.cs (1)
129return checksum == null ? string.Empty : string.Join(string.Empty, checksum.Select(x => x.ToString("X2")).ToArray());
System\Activities\ExpressionUtilities.cs (1)
259parameters = parametersCollection.ToArray<ParameterExpression>();
System\Activities\Statements\MethodResolver.cs (5)
229.ToArray(); 231Type[] genericTypeArguments = this.GenericTypeArguments.ToArray(); 462methodCandidates = methods.ToArray(); 467methodCandidates = match.Where(m => m.ContainsGenericParameters == false).ToArray(); 480MethodBase[] methodsDeclaredHere = methodCandidates.Where(mb => mb.DeclaringType == declaringType).ToArray();
System.Activities.Presentation (19)
System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (1)
182return new AttributeCollection(this.GetType().GetCustomAttributes(false).OfType<Attribute>().ToArray());
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (2)
778.ToArray(); 802this.itemsToExpand = visualItems.TakeWhile(p => firstVisibleItem != p).Concat(new ModelItem[] { firstVisibleItem }).ToArray();
System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyCollectionImpl.cs (1)
111propertyDescriptors = new PropertyDescriptorCollection(mergedProperties.Concat(browsableAttachedProperties).ToArray(), true);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (3)
313ModelItem[] keys = modelDictionary.Keys.ToArray<ModelItem>(); 1214.Union(new PropertyDescriptor[] { new ItemsCollectionPropertyDescriptor(type) }).ToArray()); 1221.Union(new PropertyDescriptor[] { new ItemsCollectionPropertyDescriptor(type) }).ToArray());
System.Activities.Presentation\System\Activities\Presentation\NamespaceSettingsHandler.cs (1)
184.Union(new PropertyDescriptor[] { this.ImportDescriptor }).ToArray());
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (5)
803PropertyAttributes = TypeDescriptor.GetAttributes(typeof(VBIdentifierName)).OfType<Attribute>().ToArray(), 815PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Type)).OfType<Attribute>().ToArray(), 827PropertyAttributes = TypeDescriptor.GetAttributes(typeof(PropertyKind)).OfType<Attribute>().Union( new Attribute[] { new EditorAttribute(typeof(DirectionPropertyEditor), typeof(PropertyValueEditor)) }).ToArray(), 839PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Activity)).OfType<Attribute>().Union(new Attribute[] { new EditorAttribute(typeof(DesignObjectWrapperDynamicPropertyEditor), typeof(PropertyValueEditor)), new EditorReuseAttribute(false) }).ToArray(), 872).ToArray(),
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (5)
1012PropertyAttributes = TypeDescriptor.GetAttributes(typeof(VBIdentifierName)).OfType<Attribute>().ToArray(), 1024PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Type)).OfType<Attribute>().ToArray(), 1036PropertyAttributes = TypeDescriptor.GetAttributes(typeof(ModelItem)).OfType<Attribute>().Union(new Attribute[] { new EditorAttribute(typeof(ScopeValueEditor), typeof(PropertyValueEditor)) }).ToArray(), 1048PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Activity)).OfType<Attribute>().Union(new Attribute[] { new EditorAttribute(typeof(DesignObjectWrapperDynamicPropertyEditor), typeof(DialogPropertyValueEditor)), new EditorReuseAttribute(false) }).ToArray(), 1081PropertyAttributes = TypeDescriptor.GetAttributes(typeof(VariableModifiers)).OfType<Attribute>().ToArray(),
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
2063double[] doubleArray = values.OfType<double>().ToArray<double>();
System.ComponentModel.DataAnnotations (2)
DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (2)
74Attribute[] newAttributes = TypeDescriptor.GetAttributes(AssociatedMetadataType).OfType<Attribute>().ToArray(); 132String.Join(", ", buddyTypeMembers.ToArray())));
System.Core (5)
System\Linq\Expressions\ExpressionVisitor.cs (1)
330return new ReadOnlyCollection<T>(sequence.ToArray());
System\Linq\Parallel\QueryOperators\QueryOperator.cs (1)
212return ExceptionAggregator.WrapEnumerable(opSequentialWithCancelChecks, querySettings.CancellationState).ToArray();
System\Linq\ParallelEnumerable.cs (1)
4863return ToList<TSource>(source).ToArray<TSource>();
System\Linq\SequenceQuery.cs (2)
197Expression[] argArray = args.ToArray(); 326MethodInfo[] methods = type.GetMethods(flags).Where(m => m.Name == name).ToArray();
System.Data (20)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (1)
182return new AttributeCollection(this.GetType().GetCustomAttributes(false).OfType<Attribute>().ToArray());
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (2)
778.ToArray(); 802this.itemsToExpand = visualItems.TakeWhile(p => firstVisibleItem != p).Concat(new ModelItem[] { firstVisibleItem }).ToArray();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyCollectionImpl.cs (1)
111propertyDescriptors = new PropertyDescriptorCollection(mergedProperties.Concat(browsableAttachedProperties).ToArray(), true);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (3)
313ModelItem[] keys = modelDictionary.Keys.ToArray<ModelItem>(); 1214.Union(new PropertyDescriptor[] { new ItemsCollectionPropertyDescriptor(type) }).ToArray()); 1221.Union(new PropertyDescriptor[] { new ItemsCollectionPropertyDescriptor(type) }).ToArray());
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\NamespaceSettingsHandler.cs (1)
184.Union(new PropertyDescriptor[] { this.ImportDescriptor }).ToArray());
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (5)
803PropertyAttributes = TypeDescriptor.GetAttributes(typeof(VBIdentifierName)).OfType<Attribute>().ToArray(), 815PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Type)).OfType<Attribute>().ToArray(), 827PropertyAttributes = TypeDescriptor.GetAttributes(typeof(PropertyKind)).OfType<Attribute>().Union( new Attribute[] { new EditorAttribute(typeof(DirectionPropertyEditor), typeof(PropertyValueEditor)) }).ToArray(), 839PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Activity)).OfType<Attribute>().Union(new Attribute[] { new EditorAttribute(typeof(DesignObjectWrapperDynamicPropertyEditor), typeof(PropertyValueEditor)), new EditorReuseAttribute(false) }).ToArray(), 872).ToArray(),
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (5)
1012PropertyAttributes = TypeDescriptor.GetAttributes(typeof(VBIdentifierName)).OfType<Attribute>().ToArray(), 1024PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Type)).OfType<Attribute>().ToArray(), 1036PropertyAttributes = TypeDescriptor.GetAttributes(typeof(ModelItem)).OfType<Attribute>().Union(new Attribute[] { new EditorAttribute(typeof(ScopeValueEditor), typeof(PropertyValueEditor)) }).ToArray(), 1048PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Activity)).OfType<Attribute>().Union(new Attribute[] { new EditorAttribute(typeof(DesignObjectWrapperDynamicPropertyEditor), typeof(DialogPropertyValueEditor)), new EditorReuseAttribute(false) }).ToArray(), 1081PropertyAttributes = TypeDescriptor.GetAttributes(typeof(VariableModifiers)).OfType<Attribute>().ToArray(),
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
2063double[] doubleArray = values.OfType<double>().ToArray<double>();
fx\src\data\System\Data\SqlClient\SqlCommand.cs (1)
3629_sqlRPCParameterEncryptionReqArray = describeParameterEncryptionRpcOriginalRpcMap.Keys.ToArray();
System.Data.Entity (34)
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (2)
198this.EnterScope(newFormals.ToArray()); // ToArray: Don't pass the List instance directly to OnEnterScope 755result = CqtBuilder.New(newType, System.Linq.Enumerable.ToArray(newArguments));
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (1)
321return function.Parameters.Where(p => p.Mode == ParameterMode.In || p.Mode == ParameterMode.InOut).ToArray();
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (2)
265AppendArguments(funcInfo, func.Parameters.Select(fp => fp.Name).ToArray(), args); 541AppendArguments(lambdaInfo, expression.Lambda.Variables.Select(v => v.VariableName).ToArray(), expression.Arguments);
System\Data\Common\EntitySql\SemanticAnalyzer.cs (6)
1609e.RelationshipMultiplicity == RelationshipMultiplicity.ZeroOrOne)).ToArray(); 1648!e.EdmEquals(toEnd)).ToArray(); 1748(toEnd == null || !e.EdmEquals(toEnd))).ToArray(); 1769.Where (e => !e.EdmEquals(fromEnd)).ToArray(); 2581var mSetExprs = msetCtor.ExprList.Select(e => ConvertValueExpressionAllowUntypedNulls(e, sr)).ToArray(); 2583var multisetTypes = mSetExprs.Where(e => e != null).Select(e => e.ResultType).ToArray();
System\Data\Common\Utils\Boolean\ConversionContext.cs (1)
141Vertex[] children = domain.Select(element => range.Contains(element) ? Vertex.One : Vertex.Zero).ToArray();
System\Data\Common\Utils\Set.cs (1)
167return _values.ToArray();
System\Data\Mapping\FunctionImportMappingComposable.cs (2)
56m_commandParameters = functionImport.Parameters.Select(p => TypeHelpers.GetPrimitiveTypeUsageForScalar(p.TypeUsage).Parameter(p.Name)).ToArray(); 388DbExpression predicate = Helpers.BuildBalancedTreeInPlace(conditions.Select(c => GeneratePredicate(c, row)).ToArray(), (prev, next) => prev.And(next));
System\Data\Mapping\FunctionImportMappingNonComposable.cs (1)
53.ToArray());
System\Data\Mapping\ViewGeneration\BasicViewGenerator.cs (1)
334var nonTrivial = extentMap.KeyValuePairs.Where(m => m.Value.Count > 1).ToArray();
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (2)
335BoolExpression exposedRegionCondition = BoolExpression.CreateOr(whereClauses.ToArray()); 501usedCells.Select(wrapper => new LeafCellTreeNode(_context, wrapper)).ToArray());
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (1)
196ExtentCqlBlock result = new ExtentCqlBlock(cellQuery.Extent, cellQuery.SelectDistinctFlag, totalProjectedSlots.ToArray(),
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (1)
304foreach (var path in domainMap.Keys.ToArray())
System\Data\Metadata\Converter.cs (1)
956.ToArray();
System\Data\Metadata\Edm\Provider\EdmProviderManifestFunctionBuilder.cs (1)
163FunctionParameter[] parameters = parameterDefinitions.Select(paramDef => CreateParameter(paramDef.Value, paramDef.Key)).ToArray();
System\Data\Metadata\MetadataWorkspace.cs (1)
83MetadataArtifactLoader composite = MetadataArtifactLoader.CreateCompositeFromFilePaths(paths.ToArray(), "", new CustomAssemblyResolver(wildcardAssemblies, resolveReference));
System\Data\Objects\ELinq\ExpressionVisitorHelpers.cs (1)
41return new ReadOnlyCollection<T>(sequence.ToArray());
System\Data\Objects\ELinq\MethodCallTranslator.cs (3)
871linqArguments = call.Arguments.ToArray(); 1424return parent.TranslateIntoCanonicalFunction(call.Method.Name, call, call.Arguments.ToArray()); 1458return parent.TranslateIntoCanonicalFunction(s_methodNameMap[call.Method], call, call.Arguments.ToArray());
System\Data\Objects\ELinq\SpatialMethodCallTranslator.cs (2)
240arguments = call.Arguments.ToArray(); 245arguments = new[] { call.Object }.Concat(call.Arguments).ToArray();
System\Data\Objects\Internal\EntityProxyFactory.cs (1)
299return proxyTypes.ToArray();
System\Data\Query\InternalTrees\ColumnMapFactory.cs (1)
177String.Join(", ", memberGroup.Select(tuple => tuple.Item3.Name).ToArray())));
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (2)
193foreach (var paramVar in m_command.Vars.OfType<ParameterVar>().Where(v => md.TypeSemantics.IsEnumerationType(v.Type) || md.TypeSemantics.IsStrongSpatialType(v.Type)).ToArray()) 706PropertyRef[] propRefs = unnestOpTableTypeInfo.PropertyRefList.ToArray();
System.Data.Entity.Design (4)
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (2)
73var storeContainers = storeItemCollection.GetItems<EntityContainer>().ToArray(); 122_storeFunctions = storeFunctions != null ? storeFunctions.ToArray() : null;
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (1)
1192var excludedKeyColumns = (primaryKeys != null ? primaryKeys.Intersect(excludedColumns) : new string[0]).ToArray();
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (1)
633return GetViewStringsAppendToStringBuilder(SplitViewStrings(viewString).ToArray<string>());
System.Data.Linq (15)
DataContext.cs (1)
1616return tracked.GetModifiedMembers().ToArray();
DataServices.cs (2)
244System.Data.Linq.SqlClient.Translator.WhereClauseFromSourceAndKeys(thisSource, association.ThisKey.ToArray(), keyValues) 527object[] values = keys.OrderBy(kv => kv.Key.Ordinal).Select(kv => kv.Value).ToArray();
DataShape.cs (1)
69LambdaExpression lambda = Expression.Lambda(op, expression.Parameters.ToArray());
Mapping\AttributedMetaModel.cs (2)
602FieldInfo[] fis = TypeSystem.GetAllFields(this.type, flags).ToArray(); 620PropertyInfo[] pis = TypeSystem.GetAllProperties(this.type, flags).ToArray();
Mapping\MappedMetaModel.cs (2)
650FieldInfo[] fis = TypeSystem.GetAllFields(this.type, flags).ToArray(); 671PropertyInfo[] pis = TypeSystem.GetAllProperties(this.type, flags).ToArray();
SqlClient\Query\QueryConverter.cs (4)
675cpArray.Accessor.Parameters.ToArray() 714Expression.Lambda(Expression.Convert(cp.Accessor.Body, type), cp.Accessor.Parameters.ToArray()), 1958return n.Expressions.ToArray(); 1965return obs.Select(o => Expression.Constant(o, elemType)).ToArray();
SqlClient\Query\SqlBinder.cs (1)
394return types.ToArray();
SqlClient\Query\Translator.cs (2)
161return WhereClauseFromSourceAndKeys(otherSource, association.OtherKey.ToArray(), keyValues); 227return WhereClauseFromSourceAndKeys(this.otherSouce, this.association.OtherKey.ToArray(), keyValues);
System.Data.Services.Client (5)
System\Data\Services\Client\ALinq\ResourceSetExpression.cs (1)
326string result = "SourceAccessors=[" + string.Join(",", this.SourceAccessors.Keys.ToArray());
System\Data\Services\Client\ClientConvert.cs (1)
394return Util.ContainsReference(namedTypesMap.Values.ToArray(), type);
System\Data\Services\Client\DataServiceContext.cs (1)
2325ClientType.ClientProperty[] keys = clientType.Properties.Where<ClientType.ClientProperty>(ClientType.ClientProperty.GetKeyProperty).ToArray();
System\Data\Services\Client\ProjectionPlanCompiler.cs (2)
555string[] expressionNames = expressions.Skip(1).Select(e => ((MemberExpression)e).Member.Name).ToArray(); 635string[] names = (entryPath.Where(m => m.Member != null).Select(m => m.Member)).ToArray();
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (1)
62object[] keys = emitter.Item.KeyMembers.Select(km => (object) km.Name).ToArray();
System.Runtime.DurableInstancing (4)
System\Runtime\DurableInstancing\InstanceStore.cs (3)
175handlesToNotify = normal.BoundHandles.ToArray(); 257return this.owners.Values.Select(weakReference => (InstanceOwner)weakReference.Target).Where(owner => owner != null).ToArray(); 276return owner.Events.Values.ToArray();
System\Runtime\PersistencePipeline.cs (1)
407this.pendingModules = this.pipeline.modules.Where(value => value.IsIOParticipant).ToArray();
System.ServiceModel (6)
System\ServiceModel\Channels\HttpHeadersWebHeaderCollection.cs (5)
59return this.AllHeaders.Select(header => header.Key).ToArray(); 81string[] values = header.Value.ToArray(); 221return this.GetHeaderAt(index).Value.ToArray(); 239builder.AppendLine(GetSingleValue(header.Value.ToArray())); 265return values.SelectMany(str => str.Split(stringSplitArray, StringSplitOptions.None)).ToArray();
System\ServiceModel\Channels\RedirectionException.cs (1)
111info.AddValue("Locations", this.Locations.ToArray<RedirectionLocation>(), typeof(RedirectionLocation[]));
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\CollectibleLRUCache.cs (1)
254CollectibleNode[] array = directory.Values.ToArray();
System.ServiceModel.Activities (2)
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (1)
262foreach (PersistenceContext context in this.instanceCache.Values.ToArray())
System\ServiceModel\Activities\Receive.cs (1)
471return new FaultFormatter(this.KnownTypes.ToArray());
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\HelpHtmlBuilder.cs (1)
423Uri result = template.BindByPosition(baseUri, template.PathSegmentVariableNames.Concat(template.QueryValueVariableNames).Select(name => "{" + name + "}").ToArray());
System.Web (16)
Compilation\AssemblyResolver.cs (2)
240rar.SearchPaths = searchPaths.ToArray(); 243rar.TargetFrameworkDirectories = targetFrameworkDirectories.ToArray();
Compilation\ClientBuildManagerTypeDescriptionProviderBridge.cs (4)
36return reflectionTypes.ToArray(); 82return names.ToArray(); 105return (from p in runtimeProperties where reflectionPropertyNames.Contains(p.Name) select p.Name).ToArray(); 119return (from e in runtimeEvents where reflectionEventNames.Contains(e.Name) select e.Name).ToArray();
Hosting\ApplicationManager.cs (2)
620allAppDomainContexts = _appDomains.Values.ToArray(); 1049hostingParameters.ClrQuirksSwitches = clrQuirks.ToArray();
ModelBinding\ArrayModelBinder`1.cs (1)
8bindingContext.Model = newCollection.ToArray();
ModelBinding\ModelBinderUtil.cs (1)
53return rawValueAsEnumerable.Cast<object>().ToArray();
ModelBinding\PrefixContainer.cs (1)
20_sortedValues = values.Where(val => val != null).ToArray();
Routing\ParsedRoute.cs (1)
494string remainingRequest = String.Join(String.Empty, remainingRequestSegments.ToArray());
UI\TargetFrameworkUtil.cs (3)
164return reflectionTypes.ToArray(); 380return new PropertyDescriptorCollection(filteredPropertyDescriptors.ToArray()); 435return new EventDescriptorCollection(filteredEventDescriptors.ToArray());
WebSockets\AspNetWebSocketManager.cs (1)
46sockets = _activeSockets.ToArray();
System.Web.DynamicData (3)
DynamicData\MetaTable.cs (2)
137var fkColumnNamesArray = Columns.OfType<MetaForeignKeyColumn>().Select(column => column.Name).ToArray(); 232_primaryKeyColumnNames = PrimaryKeyColumns.Select(c => c.Name).ToArray();
DynamicData\Util\DictionaryCustomTypeDescriptor.cs (1)
29_properties = new PropertyDescriptorCollection(dictionaryProps.ToArray());
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceView.cs (1)
763propTable = new EntityDataSourceViewSchema(results, entityType.KeyMembers.Select(x => x.Name).ToArray());
System.Web.Extensions (4)
UI\WebControls\Dynamic.cs (3)
227this.properties = properties.ToArray(); 1461ToArray(); 1465ToArray();
UI\WebResourceUtil.cs (1)
128_table[g.Key] = g.ToArray();