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

Mono.Unix.Native.NativeConvert.ToFopenMode Method

Converts the managed System.IO.FileAccess into a string suitable for use with Stdlib.fopen's mode parameter.. [Edit]

public static string ToFopenMode (System.IO.FileAccess access)

Parameters

access
Specifies what can be done to the file. [Edit]

Returns

The morally equivalent file mode. [Edit]

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. [Edit]

Requirements

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