Mono.Unix.Native
NativeConvert
ToFopenMode
Mono.Unix.Native.NativeConvert.ToFopenMode Method
Converts the managed
System.IO.FileMode
into a string suitable for use with
Stdlib.fopen
's
mode
parameter..
Syntax
public static
string
ToFopenMode
(
System.IO.FileMode
mode)
Parameters
mode
Specifies how to open 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, 4.0.0.0