/trunk/Powershell/Helper.cs
C# | 30 lines | 17 code | 5 blank | 8 comment | 0 complexity | 9907ebb68a6da1af982d89baa66f4e42 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
- //-----------------------------------------------------------------------
- // <copyright>
- // Copyright (C) Ruslan Yakushev for the PHP Manager for IIS project.
- //
- // This file is subject to the terms and conditions of the Microsoft Public License (MS-PL).
- // See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL for more details.
- // </copyright>
- //-----------------------------------------------------------------------
-
- using System;
- using System.Linq;
- using Web.Management.PHP.Config;
-
- namespace Web.Management.PHP.Powershell
- {
-
- internal static class Helper
- {
-
- public static PHPIniExtension FindExtension(RemoteObjectCollection<PHPIniExtension> extensions, string name)
- {
- return extensions.FirstOrDefault(extension => String.Equals(extension.Name, name, StringComparison.OrdinalIgnoreCase));
- }
-
- public static PHPIniSetting FindSetting(RemoteObjectCollection<PHPIniSetting> settings, string name)
- {
- return settings.FirstOrDefault(setting => String.Equals(setting.Name, name, StringComparison.OrdinalIgnoreCase));
- }
- }
- }