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