How to use combination of enums in switch case in c#?
<p>I have following enum definition</p>

<pre><code>public enum UploaderType
{
    BrandLogo = 0,
    ReportingLogo = 1,
    DocumentTemplate = 2,
    MModalTemplate = 3,
}
</code></pre>

<p>I have a switch case in which i want to use this enum</p>

<pre><code>void FileUploadExceptionHandler(FileUploadControl.FileUploadExceptionType     exceptionType, FileUploadControl.UploaderType uploaderType)
{
 switch (uploaderType)
 {
    case FileUploadControl.UploaderType.DocumentTemplate:
                        (this.Page as PageBase).SetMessage(string.Format(GetLocalResourceObject("FileExtensionError").ToString(), docIndentifier, formatAllowed(ucdocxUploadControl.SupportedFileTypes)), PageMessageType.ErrorMessage);
                        break;
    case FileUploadControl.UploaderType.MModalTemplate:
                        (this.Page as PageBase).SetMessage(string.Format(GetLocalResourceObject("FileExtensionError").ToString(), docIndentifier, formatAllowed(ucampUploadControl.SupportedFileTypes)), PageMessageType.ErrorMessage);
                        break;
    case FileUploadControl.UploaderType.MModalTemplate|FileUploadControl.UploaderType.DocumentTemplate:
                        (this.Page as PageBase).SetMessage(string.Format(GetLocalResourceObject("FileExtensionErrorForBoth").ToString(), formatAllowed(ucdocxUploadControl.SupportedFileTypes), formatAllowed(ucampUploadControl.SupportedFileTypes)), PageMessageType.ErrorMessage);
                        break;


 }
}
</code></pre>

<p>I am trying to use combination of enum in third case but compiler complains The label 'case 3:' already occurs in this switch statement.</p>

<p>This enum is outside my control,so icannot use flags on it. Please suggest how to achieve this.</p>

<p>When i call it, i use </p>

<pre><code> FileUploadExceptionHandler(FileUploadControl.FileUploadExceptionType.FileExtensionNotAllowed, FileUploadControl.UploaderType.DocumentTemplate | FileUploadControl.UploaderType.MModalTemplate);
</code></pre>
