Example #1
0
 public string[] GetPathList(FileIOPermissionAccess access)
 {
     FileIOPermission.VerifyAccess(access);
     FileIOPermission.ExclusiveAccess(access);
     if (FileIOPermission.AccessIsSet(access, FileIOPermissionAccess.Read))
     {
         if (this.m_read == null)
         {
             return((string[])null);
         }
         return(this.m_read.ToStringArray());
     }
     if (FileIOPermission.AccessIsSet(access, FileIOPermissionAccess.Write))
     {
         if (this.m_write == null)
         {
             return((string[])null);
         }
         return(this.m_write.ToStringArray());
     }
     if (FileIOPermission.AccessIsSet(access, FileIOPermissionAccess.Append))
     {
         if (this.m_append == null)
         {
             return((string[])null);
         }
         return(this.m_append.ToStringArray());
     }
     if (!FileIOPermission.AccessIsSet(access, FileIOPermissionAccess.PathDiscovery))
     {
         return((string[])null);
     }
     if (this.m_pathDiscovery == null)
     {
         return((string[])null);
     }
     return(this.m_pathDiscovery.ToStringArray());
 }