File: System.Activities.Presentation\System\Activities\Presentation\DynamicActivityPropertyUtilities.cs
Project: ndp\cdf\src\NetFx40\Tools\System.Activities.Presentation.csproj (System.Activities.Presentation)
//----------------------------------------------------------------
// <copyright company="Microsoft Corporation">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//----------------------------------------------------------------
 
namespace System.Activities.Presentation
{
    using System.Activities.Presentation.Model;
 
    internal static class DynamicActivityPropertyUtilities
    {
        public static DynamicActivityProperty Find(ModelItemCollection properties, string propertyName)
        {
            foreach (ModelItem entry in properties)
            {
                DynamicActivityProperty property = (DynamicActivityProperty)entry.GetCurrentValue();
 
                if (StringComparer.Ordinal.Equals(property.Name, propertyName))
                {
                    return property;
                }
            }
 
            return null;
        }
    }
}