Server.Misc.AutoSave.Match C# (CSharp) Méthode

Match() private static méthode

private static Match ( string paths, string match ) : DirectoryInfo
paths string
match string
Résultat System.IO.DirectoryInfo
		private static DirectoryInfo Match( string[] paths, string match )
		{
			for ( int i = 0; i < paths.Length; ++i )
			{
				DirectoryInfo info = new DirectoryInfo( paths[i] );

				if ( info.Name.StartsWith( match ) )
					return info;
			}

			return null;
		}