I have a user control which deals with fileupload. I have defined a delegate as follows
public delegate void FileUploadSuccess(T value,FileUploadTyp
That's impossible unless you define your type parameter in an enclosing class. For example:
public delegate void FileUploadSuccess(T value, FileUploadType F)
public class FileUploader
{
public event FileUploadSuccess FileUploaded;
}
But this only moves your problem to another location, since now you would have to declare two instances of the FileUploader class:
FileUploader stringUploader = new FileUploader();
FileUploader stringUploader = new FileUploader();
This may not be what you want.