Re[4]: .NET Core
От: Andir Россия
Дата: 11.01.15 21:59
Оценка:
Здравствуйте, Danchik, Вы писали:

D>Вот, к примеру, тут можно увидеть как выглядит поддержка разных операционок: System.IO.FileSystem


Что-то не видно там поддержки разных операционок, только какой-то невнятный набор API из разных операционок смешанных в одном partial классе.
Лучше смотреть сразу https://github.com/dotnet/corefx/tree/master/src/System.IO.FileSystem/src/System/IO и там всякие FileStream.Handle.Win32.cs или FileStream.Handle.Unix.cs
и System.IO.FileSystem.csproj

 <!-- Windows -->
<ItemGroup Condition="'$(OS)' == 'Windows_NT'">
<Compile Include="Interop\Interop.Windows.cs" />
<Compile Include="Microsoft\Win32\SafeHandles\SafeFileHandle.Windows.cs" />
<Compile Include="Microsoft\Win32\SafeHandles\SafeFindHandle.Windows.cs" />
<Compile Include="System\IO\FileStream.Handle.Win32.cs" />
<Compile Include="System\IO\Win32FileStream.cs" />
<Compile Include="System\IO\Win32FileStreamAsyncResult.cs" />
<Compile Include="System\IO\Win32FileSystem.cs" />
<Compile Include="System\IO\Win32FileSystemEnumerable.cs" />
<Compile Include="System\IO\Win32FileSystemObject.cs" />
<Compile Include="$(CommonPath)\System\__HResults.cs">
<Link>Common\System\__HResults.cs</Link>
</Compile>
...
</ItemGroup>

 <!-- Unix -->
<ItemGroup Condition="'$(OS)' == 'Unix'">
<Compile Include="Interop\Interop.Linux.cs" />
<Compile Include="Interop\Interop.Unix.cs" />
<Compile Include="Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs" />
<Compile Include="System\IO\FileStream.Handle.Unix.cs" />
<Compile Include="System\IO\FileSystem.Current.Unix.cs" />
<Compile Include="System\IO\UnixFileStream.cs" />
<Compile Include="System\IO\UnixFileSystem.cs" />
<Compile Include="System\IO\UnixFileSystemObject.cs" />
<Compile Include="$(CommonPath)\Interop\Interop.CoreFileIO.Unix.cs">
<Link>Common\Interop\Interop.CoreFileIO.Unix.cs</Link>
</Compile>
...
</ItemGroup>


С Уважением, Andir!
using(<< RSDN@Home 1.2.0 alpha 5 rev. 74>>) { /* Работаем */ }
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.