System.Web.HttpMultipart.ReadBoundary C# (CSharp) Method

ReadBoundary() private method

private ReadBoundary ( ) : bool
return bool
		bool ReadBoundary ()
		{
			try {
				string line = ReadLine ();
				while (line == "")
					line = ReadLine ();
				if (line [0] != '-' || line [1] != '-')
					return false;

				if (!StrUtils.EndsWith (line, boundary, false))
					return true;
			} catch {
			}

			return false;
		}