HttpServer.HttpForm.GetFile C# (CSharp) Method

GetFile() public method

Retrieves a file held by by the form
If name is null or empty If the instance is HttpForm.EmptyForm which cannot be modified
public GetFile ( string name ) : HttpServer.HttpFile
name string The identifier of the file
return HttpServer.HttpFile
        public HttpFile GetFile(string name)
        {
            if (_ignoreChanges)
                throw new InvalidOperationException("Cannot retrieve files from instance HttpForm.EmptyForm.");
            if(string.IsNullOrEmpty(name))
                throw new ArgumentNullException("name");

            if(!_files.ContainsKey(name))
                return null;

            return _files[name];
        }