What's the proper way to use Collection object & of different datatype?
I'm getting type or namespace Collection<bool> could not be found
error. Also found that member variable _isFormData
is both bool, int and string at once. :-/
Saw this example, under accepted answer, at Web API: how to access multipart form values when using MultipartMemoryStreamProvider?
private Collection<bool> _isFormData = new Collection<bool>(); //bool...
_isFormData.Add(String.IsNullOrEmpty(contentDisposition.FileName)); //string...
for (int index = 0; index < Contents.Count; index++)
{
if (_isFormData[index]) //int...
{ }
}