예제 #1
0
        internal override Activity TraverseDottedPath(string dottedPath)
        {
            string str   = dottedPath;
            string str2  = string.Empty;
            int    index = dottedPath.IndexOf('.');

            if (index != -1)
            {
                str  = dottedPath.Substring(0, index);
                str2 = dottedPath.Substring(index + 1);
            }
            int num2 = Convert.ToInt32(str, CultureInfo.InvariantCulture);

            if (num2 >= this.activities.Count)
            {
                return(null);
            }
            Activity activity = this.activities[num2];

            if (!string.IsNullOrEmpty(str2))
            {
                return(activity.TraverseDottedPath(str2));
            }
            return(activity);
        }