[reflection] Coop handles icalls in System.Reflection and System.RuntimeTypeHandle...
[mono.git] / mcs / class / referencesource / System.Activities.Presentation / System.Activities.Presentation / System / Activities / Presentation / DynamicActivityPropertyUtilities.cs
1 //----------------------------------------------------------------
2 // <copyright company="Microsoft Corporation">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 //----------------------------------------------------------------
6
7 namespace System.Activities.Presentation
8 {
9     using System.Activities.Presentation.Model;
10
11     internal static class DynamicActivityPropertyUtilities
12     {
13         public static DynamicActivityProperty Find(ModelItemCollection properties, string propertyName)
14         {
15             foreach (ModelItem entry in properties)
16             {
17                 DynamicActivityProperty property = (DynamicActivityProperty)entry.GetCurrentValue();
18
19                 if (StringComparer.Ordinal.Equals(property.Name, propertyName))
20                 {
21                     return property;
22                 }
23             }
24
25             return null;
26         }
27     }
28 }