System.Web.StaticFileHandler.ValidFileName C# (CSharp) 메소드

ValidFileName() 정적인 개인적인 메소드

static private ValidFileName ( string fileName ) : bool
fileName string
리턴 bool
		static bool ValidFileName (string fileName)
		{
			if (!RuntimeHelpers.RunningOnWindows)
				return true;

			if (fileName == null || fileName.Length == 0)
				return false;

			return (!StrUtils.EndsWith (fileName, " ") && !StrUtils.EndsWith (fileName, "."));
		}