src: dotnet: FileSystem: convert Set* methods to properties

This commit is contained in:
Bill Zissimopoulos
2017-04-13 16:33:32 -07:00
parent 9770efde14
commit c144d4d303
3 changed files with 74 additions and 47 deletions

View File

@ -61,6 +61,11 @@ namespace Fsp.Interop
internal unsafe fixed UInt16 Prefix[PrefixSize];
internal unsafe fixed UInt16 FileSystemName[FileSystemNameSize];
internal unsafe String GetPrefix()
{
fixed (UInt16 *P = Prefix)
return Marshal.PtrToStringUni((IntPtr)P);
}
internal unsafe void SetPrefix(String Value)
{
fixed (UInt16 *P = Prefix)
@ -73,6 +78,11 @@ namespace Fsp.Interop
P[Size] = 0;
}
}
internal unsafe String GetFileSystemName()
{
fixed (UInt16 *P = FileSystemName)
return Marshal.PtrToStringUni((IntPtr)P);
}
internal unsafe void SetFileSystemName(String Value)
{
fixed (UInt16 *P = FileSystemName)