Mono Class Library: Mono.Unix.Native.NativeConvert Overview | Members

Mono.Unix.Native.NativeConvert.ToFopenMode Method

Converts the managed (System.IO.FileModeSystem.IO.FileAccess) pair into a string suitable for use with Stdlib.fopen's mode parameter..

public static string ToFopenMode (System.IO.FileMode mode, System.IO.FileAccess access)

Parameters

mode
Specifies how to open the file
access
Specifies what can be done to the file.

Returns

The morally equivalent file mode.

Remarks

This is primarily useful if you're trying to make a Unix-specific API look like a CLI API, such as with Mono.Unix.StdioFileStream.

Requirements

Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0