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

GetContentDispositionAttribute() static private method

static private GetContentDispositionAttribute ( string l, string name ) : string
l string
name string
return string
		static string GetContentDispositionAttribute (string l, string name)
		{
			int idx = l.IndexOf (name + "=\"");
			if (idx < 0)
				return null;
			int begin = idx + name.Length + "=\"".Length;
			int end = l.IndexOf ('"', begin);
			if (end < 0)
				return null;
			if (begin == end)
				return "";
			return l.Substring (begin, end - begin);
		}