Update Reference Sources to .NET Framework 4.6.1
[mono.git] / mcs / class / referencesource / System.Activities.Core.Presentation / System / Activities / Core / Presentation / Factories / GenericParallelForEachWithBodyFactory.cs
1 //------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation.  All rights reserved.
3 //------------------------------------------------------------
4
5 namespace System.Activities.Core.Presentation.Factories
6 {
7     using System.Activities.Presentation;
8     using System.Windows;
9
10     public sealed class ParallelForEachWithBodyFactory<T> : IActivityTemplateFactory
11     {
12         public Activity Create(DependencyObject target)
13         {
14             return new System.Activities.Statements.ParallelForEach<T>()
15             {
16                 Body = new ActivityAction<T>()
17                 {
18                     Argument = new DelegateInArgument<T>()
19                     {
20                         Name = "item"
21                     }
22                 }
23             };
24         }
25     }
26 }