internal static NativeMethods.FileShare TranslateFileShare(FileShare share) { // Complete 1:1 mapping return (NativeMethods.FileShare)(int)share; }