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