Rsdn.Shortcuts.ShortcutSerializer.FindNodeType C# (CSharp) Метод

FindNodeType() приватный статический Метод

private static FindNodeType ( string typeName, ShortcutCollection nodes ) : CustomShortcut
typeName string
nodes ShortcutCollection
Результат CustomShortcut
		private static CustomShortcut FindNodeType(
			string typeName, ShortcutCollection nodes)
		{
			foreach (CustomShortcut cs in nodes)
			{
				if (cs.OwnerType.ToString() == typeName)
					return cs;

				return FindNodeType(typeName, cs.Nodes);
			}

			return null;
		}